Welcome visitor
* Login
* Register
It is currently September 20th, 2019, 9:31 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  Changing menu
PostPosted: August 18th, 2009, 2:37 pm 

Posts: 17
Hi, do you know how to make links that when you put hover over them it changes the color of their background?

I think i need javascript but i dont know how to do it.

Thanks everybody for your help.


Top
 Profile  
 
  Re: Changing menu
PostPosted: August 18th, 2009, 3:05 pm 
User avatar

Posts: 63
you will need two images, one for each background tone
<a href="http://www.scriptingok.com"><img src="logo1.bmp" onmouseover="this.src='logo2.bmp';" 
onmouseout="this.src='logo1.bmp';" /></a>


Top
 Profile  
 
  Re: Changing menu
PostPosted: August 20th, 2009, 5:59 am 
User avatar

Posts: 71
also css can do it
<a href="http://www.scriptingok.com"><span id="link">hyperlink</span></a>

here's the css part
#link{border: 1px solid #000; background-color: #802}
#link:hover{background-color: #601}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » JavaScript


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

Search for:
Jump to:  
cron