Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-27-2007, 11:20 PM   #1 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,176
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
mouse over link ??

can someone give me the javascript for this:

i want to mouse over a link, and have an image next to the link change, and then go back to the origional image when the person removes theire cursor from over my link.




thanks in advance
__________________
"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-28-2007, 03:48 AM   #2 (permalink)
Contributing Member
 
damien_ls's Avatar
 
Join Date: 03-26-07
Location: layershift.com
Posts: 217
iTrader: 0 / 0%
Latest Blog:
None

damien_ls is a jewel in the roughdamien_ls is a jewel in the roughdamien_ls is a jewel in the roughdamien_ls is a jewel in the roughdamien_ls is a jewel in the roughdamien_ls is a jewel in the roughdamien_ls is a jewel in the roughdamien_ls is a jewel in the rough
Why do you want to do it in javascript? It's possible to do via CSS, and I much prefer that way (but mainly because I hate JS )

I haven't tried it, but I think this will do it: http://www.htmlcenter.com/tutorials/...79/Javascript/
__________________
Damien Ransome
Layershift :: DDS & Dedicated, UK & USA-based Managed Virtuozzo VPS, Reseller & Shared Hosting
Experienced Parallels Platinum Partners (Plesk since 2001, Virtuozzo since 2004)
damien_ls is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-28-2007, 09:03 AM   #3 (permalink)
Inactive
 
Join Date: 03-28-07
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

RebateProfits is liked by many
What I would do will be something basic along the line...

Before </head> or in your external .js file.

HTML Code:
<script type="text/javascript"> function hoverChange(imgID) { document.getElementById(imgID).src = 'images/img_change.gif'; } function hoverOut(imgID) { document.getElementById(imgID).src = 'images/img_default.gif'; } </script> </head>
Then on the anchor tag..

HTML Code:
onmouseover="hoverChange('myImage');" onmouseout="hoverOut('myImage');" border=0
Assuming the id of the image is myImage.

Or something like that. Anyhow you can always define class and change the class on the onmouse events.

Hope it helps
RebateProfits is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-28-2007, 09:21 AM   #4 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,176
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
thank you both
__________________
"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-28-2007, 12:17 PM   #5 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,176
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
what if i have five links and a picture under each one, what would the code look like then??
__________________
"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-28-2007, 01:45 PM   #6 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,176
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
ok nevermind i got it worked out
__________________
"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Man or Mouse? krahmaan Forum Lobby 70 07-16-2008 01:46 PM
The Mouse Mouse! real mouse :D farooqaaa Forum Lobby 7 05-08-2007 10:07 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:51 PM.
© Copyright 2008 V7 Inc