...

View Full Version : event handler within document.write



nemex
08-20-2002, 06:57 PM
How can I use the even handler "onmouseover" and "onmouseout" within the document.write function?

I am calling two scripts in my html source, one is the image rollover script (called in the head section) and the other is to display the images in the body section.

I need to display
<a href="index.html" onmouseover="on('image1')" onmouseout="off('image1')"><img src="../images/home-off.jpg" border=0 name=image1></a>

and tried
document.write('<a href="index.html" onmouseover="on('image1')" onmouseout="off('image1')"><img src="../images/home-off.jpg" border=0 name=image1></a>')


thx in adv

beetle
08-20-2002, 07:02 PM
See my post here (http://www.codingforums.com/showthread.php?s=&threadid=4307)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum