Jump to content

Conveyor Belt Slideshow from database


myrok24

Recommended Posts

Hi there, im using a image carousel script from:

 

http://www.dynamicdrive.com/dynamici...rightslide.htm

The problem is, after a tweak i do get the images from my database, and also an encounting leftrightslide[NUMBER].

 

but in the browser it is somehow litterly showing the text "leftrightslide[NUMBER]".. plus the correct image.

 

It seems that im missing a closing or starting tag of somekind.. but can't find it..

example:

http://blikvoer.com/temp/bok/carous.php

I changed this:

var finalslide=''
leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" border=1></a>'
leftrightslide[1]='<a href="http://"><img src="dynamicbook2.gif" border=1></a>'
leftrightslide[2]='<a href="http://"><img src="dynamicbook3.gif" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="dynamicbook4.gif" border=1></a>'
leftrightslide[4]='<a href="http://"><img src="dynamicbook5.gif" border=1></a>'

 

into this:

var finalslide=''


</SCRIPT>

<?
$i=0;

while ($row = mysql_fetch_assoc($result)){
extract($row); ?>

leftrightslide[<?php echo $i;?>]='
<a target="_parent" href="index.php?pagina=klanten&klant=<?php echo $klant;?>"><? echo '<img src="logoimage/' . $logoname . '" />'; ?>
</a>'
<? $i=$i+1;
}
?>
<script type="text/javascript">
//Specify gap between each image (use HTML):

Any help is appreciated..

Link to comment
https://forums.phpfreaks.com/topic/146379-conveyor-belt-slideshow-from-database/
Share on other sites

<SCRIPT>
var finalslide='';


</SCRIPT>

<?
$i=0;

while ($row = mysql_fetch_assoc($result)){
extract($row); ?>
<SCRIPT>
var leftrightslide[<?php echo $i;?>]='
<a target="_parent" href="index.php?pagina=klanten&klant=<?php echo $klant;?>"><? echo '<img src="logoimage/' . $logoname . '" />'; ?>
</a>';

document.write(leftrightslide[<?php echo $i;?>])
</SCRIPT>
<? $i=$i+1;
}
?>
<script type="text/javascript">
//Specify gap between each image (use HTML):

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.