Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Bit of HTML/CSS help needed! (Read 141 times)
Mar 13th, 2006 at 2:20am

GeForce   Offline
Colonel
It keeps going and going!!
Wooohoooooo!!
London, United Kingdom

Gender: male
Posts: 2616
*****
 
Hi all,

OK, well my website is: http://www.livescripts.net.

For the menu at the top, when a user clicks on one of the links (eg. tutorials) I would like that link to stay highlighted whilst the user is on that page. At the moment I have just done the rollover with CSS and set a:active to have the background colour. The problem with this, is that if a user "clicks off" the link the background colour goes.

So how can I make a menu item stay highlighted whilst the user is on that page, even if they "click off"?

Cheers,

Jon 8)
 

...&&LiveScripts.NET - Over 300 free Scripts and Extensive Scripting Tutorials&&AMD Athlon 64 3700+ @ 2.8Ghz | Asus A8N-SLi Premium | BFG Tech GeForce 7900GT 256mb @ 475/1360Mhz | 1Gb GeIL Ultra-X NF4 Edition | 160Gb WD SATA-3 HDD | Hiper Type-R 580W
IP Logged
 
Reply #1 - Mar 16th, 2006 at 3:18am

candle_86   Offline
Colonel
it's better to die free,
than be a slave
Fort Worth

Gender: male
Posts: 397
*****
 
well I could do it for you in dreamweaver, I do it with custom buttons, but thats getting complicated.
 
IP Logged
 
Reply #2 - Mar 16th, 2006 at 1:43pm

GeForce   Offline
Colonel
It keeps going and going!!
Wooohoooooo!!
London, United Kingdom

Gender: male
Posts: 2616
*****
 
Hmm yes. Although there is a way to do it with CSS, maybe JavaScript, I just have no idea what it is.

Jon 8)
 

...&&LiveScripts.NET - Over 300 free Scripts and Extensive Scripting Tutorials&&AMD Athlon 64 3700+ @ 2.8Ghz | Asus A8N-SLi Premium | BFG Tech GeForce 7900GT 256mb @ 475/1360Mhz | 1Gb GeIL Ultra-X NF4 Edition | 160Gb WD SATA-3 HDD | Hiper Type-R 580W
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print