/    Sign up×
Community /Pin to ProfileBookmark

Adapting ‘Category Menus’

I’m using the “Category Menus” [URL=http://javascript.internet.com/navigation/category-menus.html]script[/URL] and am trying to adapt it for a nonframes site. What I’m trying to do is this – when a page is opened it’s category is automatically toggled revealing its submenu. I’ve tried executing the toggle script with onload but it doesn’t seem to be working…. Has anyone got any ideas on this. My brain seems slightly frazzled today.

Regards,

Sam

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JAug 14.2003 — See if this is what you are after


Commented out function tellDemo().

Added function showme()


Onload will toggle menu1

YOu need to add your page paths to the submenus

[upl-file uuid=73ca07d5-1050-4156-8cc1-136e0653efd7 size=2kB]category-menus.zip[/upl-file]
Copy linkTweet thisAlerts:
@BuntyauthorAug 14.2003 — Awesome! I've copied the showme and the onload elements in my my pre-existing html and it works a charm. Thank you so much for this - fastest and most useful forum response I've ever had...

Sam
×

Success!

Help @Bunty 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.7,
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,
)...