|
Posted by Shelly on 11/18/07 22:44
phill.luckhurst@googlemail.com wrote:
> I haven't a clue with PHP so please spoon feed me.
>
> In the middle of a script that I have been looking at there is this
> code which I have extracted to run on it's own
>
> <?php
> include "flashthumb.php";
>>
>
> <script type="text/javascript" src="mootools.js"></script>
> <script type="text/javascript" src="slideshow.js"></script>
>
> <div id="my_slideshow" class="slideshow">
> <img src="images/vote.jpg" alt="A picture" width="400" height="300" /
>>
> </div>
> ...
> <script type="text/javascript">
> myShow = new Slideshow('my_slideshow', {hu: 'images/', images:
> ['vote.jpg','thumb_rar.jpg','thumb_wav.jpg']});
> </script>
> <?
>>
>
> Now flashthumb.php generates a list of filenames in the variable
> $url[1], $url[2], $url[3] etc
>
> how would I use those in the myshow line instead of
> 'vote.jpg','thumb_rar.jpg','thumb_wav.jpg'
>
> or am I totally barking mad and getting it wrong?
Suppose the value of $url[1] is the one that corresponds to 'my_slideshow'
and holds that value. Then you would use
<?php echo $url[1]; ?>
instead of 'my_Slideshow'.
It allows you, for example, to initialize fields in the middle of html text.
--
Shelly
[Back to original message]
|