Change CSS class with Java

  • seularts
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jan 02, 2007
  • Posts: 147
  • Loc: Romania
  • Status: Offline

Post February 20th, 2010, 3:27 pm

Is there a way to change the id for a CSS link with Java, so that it can remain active when clicked!?

This is my example of the css:

#inactive{
font-size:1.5em;
}

#active{
font-size:1em;
}

And the link:

<a href="" id="inactive">Link</a>

The idea is to make the link change into the #active id when clicked!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 20th, 2010, 3:27 pm

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 124 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.