Javascript onMouseOver event - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Javascript onMouseOver event

KoyaxKoyax Posts: 10Member
Hi,
Im interested in Javascript image changing to image at onMouseOver event. I tried some scripts and none of them worked. Hop you'll help!
Thanks in advance!

Comments

  • skaa7skaa7 Posts: 33Member
    [code]

    expExpMain.html

    // Tested on Firefox 7.0.1
    function fnOMOv()
    {
    var oi;

    oi=document.getElementById('idImg');
    oi.src='two.jpg';
    }
    function fnOMOu()
    {
    var oi;

    oi=document.getElementById('idImg');
    oi.src='one.jpg';
    }



    image


    [/code]
Sign In or Register to comment.