Javascript ImageList & iframes prob....I think?

Discussion in 'HTML' started by Steve R., Feb 13, 2004.

  1. Steve R.

    Steve R. Guest

    digdug wrote in message ...
    > need some help with a prob and will do my best to make it clear....


    I'm not entirely sure whether this is your answer but you don't have
    "quotes" around the names as in

    <IFRAME name="content" src="menu.html" width="168" height="400"
    frameborder="0"
    > scrolling="auto">


    but you do have quotes around all the other markup.

    You just have ...

    <IFRAME name=content src=menu.html width=168 height=400 frameborder=0
    scrolling=auto>
    Steve R., Feb 13, 2004
    #1
    1. Advertising

  2. > digdug

    from adp?
    Weyoun the Dancing Borg, Feb 13, 2004
    #2
    1. Advertising

  3. Steve R.

    digdug Guest

    Hi there

    need some help with a prob and will do my best to make it clear....

    My "hmpage.html" has an "iframe" that calls up diffrent pages using th
    nav buttons on the "hmpage.html"

    one of those pages It calls up is "gallery.html" & on this page:

    I have a table split in 2

    1) cell 1 is an iframe
    2) cell 2 has a placeholder

    in cell2, the iframe calls up "image_list.html"

    When you click on the image link, a image shows in "place holder".

    My prob is.....it only works in NE/Safari/MoZ/etc.....But NOT i
    IE5!!!!....nuts:(

    In IE5 when u click on a link in the image list (cell 1, iframe)
    image1.jpg shows up in the iframe instead of the place holder.

    messed up, I think it's how Im targeting the links, not sure.....min
    boggled, need to wk in IE

    I know basic concept of "iframes" and I followed a javascipt tutoria
    on "image lists", tried to tie the 2 together, but just not quit
    there. This is the javascript in the head of:

    \"GALLERY.HTML\


    <script type="text/javascript" language="javascript">
    function showPic (whichpic) {
    if (document.getElementById) {
    document.getElementById('placeholder').src = whichpic.href;
    if (whichpic.title) {
    document.getElementById('desc').childNodes[0].nodeValue
    whichpic.title;
    } else {
    document.getElementById('desc').childNodes[0].nodeValue
    whichpic.childNodes[0].nodeValue;
    }
    return false;
    } else {
    return true;
    }
    }
    </script>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {i
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH
    location.reload();
    }
    MM_reloadPage(true);
    //-->
    </script>

    THIS IS THE IFRAME CODE IN 'GALLERY.HTM

    <IFRAME name=content src=menu.html width=168 height=400 frameborder=
    scrolling=auto>
    </IFRAME></td>


    THIS IS THE LINK CODE IN \"MENU.HTML\


    <a href="image1.jpg" title="family photo" target="content
    onclick="return showPic(this)"><img src="/images/images1.jpg
    width="75" height="57" border="0"></a>


    thanks:

    digdu
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message45055.htm
    digdug, Feb 13, 2004
    #3
  4. Steve R.

    digdug Guest

    Steve R. wrote:
    > *digdug wrote in message ...
    > Hi Steve
    >
    > Thanks for replying, I added the "" but still no change. In cell
    > where the place holder is, would I have to change it to anothe
    > "iframe"?
    >
    > and would the javascript have to be modified for the placeholde
    > being in cell 2 "iframe"?
    >
    > I'm trying to grasp the logic the structure, but just loosing it.
    >
    >
    >
    >
    > > need some help with a prob and will do my best to make i

    > clear....
    >
    > I'm not entirely sure whether this is your answer but you don't have
    > "quotes" around the names as in
    >
    > <IFRAME name="content" src="menu.html" width="168" height="400"
    > frameborder="0"
    > > scrolling="auto">

    >
    > but you do have quotes around all the other markup.
    >
    > You just have ...
    >
    > <IFRAME name=content src=menu.html width=168 height=40
    > frameborder=0
    > scrolling=auto>


    digdu
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message45055.htm
    digdug, Feb 13, 2004
    #4
  5. Steve R.

    digdug Guest

    digdug, Feb 13, 2004
    #5
  6. Steve R.

    digdug Guest

    forgot to add this in the first post

    *gallery.html*



    Code
    -------------------
    <td colspan="6" bgcolor="#CCCCCC"><img src="/mainmenu_buttons"id="placeholder"></td
    -------------------


    digdu
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message45055.htm
    digdug, Feb 13, 2004
    #6
  7. Steve R.

    Mark Parnell Guest

    On Fri, 13 Feb 2004 09:00:59 -0600, digdug
    <4designers.com> declared in alt.html:

    > Posted via http://www.forum4designers.com


    Do you realize that you are not posting to a website forum when you use
    this site? They are passing your posts on to the usenet newsgroup
    alt.html

    alt.html is a publicly available newsgroup. The website you are using is
    stealing its content directly from there and pretending that it is their
    own. There is no original material at all on the website you are looking
    at now. It is all coming directly from usenet.

    This web site ruins the threading of the messages - making it very
    confusing for us to follow, as your posts are not in the right place in
    the thread. Also, because you can see all the previous posts on the
    screen, you don't quote the text you are replying to - breaking one of
    the foremost conventions on Usenet.

    If you are posting from this 'forum' and have included any CSS then be
    aware that the software the forum uses will strip any leading dots from
    your CSS rules, making them invalid.

    If you are reading a usenet post using this 'forum' then be aware that
    any javascript examples you may see will have the indented formatting
    removed and will be quite hard to read, and not what the author of those
    examples intended.

    I suggest you obtain a newsreader and visit us at news:alt.html

    If you have no access to a newsreader, then try groups.google.com where
    they allow you to sign up, post, receive replies, but they don't lie and
    claim the content as there own.

    People will listen to you if you do. We are all starting to ignore any
    post from http://www.forum4designers.com

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
    Mark Parnell, Feb 16, 2004
    #7
  8. Steve R.

    Whitecrest Guest

    In article <>,
    says...
    > On Fri, 13 Feb 2004 09:00:59 -0600, digdug
    > <4designers.com> declared in alt.html:
    > > Posted via http://www.forum4designers.com

    >
    > Do you realize that you are not posting to a website forum when you use
    > this site? They are passing your posts on to the usenet newsgroup
    > alt.html


    Who gives a shit. Some people use a reader, some people use google,
    some people use forum4designers.

    Stop being a dildo, who cares how someone posts here.

    --
    Whitecrest Entertainment
    www.whitecrestent.com
    Whitecrest, Feb 17, 2004
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Ho
    Replies:
    2
    Views:
    10,319
    Carl Prothman [MVP]
    Jul 26, 2003
  2. Herr Lucifer
    Replies:
    0
    Views:
    541
    Herr Lucifer
    Jun 21, 2004
  3. Martin Drautzburg
    Replies:
    2
    Views:
    381
    Paul McGuire
    Dec 20, 2004
  4. Chaos
    Replies:
    2
    Views:
    485
    Chaos
    Aug 13, 2006
  5. Replies:
    0
    Views:
    587
Loading...

Share This Page