home *** CD-ROM | disk | FTP | other *** search
- <ccResource>
- <ccTitle>
- Image Slideshow
- </ccTitle>
- <ccCategory>
- Images
- </ccCategory>
- <ccDescription>
- Display your images on your site in a new window in a slideshow fasion.
- </ccDescription>
- <ccInstructions>
-
- </ccInstructions>
- <ccHeadContent>
- <SCRIPT LANGUAGE="JavaScript">
- <!-- Begin
- var n = 0;
-
- timedelay = 3; // 3 secs between pics
- timedelay *= 1000;
-
- windowprops = "top=250,left=15,width=200,height=200"; // customize the popup window here
-
- var imgs = new Array();
- imgs[0] = "http://www.your-site.com/images/image1.gif";
- imgs[1] = "http://www.your-site.com/images/image2.gif";
- imgs[2] = "http://www.your-site.com/images/image3.gif";
- imgs[3] = "http://www.your-site.com/images/image4.gif";
-
- var page = new Array();
- page[0] = "http://www.your-site.com/page1.html";
- page[1] = "http://www.your-site.com/page2.html";
- page[2] = "http://www.your-site.com/page3.html";
- page[3] = "http://www.your-site.com/page4.html";
-
- function hook() {
- var p = (n == 0) ? page[page.length-1] : page[n-1];
-
- window.open(p,"",windowprops);
-
- // or, instead of opening a new window,
- // send them to the new page instead with:
- // document.location.href = p;
-
- }
-
- function rotate() {
- document.picform.slideshow.src = imgs[n];
- (n == (imgs.length - 1)) ? n = 0 : n++;
- window.setTimeout("rotate()", timedelay);
- }
- window.onload = rotate;
- // End -->
- </script>
- </ccHeadContent>
- <ccBodyContent>
- <center>
- <form name=picform>
- <a href="javascript:hook();"><img name=slideshow src="pic.gif"></a>
- </form>
- </center>
-
- </ccBodyContent>
- <ccElementContent>
-
- <ccElementName></ccElementName>
- <ccElementAction></ccElementAction>
-
- </ccElementContent>
- <ccExtraData>
-
- </ccExtraData>
- </ccResource>