DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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!
    >




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links