
Originally Posted by
moechaing
Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
You can fix that by adding the credit back like so:
Code:
<td height="64" colspan="7" align="center" background="images/keyper8.jpg"><script type="text/javascript">
/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var sliderwidth="531px"
//Specify the slider's height
var sliderheight="64px"
//Specify the slider's slide spe . . .
Now onto your problem, there are actually two basic issues here:
First, you have unclosed span tags in your array, ex:
Code:
leftrightslide[0]='<span id="1"><a href="javascript:display(0)"><img src="../page/ani/slider0.jpg" border=0></a>'
Fix all of those by closing them, ex:
Code:
leftrightslide[0]='<span id="1"><a href="javascript:display(0)"><img src="../page/ani/slider0.jpg" border=0></a></span>'
Just taking care of that will get it working, albeit poorly in IE. But you will now have a version the centering problem that was mentioned previously in this thread.
So, for this second problem, remove the align="center" attribute from the containing table cell here:
Code:
<td height="64" colspan="7" align="center" background="images/keyper8.jpg"><script type="text/javascript">
/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var sliderwidth="531px"
//Specify the slider's height
var sliderheight="64px"
//Specify the slider's slide spe . . .
That will fix the centering bug of the script for IE, but will also move the display to the left. To fix that, we can do several things. The easiest is to edit the script here (addition red):
Code:
if (iedom||document.layers){
with (document){
document.write('<table align="center" border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwi . . .
We can actually add align="center" there, because it just centers the table, not its contents as did the td tag. Now IE 7, FF and Safari should be happy.
Bookmarks