PDA

View Full Version : Can anyone help me?



doyleheck
10-12-2005, 09:40 PM
I am trying to set up a page that scrolls through websites like the page I have setup to scroll through pictures: http://www.doyleenterprise.com/yv1.htm

I want to be able to input web addresses into the file and have those displayed. The code I am working with is below. The web address that is stored in the code is the web page I would like to show in the slide show. It usually points to a picture. Any help you have is greatly appreciated.

James

Here is the code:

<html>

<head>

<style>
.Caption {
font-family: Arial;
font-weight: bold;
color: blue;
}
</style>

<script>

var SlideShowSpeed = 3500;
var CrossFadeDuration = 6;
var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
// =====================================
// Where are your photos located?!
// =====================================
Picture[1] = 'http://www.obeo.com/207584';
Picture[2] = 'http://www.obeo.com/189631';
Picture[3] = 'http://www.obeo.com/201177';
Picture[4] = 'http://www.obeo.com/203943';
Picture[5] = 'http://www.obeo.com/202647';
Picture[6] = 'http://www.obeo.com/201175';
Picture[7] = 'http://www.obeo.com/203216';
Picture[8] = 'http://www.obeo.com/206620';
Picture[9] = 'http://www.obeo.com/206935';
Picture[10] = 'http://www.obeo.com/208349';
Picture[11] = 'http://www.obeo.com/191873';
// =====================================
// Place your captions between the quotations! Caption 1 goes with Photo 1!
// =====================================
Caption[1] = "";
Caption[2] = "";
Caption[3] = "";
Caption[4] = "";
Caption[5] = "";
Caption[6] = "";
Caption[7] = "";
Caption[8] = "";
Caption[9] = "";
Caption[10] = "";
Caption[11] = "";

// =====================================
// Do not edit anything below this line!
// =====================================

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.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

</script>
</head>
<title>Sample 1</title>
<body onload=runSlideShow() bgcolor=black>
<div align="left">
<p><font color="#000000"></font> <font color="#0066FF">
</font></p>
</div>
<table border=0 cellpadding=0 cellspacing=0 align="center">
<tr>
<td width=350 height=280> <img src=http://www.obeo.com/207584 name=PictureBox width=750 height=450>
</td>
</tr>
<tr>
<td id=CaptionBox class=Caption align=center bgcolor="black">
<div align="center"> </div>
</td>
</tr>
</table>




</body>

</html>