Results 1 to 3 of 3

Thread: Help with Conveyor and iframes

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with Conveyor and iframes

    I've set up the conveyor script on my page but I want each individual image click to open two iframes on the same page. I've found another script that will open two iframes on the page from a static link but when I copy the latter link code into the scroller script - it dosen't work. Can anyone advise on how I should change the scroller script to make this work.

    ref: http://www.newspublisher.co.uk/flore...wn/outfits.htm
    (links as the bottom of page in white)

  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

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.


    I think you just need to learn proper technique for escaping nested quotes.

    Like I see you have this:

    Code:
    <a href="javascript:loadTwo('picture9trio.htm','picture9.htm')">Link1</a>
    that works. You just need to get it into this:

    Code:
    leftrightslide[0]='<a href="mother_of_the_bride_1.shtml"><img src="images/mother1/small1.jpg" style="border:1px solid white;"></a>'
    But you will notice that the second bit of code already has single quotes around it, so if you do this:

    Code:
    leftrightslide[0]='<a href="javascript:loadTwo('picture9trio.htm','picture9.htm')"><img src="images/mother1/small1.jpg" style="border:1px solid white;"></a>'
    you are ending the string at wo('picture

    This can be fixed by escaping the nested delimiters:

    Code:
    leftrightslide[0]='<a href="javascript:loadTwo(\'picture9trio.htm\',\'picture9.htm\')"><img src="images/mother1/small1.jpg" style="border:1px solid white;"></a>'
    - John
    ________________________

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

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John - that works great !

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
  •