foufou
04-23-2004, 12:50 PM
Hello everyone,
With the help of this forum, i could get my sexy fading-image-slideshow (codelifter.com) script to work exactly as i wanted,thanks again,
Now , that i duplicated the script for puting 2 sliding menus,I've differencialized the variables, ONLOADed them both in my BODY tag;
Result:2 scripts load, but one of them is off,,
My code is attached to my message
I appreciate any help.
<!-- <<<<<MODIFIED>>>>>:
Cross-fade SlideShow <<<WITHOUT>>> Captions
(C)2002 by CodeLifter.com
Browsers: NS4-7,IE4-6
Fade effect only in IE; degrades gracefully.
NS4 shows default caption only.
<html>
<head>
<!--
The <<<<FIRST>>>>>> script in the head of the page.
//-->
<script>
// (C) 2002 http://www.codelifter.com/
// http://www.codelifter.com/
// Free for all users, but leave in this header.
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;
var Picture = new Array(); // don't change this
Picture[1] = 'Album011.gif';
Picture[2] = 'Album012.gif';
var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;
var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}
function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
</script>
<!--
The following <<<<SECOND>>>>>> script in the head of the page.
//-->
<script>
// (C) 2002 http://www.codelifter.com/
// http://www.codelifter.com/
// Free for all users, but leave in this header.
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed2 = 3000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration2 = 3;
var Picture2 = new Array(); // don't change this
Picture2[1] = 'Album016.gif';
Picture2[2] = 'Album019.gif';
var tss2;
var iss2;
var jss2 = 1;
var pss2 = Picture2.length-1;
var preLoad2 = new Array();
for (iss2 = 1; iss2 < pss2+1; iss2++){
preLoad2[iss2] = new Image();
preLoad2[iss2].src = Picture2[iss2];}
function runSlideShow2(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad2[jss2].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss2 = jss2 + 1;
if (jss2 > (pss2)) jss2=1;
tss2 = setTimeout('runSlideShow2()', SlideShowSpeed2);
}
</script>
</head>
<body onload="runSlideShow();runSlideShow2()" bgcolor=#000000>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=350 height=280>
<img src=Album011.gif name=PictureBox width=350 height=280>
</td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 left=200>
<tr>
<td width=400 height=400>
<img src=Album019.gif name=PictureBox width=400 height=500>
</td>
</tr>
</table>
</body>
</html>
With the help of this forum, i could get my sexy fading-image-slideshow (codelifter.com) script to work exactly as i wanted,thanks again,
Now , that i duplicated the script for puting 2 sliding menus,I've differencialized the variables, ONLOADed them both in my BODY tag;
Result:2 scripts load, but one of them is off,,
My code is attached to my message
I appreciate any help.
<!-- <<<<<MODIFIED>>>>>:
Cross-fade SlideShow <<<WITHOUT>>> Captions
(C)2002 by CodeLifter.com
Browsers: NS4-7,IE4-6
Fade effect only in IE; degrades gracefully.
NS4 shows default caption only.
<html>
<head>
<!--
The <<<<FIRST>>>>>> script in the head of the page.
//-->
<script>
// (C) 2002 http://www.codelifter.com/
// http://www.codelifter.com/
// Free for all users, but leave in this header.
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;
var Picture = new Array(); // don't change this
Picture[1] = 'Album011.gif';
Picture[2] = 'Album012.gif';
var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;
var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}
function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
</script>
<!--
The following <<<<SECOND>>>>>> script in the head of the page.
//-->
<script>
// (C) 2002 http://www.codelifter.com/
// http://www.codelifter.com/
// Free for all users, but leave in this header.
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed2 = 3000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration2 = 3;
var Picture2 = new Array(); // don't change this
Picture2[1] = 'Album016.gif';
Picture2[2] = 'Album019.gif';
var tss2;
var iss2;
var jss2 = 1;
var pss2 = Picture2.length-1;
var preLoad2 = new Array();
for (iss2 = 1; iss2 < pss2+1; iss2++){
preLoad2[iss2] = new Image();
preLoad2[iss2].src = Picture2[iss2];}
function runSlideShow2(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad2[jss2].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss2 = jss2 + 1;
if (jss2 > (pss2)) jss2=1;
tss2 = setTimeout('runSlideShow2()', SlideShowSpeed2);
}
</script>
</head>
<body onload="runSlideShow();runSlideShow2()" bgcolor=#000000>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=350 height=280>
<img src=Album011.gif name=PictureBox width=350 height=280>
</td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 left=200>
<tr>
<td width=400 height=400>
<img src=Album019.gif name=PictureBox width=400 height=500>
</td>
</tr>
</table>
</body>
</html>