hi, there, i am trying to use the slideshow javascript found at this site: [url]http://www.codelifter.com/main/javascript/slideshow2.html
but i can’t get the following line of code to stick in my webpage:
<body onload=”runSlideShow()”>
i follow the directions exactly, but that line above keeps getting ‘spit’ out of my page altogether…in fact, my webpage does not have any body tags per se, it keeps spitting them out when i try to put them in. the webpage functions just fine–no problems–but i can’t get this slideshow script to work b/c i can’t get the ‘onload’ instruction to stay–that body tag keeps getting stripped from my html page…
any ideas as to how to make this script work for me…?
–shereen–
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000
// Duration of crossfade (seconds)
var crossFadeDuration = 3
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_01.jpg"
Pic[1]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_02.jpg"
Pic[2]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_03.jpg"
Pic[3]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_04.jpg"
Pic[4]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_05.jpg"
Pic[5]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_06.jpg"
Pic[6]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_07.jpg"
Pic[7]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_08.jpg"
Pic[8]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_09.jpg"
Pic[9]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_10.jpg"
Pic[10]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_11.jpg"
// =======================================
// do not edit anything below this line
// =======================================
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
function runSlideShow(){
if (document.all){
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()
}
document.images.SlideShow.src = preLoad[j].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()
}
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>
<body onload="runSlideShow()">
<table bordercolor="#66ccff" cellpadding="10" width="90%" align="center" bgcolor="#66ccff">
<tbody>
<tr bordercolor="#ffffff" bgcolor="#ffffff">
<td>
<div align="center"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=349 width=450>
<img src="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_01.jpg" name='SlideShow' width=450 height=349></td>
</tr>
</table> </div>
.
.
.
.
</body>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000
// Duration of crossfade (seconds)
var crossFadeDuration = 3
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_01.jpg"
Pic[1]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_02.jpg"
Pic[2]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_03.jpg"
Pic[3]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_04.jpg"
Pic[4]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_05.jpg"
Pic[5]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_06.jpg"
Pic[6]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_07.jpg"
Pic[7]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_08.jpg"
Pic[8]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_09.jpg"
Pic[9]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_10.jpg"
Pic[10]="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_11.jpg"
// =======================================
// do not edit anything below this line
// =======================================
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
function runSlideShow(){
if (document.all){
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()
}
document.images.SlideShow.src = preLoad[j].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()
}
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>
<table bordercolor="#66ccff" cellpadding="10" width="90%" align="center" bgcolor="#66ccff">
<tbody>
<tr bordercolor="#ffffff" bgcolor="#ffffff">
<td>
<div align="center"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=349 width=450>
<img src="https://splas004.secure.omnis.com/store/images/uploads/Customer_Photos/CustomerPhotos_01.jpg" name='SlideShow' width=450 height=349></td>
</tr>
</table> </div>
.
.
.
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
on my host server when i include the body tags[/QUOTE]
Which browsers are you using and what kind of error messages are you getting?[/QUOTE]
how many BODY tagS are you using?
and are you putting the 'codelifter' script in the HEAD or the BODY?[/QUOTE]
[CODE]<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000
// Duration of crossfade (seconds)
var crossFadeDuration = 3
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'images/confidence-coaching-pic.jpg'
Pic[1] = 'images/Commitment.jpg'
Pic[2] = 'images/creativity.jpg'
Pic[3] = 'images/lightbulb-idea.jpg'
Pic[4] = 'images/leadership.jpg'
// =======================================
// do not edit anything below this line
// =======================================
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
function runSlideShow(){
if (document.all){
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()
}
document.images.SlideShow.src = preLoad[j].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()
}
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>[/CODE]
[CODE]<td id="VU" height=80 width=120><img src="images/confidence-coaching-pic.jpg" name='SlideShow' width=120 height=80></td>[/CODE]
0.1.9 — BETA 5.28