little line; image link

They have: 2 posts

Joined: Jan 2009

I have the following code:



It's an image that has a mouseover effect. Unfortunately, a little line shows up after the image Sad and I've browsed but idk how to fix it.

They have: 2 posts

Joined: Jan 2009

<a onmouseover="document.ds_but.src='ds2.jpg'" onmouseout="document.ds_but.src='ds1.jpg'">
<img src="ds1.jpg" name="ds_but" border="0" />
</a>

sorry, there we go

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

try this (I changed the link url (remember to begin it with http:// if it is a different web site) and the images, and moved the javascript to the image...

<a href="http://www.webmaster-forums.net/html-css-and-javascript/little-line-image-link"><img src="http://www.webmaster-forums.net/ads/www/images/120x60opera9monica.png" name="ds_but" onmouseover="this.src='http://www.webmaster-forums.net/ads_customimages/host4u_120x60.gif'" onmouseout="this.src='http://www.webmaster-forums.net/ads/www/images/120x60opera9monica.png'" border="0" /></a>

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.