OnMouseOver/OnMouseOut


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: OnMouseOver/OnMouseOut

  1. #1
    WooGor Guest

    OnMouseOver/OnMouseOut


    With <A Href=”page1.asp”>Page 1</A>, when OnMouseOver, I want the image to
    be <IMG SRC=”open.gif”>; when it is OnMouseOut, I want the image change to
    <IMG SRC=”close.gif”>.

    Can anyone show me the Javascripts for this?

    Thank you!


  2. #2
    Kent Guest

    Re: OnMouseOver/OnMouseOut

    /* Images for roll-over script */
    Image01=new Image(80,84)
    Image01.src="Content/_media/construction1.gif"
    Image02=new Image(80,84)
    Image02.src="Content/_media/construction3.gif"
    /* Script to give roll-over (changing images) effect */
    function filter(imagename,objectsrc){ if (document.images)
    document.images[imagename].src=eval(objectsrc+".src")}



    "WooGor" <zhang5gor@yahoo.com> wrote in message
    news:3c0e5200$1@147.208.176.211...
    >
    > With <A Href="page1.asp">Page 1</A>, when OnMouseOver, I want the image to
    > be <IMG SRC="open.gif">; when it is OnMouseOut, I want the image change to
    > <IMG SRC="close.gif">.
    >
    > Can anyone show me the Javascripts for this?
    >
    > Thank you!
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center