Jump to content

rollover button help


MDanz

Recommended Posts

i did this but it isn't working??

 

 

<SCRIPT LANGUAGE="JavaScript">

function roll_over(img_name, img_src)
   {
   document[img_name].src = img_src;
   }


</script>

      <A HREF="http://www.u-stack.com/search.php" onmouseover="roll_over('but1', 'http://www.u-stack.com/template2.jpg')"
onmouseout="roll_over('but2', 'http://www.u-stack.com/template.jpg')">
<IMG SRC="http://www.u-stack.com/template.jpg" WIDTH="101" HEIGHT="101"
NAME="but3" BORDER="0">

</A>

Link to comment
Share on other sites

i tried with css background rollover... the problem is the text overlapping the backgrounds keeps on moving... so javascript is my best option to keep the text not moving.

 

its just a rollover image button.... when i put my cursor over it should change image but it remains the same...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.