Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 27th Apr 2010, 06:11 AM   #1
Active Warrior
 
Join Date: 2009
Location: Torquay
Posts: 97
Thanks: 6
Thanked 6 Times in 5 Posts
Default
Mouseover Javascript
Share on: 
fb share twitter share gplus share more share

Hi there,

I want to put web 2.0 style buttons on my website - the ones where when you hover over them it changes colour. I am told this is javascript on mouseover?

I have found a website where I can make the buttons which I have done but can anyone point me in the right direction on how to write the script or html code to place on my website?

Thanks in advance

Jonathan
Voyager64 is offline  
Unread 27th Apr 2010, 11:10 AM   #2
Peaceful Warrior
War Room Member
 
theIMgeek's Avatar
 
Join Date: 2009
Location: Calgary
Posts: 277
Thanks: 16
Thanked 106 Times in 63 Posts
Default
Re: Mouseover Javascript
Share on: 
fb share twitter share gplus share more share

The script for this is contained within the IMG tag for the button graphic.

HTML Code:
<a href="/link-to-page"><img src="/images/button_regular.gif" onmouseover="this.src='/images/button_hover.gif';" onmouseout="this.src='/images/button_regular.gif';" /></a>
So onmouseover changes the image source to your highlighted graphic, and onmouseout changes it back.

-Ryan

FREE WSO: Protect and Automatically Deliver Your Digital Products

Ask the Internet Marketing Geek
<-- Happy to help with technical challenges
MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
theIMgeek is offline  
Unread 2nd May 2010, 07:16 PM   #3
Active Warrior
 
VicFranks's Avatar
 
Join Date: 2009
Location: Planet Texas
Posts: 40
Thanks: 5
Thanked 5 Times in 5 Posts
Default
Re: Mouseover Javascript
Share on: 
fb share twitter share gplus share more share

Might check into CSS image rollovers.

If someone is browsing with javascript disabled they will still be able to view you wonderful creativity and efforts..
VicFranks is offline  
Closed Thread


Bookmarks

Tags
javascript, mouseover


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 07:25 PM.