Results 1 to 3 of 3

Thread: Beginner needing some help with script!

  1. #1
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Beginner needing some help with script!

    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Where it has this:

    Code:
    //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):

    Code:
    //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:

    Code:
    //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:

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

    Code:
    <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>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John - that's great. Works fine now. Many thanks for your help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •