The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> COLAPSABLE CONTENTS SCRIPT, Second one will not open
Hampo
post Sep 12 2013, 07:05 PM
Post #1





Group: Members
Posts: 1
Joined: 12-September 13
Member No.: 19,723



Hi,

I have used a Collapsible Content script (from Fooble) which works exactly as it should. However I have inserted a second collapsible script on the same page and set it to be hidden upon opening the webpage (as I did with the first). Unfortunately the second script I used is displaying the contents of the collapsible content box upon opening the webpage. I am unable to identify where from within the script I change it to be hidden upon opening the webpage.

The best way to view the above is to look at the webpage concerned which is at: http://www.artilleryhistory.org/todays_gun...home_page2.html. The script with the problem is displayed first with the second one which works as it should being displayed at the bottom of the page ( 103 Battery Update 2013).

I am unable to ask for assistance direct from Fooble as their Forum is down.

Any help would be appreciated.

Regards,

Hampo

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 12 2013, 07:48 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



The second section ends with this:

CODE
<script language="javascript">toggle(getObject('exp1376529814_link'), 'exp1376529814');</script>

(where I believe the number is an identifier). I assume it's used to close the section on page load. Would it help to add something like this:

CODE
<script language="javascript">toggle(getObject('exp1379027088_link'), 'exp1379027088');</script>

after the first section?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 13 2013, 01:16 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



Also, don't use language="javascript" but type="javascript" instead.

http://htmlhelp.com/reference/html40/special/script.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 13 2013, 04:00 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Make that type="text/javascript" as it should be, like seen in the reference.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 02:24 AM