javascript rollover

link not working in IE

Page 1 of 1

1 Replies - 911 Views - Last Post: 25 April 2008 - 10:59 AM

#1 neeep  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 24-April 08

javascript rollover

Post icon  Posted 24 April 2008 - 02:17 PM

hi, I really need help with a javascript rollover piece of code. When you rollover the link button image, it creates an image change on the said link image, and on a transparent image elsewhere on the page. the link works fine on firefox and on safari, but it does not work at all on ie. Basically it appears that the a href isnt being read by IE. I obviously need the link work on IE.

Here is an example of the code for one button

Head code...

function roll(cbutton, cover, mark, ya)
   document[cbutton].src = cover;
   document[mark].src = ya;

and the body code...

<A HREF="index.html" 
onmouseover="roll('cbutton', 'cover.gif', 'mark', 'ya.gif')"
onmouseout="roll('cbutton', 'c.gif', 'mark', 'mark.gif')">

<div id="cbutton"><IMG SRC="c.gif" NAME="cbutton"></div>
<div id="mark"><IMG SRC="mark.gif" NAME="mark"></div>

the site is
I would really appreciate any help or ideas for how i can get the links to work in internet explorer.. Thank you.

Is This A Good Question/Topic? 0
  • +

Replies To: javascript rollover

#2 ahmad_511  Icon User is offline

  • MSX
  • member icon

Reputation: 131
  • View blog
  • Posts: 722
  • Joined: 28-April 07

Re: javascript rollover

Posted 25 April 2008 - 10:59 AM

Hi there
it works on IE7 and IE8 Beta, what version of IE do you have?

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1