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
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):

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.