Log in

View Full Version : Click on image and execute script



Jim81501
07-17-2009, 09:20 PM
Computers always keep me humble.

I'm creating a website to display slideshows I've created using Photodex Software. The "code" provided by Photodex to insert into my web page looks like this:

<script language="javascript" src="http://www.photodex.com/presenter.js"></script>

<script>
PhotodexObject("ProShow","objectname","pxfiles/jakegrad.px",640,480); PresenterControls("objectname",640);
</script>

This code works fine when you want to play the show but I have many shows and need to utilize the space better. I want to have a small jpg file (128X96 would work) that I put in a table next to a description of the show. When someone wants to view the show they click on the jpg (or a button under the jpg) and the show opens as defined in the <script> tag above. It doesn't make any difference if it open in a new page or the same page but when they finish viewing the show they need to be brought back to the page they started on.

I don't know much about javascript but can usually figure out html and CSS. I can follow directions (unless your talking to my wife and then....).

If someone can point me to an existing script that might work I sure would appreciate it... I've been looking but no joy yet.

Thanks...