Jump to content

thumbnail pics


grandgefx

Recommended Posts

Hi, I have this image gallery slideshow, below the image, it's the thumbnail pics. but the size of the thumbnail pics is random...I want to set the size to be the same for all thumbnail pics,  since I'm not the one wrote the code so I'm just guessing that this is the php code for the gallery:

 

<?php
for($i=1;$i<10;$i++)
{
if(!empty($foto[$i]))
  {
     if($i==1)
	{
	$foto_first=$foto[$i];
	}
echo "<img border=0 width=0px height=2px src='conf/i/".$foto[$i]."'>";
$dataku.="'".$foto[$i]."': { thumbnail: 'thumb/".$foto[$i]."'},";
  }
  else
  {
$i--;
break;
  }   
}

$dataku=substr($dataku,0,-1); 
?>

<link rel="stylesheet" href="css/slideshow.css">

<script src="js/mootools-1.3.1-core.js"></script>
<script src="js/mootools-1.3.1.1-more.js"></script>
<script src="js/slideshow.js"></script>
<script src="js/slideshow.flash.js"></script>
<script>
	window.addEvent('domready', function(){
		var data = { <?php echo $dataku;?>};

new Slideshow.Flash('flash', data, { color: ['tomato'],duration: 1500, delay: 10000, height: 400, hu: 'conf/i/', width: 500});				
	});
</script>


<div style="padding-bottom:350px;padding-right:100px">
<div id="flash" class="slideshow">
	<img src="conf/i/<?php echo $foto_first; ?>" alt="1" height=100px><br>
</div>
</div>

 

is this the part that I need to add "size" to it?

$dataku.="'".$foto[$i]."': { thumbnail: 'thumb/".$foto[$i]."'},";

 

I'm totally newb at php, so I have no clue at all

 

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.