Bit of HTML/CSS help needed!

PC Software. Anything to do with PC Games & software!

Bit of HTML/CSS help needed!

Postby GeForce » Mon Mar 13, 2006 2:20 am

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)
Image
LiveScripts.NET - Over 300 free Scripts and Extensive Scripting Tutorials
AMD Athlon 64 3700+ @ 2.8G
User avatar
GeForce
Major
Major
 
Posts: 2486
Joined: Fri Aug 22, 2003 4:20 am
Location: London, United Kingdom

Re: Bit of HTML/CSS help needed!

Postby candle_86 » Thu Mar 16, 2006 3:18 am

well I could do it for you in dreamweaver, I do it with custom buttons, but thats getting complicated.
candle_86
1st Lieutenant
1st Lieutenant
 
Posts: 391
Joined: Wed Mar 01, 2006 1:19 am
Location: Fort Worth

Re: Bit of HTML/CSS help needed!

Postby GeForce » Thu Mar 16, 2006 1:43 pm

Hmm yes. Although there is a way to do it with CSS, maybe JavaScript, I just have no idea what it is.

Jon 8)
Image
LiveScripts.NET - Over 300 free Scripts and Extensive Scripting Tutorials
AMD Athlon 64 3700+ @ 2.8G
User avatar
GeForce
Major
Major
 
Posts: 2486
Joined: Fri Aug 22, 2003 4:20 am
Location: London, United Kingdom


Return to Computer Games & Software

Who is online

Users browsing this forum: No registered users and 222 guests