Results 1 to 6 of 6

Thread: Step Carousel Viewer links into iframe

  1. #1
    Join Date
    Oct 2008
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Step Carousel Viewer links into iframe

    1) Script Title: Step Carousel Viewer v1.6.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...epcarousel.htm

    3) Describe problem:

    Hi guys

    I have two questions was wondering if anyone could help me out? The 1st i guess is easy but im a bit of a js newb. I want to make it so on clicking images from the carousel, pages load into an iframe (because i want to use the script as a sort of menu) . I have read the docs but no joy. I have tried

    <div class="panel">
    <a href="http://othersite.com" target="prdfrm2"><img src="http://mysite.com/imgs/3.jpg" /></a></div>

    but the othersite.com loads into a new window not into the iframe prdfrm2. Any ideas?

    The second question: is it poss to have a description under each image in a text box?

    Thanks for any replies.

    Matt

  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

    Two possible reasons why that isn't working:

    1. The script is using the target attribute for something else.
    2. You have no iframe with a name attribute set to 'prdfrm2'.


    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    mastubbs (10-23-2008)

  4. #3
    Join Date
    Oct 2008
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Hi John,

    Thanks for your reply. the page URL is http://cart3.jaspers-sensations.com/.../testpage.html

    Thanks for your help

    Matt

  5. #4
    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

    It was 2:

    You have no iframe with a name attribute set to 'prdfrm2'.
    From your source code:

    Code:
    <iframe id="prdfrm2" src="http://cart3.jaspers-sensations.com/stage/page2.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
    You have an id attribute set to 'prdfrm2', but no name attribute, try this:

    Code:
    <iframe name="prdfrm2" id="prdfrm2" src="http://cart3.jaspers-sensations.com/stage/page2.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
    Note: Some browsers will still work with targeting a link to an id of an iframe, but the standard method was for many years the name attribute, and some other browsers (notably IE) still require it.
    - John
    ________________________

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

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    mastubbs (10-25-2008)

  7. #5
    Join Date
    Oct 2008
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    legend thankyou

  8. #6
    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

    In all the 'excitement' I forgot to answer your other question:

    Quote Originally Posted by mastubbs View Post
    1) Script Title: Step Carousel Viewer v1.6.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...epcarousel.htm . . .

    The second question: is it poss to have a description under each image in a text box?
    That's easy, where you have like:

    Code:
    <div id="mygallery" class="stepcarousel">
    <div class="belt">
    
    <div class="panel">
    <img src="http://i30.tinypic.com/531q3n.jpg" />
    </div>
    You can put whatever you want in there, so for a text box, you could have:

    Code:
    <div id="mygallery" class="stepcarousel">
    <div class="belt">
    
    <div class="panel">
    <img src="http://i30.tinypic.com/531q3n.jpg" />
    <br><input type="text" value="My Caption">
    </div>
    I would prefer ordinary text though, like:

    Code:
    <div id="mygallery" class="stepcarousel">
    <div class="belt">
    
    <div class="panel">
    <img src="http://i30.tinypic.com/531q3n.jpg" />
    <br>My Caption
    </div>
    - 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
  •