Results 1 to 2 of 2

Thread: Flexi Slide Script

  1. #1
    Join Date
    Feb 2006
    Location
    Oklahoma
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Flexi Slide Script

    http://www.dynamicdrive.com/dynamici...flexislide.htm

    I have been trying for days to get this script to be able to run more than 3 images, but I keep getting an undefined error when I add more images. Can you please tell me what to change so I can display more images.

  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

    Usually that is what will happen if you do not follow the example array syntax properly. This is the example array:

    Code:
    var variableslide=new Array()
    
    //variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
    
    variableslide[0]=['ball.gif', '', '']
    variableslide[1]=['spaceship.gif', 'http://www.space.com', 'Has aliens landed on earth? You decide.']
    variableslide[2]=['cake.gif', '', '']
    The next entry could look like so:

    Code:
    variableslide[3]=['another.gif', 'http://www.google.com', 'Search Google']
    or just simply:

    Code:
    variableslide[3]=['pie.gif', '', '']
    Each new entry must increment the bracketed number. Optional fields that are not used, must still have empty delimiting quotes around them. Any delimiter that is used inside a delimited string (example of bad coding):

    'That's a problem'

    must be escaped (how it should be done):

    'This isn\'t a problem'

    Oh, and any images that you put in the array must be available to the page.
    - John
    ________________________

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

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
  •