Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnMouseOver not Working. Help Me!!

Status
Not open for further replies.

yash

Programmer
Apr 9, 2001
46
IN
Hi Guys,
Can anybody Help What i'm doing wrong..???
I want to change Image OnMouseOver/OnMouseOut event..

---------------------------------------
<TD>
<IMG SRC=&quot;/img/types_off.gif&quot;
tabindex=&quot;7&quot;
onMouseOver='<IMG SRC=&quot;/img/types_on.gif&quot;>'
onMouseOut='<IMG SRC=&quot;/img/types_off.gif&quot;>'
onfocus=&quot;window.status='Show Donations Types';return true;&quot;
onClick=&quot;javascript:eek:pencenter('/pls/devwebb/center_details.donations?p_dcid='+document.calform.p_center.value,'625','290','210','70','60000','no','yes','yes')&quot;
>
</TR>
---------------------------------------

Regards
 
Wrong way to go about a rollover image. You can't redefine a pages HTML using HTML in the tag. You have to use javascript. Try this.

<IMG SRC=&quot;/img/types_off.gif&quot; id=&quot;rightWay&quot; tabindex=&quot;7&quot; onMouseOver=&quot;document.all.rightway.src='/img/types_on.gif'&quot; onMouseOut=&quot;document.all.rightWay.src='/img/types_off.gif'&quot; onfocus=&quot;window.status='Show Donations Types';return true;&quot; onClick=&quot;javascript:eek:pencenter('/pls/devwebb/center_details.donations?p_dcid='+document.calform.p_center.value,'625','290','210','70','60000','no','yes','yes')&quot;>

And take out the hard returns. &quot;The surest sign that intelligent life exists elsewhere in the universe is that it has never tried to contact us&quot;
Bill Watterson, Calvin & Hobbes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top