View Single Post
  #1 (permalink)  
Old Oct 1st, 2007, 06:09
Bcullen Bcullen is offline
New Member
Join Date: Oct 2007
Location: Australia
Age: 62
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
slide slide slid

Gday
As a complete newbie i Have been having a ball UNTIL!!! i tried to put in a
java script slide code. I have used so many permutation i have lost the plot. Below is the script in my experiment page. If someone could guide me through it i would be a happy man I have put 2 email gif images in the <head> and repeated in the <body> section Ta Bryan

HTML: Select all
<html>
<head>
<title>Volume3 </title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
gSlideshowInterval = 2;
gNumberOfImages = 3;

gImages = new Array(gNumberOfImages);
gImages[0] = "graphics/email2_1.gif";
gImages[1] = "graphics/email2_2.gif";
gImages[2] = "http://www.webforumz.com/images/slideshow_3.gif";
gImages[3] = "http://www.webforumz.com/images/slideshow_4.gif";
gImages[4] = "http://www.webforumz.com/images/slideshow_5.gif";

function canManipulateImages() {
    if (document.images)
        return true;
    else
        return false;
}
function loadSlide(imageURL) {
    if (gImageCapableBrowser) {
        document.slide.src = imageURL;
        return false;
    }
    else {
        return true;
    }
}
function nextSlide() {
    gCurrentImage = (gCurrentImage + 1) % gNumberOfImages;
    loadSlide(gImages[gCurrentImage]);
}
gImageCapableBrowser = canManipulateImages();
gCurrentImage = 0;
setInterval("nextSlide()",gSlideshowInterval * 1000);
// -->
</SCRIPT>
</head>
<body>
<center>
<p align=center><a href="http://users.on.net/~bcullen"><img src="Graphics/email2.gif" width="114" height="45" border="0" alt="email2.gif - 634 Bytes" NAME="graphics/email2_1.gif"></A></p>
<p align=center><a href="http://users.on.net/~bcullen"><img src="Graphics/email2.gif" width="60" height="40" border="0" alt="email2.gif - 634 Bytes" NAME="graphics/email2_2.gif"></a></p>

</center>
</body>
</html>

Last edited by karinne; Oct 1st, 2007 at 14:04. Reason: Please use the vBcode [ html ] when inserting HTML code in your post.
Reply With Quote