View Full Version : Beginner needing some help with script!

12-05-2006, 09:32 PM
1) Script Title: Blending Image Slideshow Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/image4.htm

3) Describe problem: I'm a complete beginner at using this script. I've set up a Flickr account and uploaded my photos but I don't know how to modify the script so that they will be included within the slideshow (at the moment my efforts at trying to work it out always end up with a blank). I wonder if someone could explain to me how to complete the following two instructions attached to the above script:

"Configure the images and corresponding links." Step 1

"Inside the code, modify the HTML so the src property correctly points to the first image within the slide." Step 2

Hope to hear from someone. Thanks.

12-06-2006, 06:47 AM
Where it has this:

//specify images
var slideimages=new Array("image1.gif","image2.gif","image3.gif")

Substitute the address of your images. If they're on a third party host as you seem to imply, the full path to the image must be used (example red):

//specify images
var slideimages=new Array("http://www.whatever.com/~myimages/image1.gif","image2.gif","image3.gif")

Where it has:

//specify corresponding links
var slidelinks=new Array("http://www.dynamicdrive.com","http://javascriptkit.com","http://www.geocities.com")

Put in the URL of the links you want to use in place of the example ones. If they are pages on your site in the same directory, you can just use the page names:

//specify corresponding links
var slidelinks=new Array("page1.htm","page2.htm","page3.htm")

For the last part, take the location of your first image from:

//specify images
var slideimages=new Array("http://www.whatever.com/~myimages/image1.gif","image2.gif","image3.gif")

and put it here:

<a href="javascript:gotoshow()"><img src="http://www.whatever.com/~myimages/image1.gif" name="slide" border=0 style="filter:blendTrans(duration=3)" width=97 height=100></a>

12-06-2006, 03:44 PM
John - that's great. Works fine now. Many thanks for your help.