18 October 2004, 17:00 UTC#1
Does anyone know how to have a picture on your page if it's in FrontPage, and the picture like changes to a different one every couple of seconds, and the list of pictures rotate.
External image not preserved — inspect source: http://homegrownforums.com/html//emoticons/Copy of diablo.gif Please let me know if you do!
18 October 2004, 19:33 UTC#2
18 October 2004, 19:37 UTC#3
you mean like a random image script?
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<script LANGUAGE="JavaScript">
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theImages[0] = '1.gif'
theImages[1] = '2.gif'
theImages[2] = '3.gif'
theImages[3] = '4.gif'
// do not edit anything below this line
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<script LANGUAGE="JavaScript">
<!-- Begin
showImage();
// End -->
</script>
18 October 2004, 19:43 UTC#4
I think that's what I ment, thanx very much!
18 October 2004, 19:44 UTC#5
welcome welcome.
18 October 2004, 19:48 UTC#6
On my WastedTime site I have loadza frames, I don't even know if ones the body and ones the banner, etc?! Where should I pasted the html?
External image not preserved — inspect source: http://homegrownforums.com/html//emoticons/Copy of diablo.gifDo I copy the html exactly, what do I need to change?!
19 October 2004, 11:06 UTC#7
here.. i'll bold what you need to change.
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<script LANGUAGE="JavaScript">
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theImages[0] = '1.gif'
theImages[1] = '2.gif'
theImages[2] = '3.gif'
theImages[3] = '4.gif' <-- put the url to the images you want to be shown.. if there's more than 3 then just make another "theImages[4]="image" etc etc..
// do not edit anything below this line
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<script LANGUAGE="JavaScript">
<!-- Begin
showImage();
// End -->
</script>
the body part is the part after the <body background color.. blah blah
19 October 2004, 12:29 UTC#8
AdEM i think you should be an smod.
19 October 2004, 12:37 UTC#9
19 October 2004, 12:57 UTC#10
yea i forgot to mention that wherever you want it to show.. you just post the part that goes into the body. hope that wasn't too complicated to understand.. i'm trying to explain it in a more simpler way.
QUOTE AdEM i think you should be an smod.
19 October 2004, 13:02 UTC#11
QUOTE (AdEM @ Oct 19 2004, 12:57 PM) yea i forgot to mention that wherever you want it to show.. you just post the part that goes into the body. hope that wasn't too complicated to understand.. i'm trying to explain it in a more simpler way.
QUOTE AdEM i think you should be an smod.
That wont be nessasary (sp?). Anyways i'll make you one if you promise to be nice.
19 October 2004, 13:14 UTC#12
19 October 2004, 13:18 UTC#13
Of course.
19 October 2004, 13:22 UTC#14