cool menu:
- Started
- Last post
- 18 Responses
- l_v
hi...i want to share with you a great idea of an highlight-active-link script:
http://pastebin.se/14590but: when you use 'real links' instead of the "#" this little thing dont work anymore...
any ideas?
- ********0
got a working example as well?
- l_v0
i just have this link:
http://pastebin.se/14590
for you...
- ********0
maybe the standard effects for the a-tag overrule the onclick when a real link is used?
- l_v0
mmhhhh...shit. any idea what i can do?
- ********0
no i am sorry. don't scripts like this exist already? you just want ot make the active link to be active right?
have you looked around in cyberspace?
- l_v0
yes Crouwel, this is what i want to. i want to set the active link highligted. there a several php-solutions around....but i want to use the easy way thing.
- ********0
Well keep this thread bumped. Someone may help..
- l_v0
thank you Crouwel
- ********0
np
- weestu0
do what zeldman does on http://www.happycog.com/.
Give each page an id in the body tag, give each navigation link an id then reference it in your stylesheet so that when you're on that page, the link is in an active state...
- l_v0
thanks. that wont work for me. cause i have a lot of pages ;)
thank you for sharing your idea!
- weestu0
how many pages u got?
- Dancer0
nice solution Weestu.
- ********0
billions and billions..
- l_v0
this is now complicated to explain. i use drupal and i have done a custom menu. so i use the drupal management but even not everything of drupal...
- weestu0
another solution is to put the css on each page to overwrite the css for the link to that page, making it look active
- ********0
or perhaps write a script that generates an id based on the page title or something and have that added in each page and css..
but that is rather far fetched hehe
- l_v0
arrgg...