-
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!
-
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
Forum Rules
|
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
|
Bookmarks