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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML behavior playing with added onmouseover

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've been attempting to use the project cool xml earthquake script
in conjunction with a simple rollover:

<A HREF=&quot;page.html&quot; onMouseOver=&quot;banner.src='baby.jpg'&quot;
onMouseOut=&quot;banner.src='babay.jpg'&quot;>
<IMG SRC=&quot;baby.jpg&quot; NAME=&quot;banner&quot; BORDER=0></A>

so i'd have that enclosed in the <fx:EARTHQUAKE> tags--- however, the page doesn't like having that added onmouseover from the rollover script.

how would i go about implimenting the rollover into the .htc file, or what other options do i have to get both the earthquake behavior and the image rollover???
thanks.
 
i think that if you put the earthquake tags in side the a href it will work...

sounds something to do with event bubbling in ie or sommit.
eg

<a href=blahblah><fx:earthquake><img/></fx:earthquake></a>

hope that helps
 
... let that be a lesson to me... read the article and the files before replying..

it looks like the fx:eq style hijacks the onmouseover event handler...

try adding a &quot;return false;&quot; or &quot;return true;&quot; at the end of that shake function?

just a guess mind u

alternatively call the function from onmouseover event without using the tag? tacky, but it will work :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top