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
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