/    Sign up×
Community /Pin to ProfileBookmark

Click-to-expand Menu

I would like to try CLICK-TO-EXPAND MENU from javascript.internet.com’s Navigation scripts. However, the code references a “script.js” external file.

Is there a way I can get that file?

Her’es the code link:

[url]http://javascript.internet.com/navigation/click-to-expand-menu.html[/url]

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@VidianauthorApr 29.2005 — http://javascript.internet.com/navigation/scripts.js[/QUOTE]
Thank you. I thought I had tried that, but apparently not...

Now I have another issue. The + and - symbols (in a box) that the code uses does not appear to be supported by XHTML. Compare the above link to this one:

http://mscis.org/expand.htm

It still expands, but you have empty space to click instead of a symbol. Is there a way to get that symbol back in xhtml 1.0?
Copy linkTweet thisAlerts:
@X-rayApr 29.2005 — have you tried to read the scripts.js code?

[CODE]temp2.style.backgroundImage = (cookieArray.length>0)?((cookieArray[cookieCount]=="true")?"url(minus.png)":"url(plus.png)"):"url(plus.png)";[/CODE]

what you need is 2 images, and you can call them whatever you want to because you can change the script

just Google for a plus and minus (image search) and you've got it!
Copy linkTweet thisAlerts:
@VidianauthorApr 29.2005 — have you tried to read the scripts.js code?

[CODE]temp2.style.backgroundImage = (cookieArray.length>0)?((cookieArray[cookieCount]=="true")?"url(minus.png)":"url(plus.png)"):"url(plus.png)";[/CODE]

what you need is 2 images, and you can call them whatever you want to because you can change the script

just Google for a plus and minus (image search) and you've got it![/QUOTE]

Well, now I've asked 2 questions I should have figured out...

Like the script.js file, they were at:

http://javascript.internet.com/navigation/plus.png

and

http://javascript.internet.com/navigation/minus.png

Thank you for your help!
Copy linkTweet thisAlerts:
@X-rayApr 29.2005 — you'r also missing another image, page.png i think...

http://javascript.internet.com/navigation/page.png
Copy linkTweet thisAlerts:
@VidianauthorApr 29.2005 — you'r also missing another image, page.png i think...

http://javascript.internet.com/navigation/page.png[/QUOTE]

Cool! Thank you again!
×

Success!

Help @Vidian spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...