Click to See Complete Forum and Search --> : image script


Pyrohavoc
03-06-2003, 11:09 PM
i was hoping someone could point me in the right direction to find a script that would basically do an image swap but i don't want to use java because of usability issues.....any body know of a good perl script??? basically what i need it to do is have an image that swaps out on click of previous or next.....any ideas??? i don't want the whole page to reload just the image

Nedals
03-07-2003, 01:41 AM
i don't want the whole page to reload just the imageIf you use a server-side script; Perl or better PHP for this application, the page will always reload.
You are therefore left with javascript or a page reload.

Pyrohavoc
03-07-2003, 05:29 PM
what if i setup an iframe and have the pictures load in there??? would the whole page still need to reload?

Nedals
03-07-2003, 06:16 PM
To be honest, I've never used iframe, but that could work if you know how to change the iframe without javascript.
You may be able to use something like this.

<a href="yourimage.jpg" target="iframe">link</a>

But I really don't know if you can use target this way. It's simply a guess!

jeffmott
03-07-2003, 06:19 PM
Server side coding will never be able to detect user actions and thus cannot respond interactively with the user in this way. It would still have to rely on client side scripting.