Results 1 to 6 of 6

Thread: Urgent: IFrame problem

  1. #1

    Thread Starter
    Hyperactive Member Stiletto's Avatar
    Join Date
    Aug 2002
    Location
    Jerusalem, Israel
    Posts
    287

    Urgent: IFrame problem

    Sup,
    I want to put some pics into my site. In my page I have 2 iframes.
    1 iframe will show all pics like movie frames (small size), and the other iframe will show a single picture at a time. when the user clicks on a picture in the first frame, the pic will show up in the second frame in its real size.
    The problem is that the first iframe, which holds all pics, is linked to page (src), and i dont know how to do it so when the user clicks a pic it will show up in its real size in the 2nd frame.
    The first iframe called "Pics" and the second called "Pic".
    How do i do that?
    tnx alot!

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Don't you just make all the links in the Pics frame have a target of Pic:

    Code:
    <a href="whatever" target="Pic">Click</a>

  3. #3

    Thread Starter
    Hyperactive Member Stiletto's Avatar
    Join Date
    Aug 2002
    Location
    Jerusalem, Israel
    Posts
    287
    LOL
    For some reason I thought 'Target' wont work and I didnt even try it.
    tnx

  4. #4

    Thread Starter
    Hyperactive Member Stiletto's Avatar
    Join Date
    Aug 2002
    Location
    Jerusalem, Israel
    Posts
    287
    I got an iframe with scrollbars.
    My host put an ad in the top fo the page.
    Is there a way to move the scrollbars a little down to the buttom of the page when the page is loading so the user wont see the ad at the top?
    tnx again

  5. #5
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    You mean scroll that page down a bit? I think you can do it with JavaScript. The syntax is something like:

    Code:
    frameName.scrollTo(X. Y);
    That could be a little wrong though, you'd have to test. And it may only work in IE, I can't remember. If you really wanted to get rid of the IFRAME you could always set it's visibilty to hidden and display to none. With CSS:

    Code:
    <style type="text/css"><!--
      iframe[name="abc"] {
        display:none;
        visibility:hidden;
      }
    --></style>
    But that will not work in IE. Or with JavaScript:

    Code:
    <script type="text/javascript"><!--
    document.abc.style.visibility= 'hidden';
    document.abc.style.display= 'none';
    //--></script>
    Remember though you'll probably loose you account if you do any of them

  6. #6

    Thread Starter
    Hyperactive Member Stiletto's Avatar
    Join Date
    Aug 2002
    Location
    Jerusalem, Israel
    Posts
    287
    Aight man tnx.

Posting Permissions

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



Click Here to Expand Forum to Full Width