Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to run a slide show script in a template--The code below works in the template itself but not in the files attached to it--In the regular files, no picture shows--The problem seems to be the image file names--but I've tried editing the code with ../images/picture.jpg and /images/picutre.jpg--I remember reading that layers could not be used in a template but this is a script--I didn't think it would be a problem--Any ideas--
IN HEAD
<script language="JavaScript1.1">
<!--
var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages=new Image()
slideimages.src=slideshowimages.arguments
}
}
function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks=slideshowlinks.arguments
}
function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}
//-->
</script>
IN BODY
<td rowspan="4" valign="top"> <img src="../images/literacy.jpg" name="slide" border=0 width=120 height=85>
<script>
<!--
//configure the paths of the images, plus corresponding target links
slideshowimages("../images/literacy.jpg","../images/homework2.jpg","../images/circgroup.jpg","../images/familypl.jpg","../images/computergroup.jpg"
//configure the speed of the slideshow, in miliseconds
var slideshowspeed=4000
var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()
//-->
</script>
IN HEAD
<script language="JavaScript1.1">
<!--
var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages=new Image()
slideimages.src=slideshowimages.arguments
}
}
function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks=slideshowlinks.arguments
}
function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}
//-->
</script>
IN BODY
<td rowspan="4" valign="top"> <img src="../images/literacy.jpg" name="slide" border=0 width=120 height=85>
<script>
<!--
//configure the paths of the images, plus corresponding target links
slideshowimages("../images/literacy.jpg","../images/homework2.jpg","../images/circgroup.jpg","../images/familypl.jpg","../images/computergroup.jpg"
//configure the speed of the slideshow, in miliseconds
var slideshowspeed=4000
var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()
//-->
</script>