Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    event handler within document.write

    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

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    See my post here


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •