home *** CD-ROM | disk | FTP | other *** search
- <ccResource>
- <ccTitle>
- MouseOver Image Links
- </ccTitle>
- <ccCategory>
- Images
- </ccCategory>
- <ccDescription>
- Start of Change Two Images on MouseOver
- </ccDescription>
- <ccInstructions>
-
- </ccInstructions>
- <ccHeadContent>
- <SCRIPT LANGUAGE="JavaScript">
-
- <!-- Begin
- var ytext = new Image();
- var ylarge = new Image();
- var ctext = new Image();
- var clarge = new Image();
- var dtext = new Image();
- var dlarge = new Image();
-
- ytext.src = "yahoo.jpg";
- ylarge.src = "yahoo2.jpg";
- ctext.src = "coffeecup.jpg";
- clarge.src = "coffeecup2.jpg";
- dtext.src = "download.jpg";
- dlarge.src = "download2.jpg";
-
- function CC_Button(textimage, picimage) {
- document['text'].src=textimage;
- document['picture'].src=picimage;
- }
- // End -->
- </script>
- </ccHeadContent>
- <ccBodyContent>
- <a href = "http://www.yahoo.com" onmouseover = "CC_Button('yahoo.jpg', 'yahoo2.jpg')" onmouseout = "CC_Button('blank.gif', 'blank.gif')">Yahoo</a><p>
-
- <BR>
- <a href = "http://www.coffeecup.com" onmouseover = "CC_Button('coffeecup.jpg', 'coffeecup2.jpg')" onmouseout = "CC_Button('blank.gif', 'blank.gif')">CoffeeCup</a><p>
-
- <BR>
- <a href = "http://www.download.com" onmouseover = "CC_Button('download.jpg', 'download2.jpg')" onmouseout = "CC_Button('blank.gif', 'blank.gif')">Download.com</a><p>
-
- <BR>
- <I>This box below represents where the first image will be. Remember to put BORDER=0 to get rid of the colored border around the image.<P>
- <img name=text src="blank.gif" width=100 height=100 border=2><P>
-
-
-
- Here is where the second picture will appear.<P>
- <img name=picture src="blank.gif" width=100 height=100 border=2>
-
- </ccBodyContent>
- <ccElementContent>
-
- <ccElementName></ccElementName>
- <ccElementAction></ccElementAction>
-
- </ccElementContent>
- <ccExtraData>
-
- </ccExtraData>
- </ccResource>