[FX.php List] Pulling a Javascript variable into a PHP variable?
Leo R. Lundgren
leo at finalresort.org
Tue Mar 11 20:25:52 MDT 2008
I see you have written the image filenames the Pic array in the
beginning of the page.
I suggest that when you generate the Pic array, you don't just output
the image filenames, but supply the url you want for that specific
image at the same time. Then have the JS doing the rotation set the
url of the image link/container/a-tag as well as the image.
12 mar 2008 kl. 03.00 skrev Bob Patin:
> Here's what I'm up to:
>
> I've got a shopping cart that I've done for one of my clients, and
> he requested a "revolving" image on his home page:
>
> http://www.margem.com
>
> So I added code to his database so that he can add/remove images to
> this revolving set, and then Javascript makes the images revolve.
>
> However, I was hoping I could tie a different URL to each of the
> images; I have a URL field for each image, and I loaded them in,
> but I need to somehow get the image link to change, depending on
> which image is displayed.
>
> it's not a big deal, and I've given up on it... it was just a
> thought. But if you have a solution... that would be great!
>
> BP
>
>
> On Mar 11, 2008, at 8:43 PM, Leo R. Lundgren wrote:
>
>> I'm not entirely sure I understand your workings. Are you using JS
>> to load a specified image from the server and display it?
>>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-|
More information about the FX.php_List
mailing list