Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    6
    Member #
    4917
    Please let this site be a real forum, this is my 4th forum registration today and still no answers

    Breathe..........Hi there

    kinda need some help with a prob I have and will do my best to explain the prob.

    My "hmpage.html" has an "iframe" that calls up diffrent pages using the 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 in 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.....mind boggled, need to wk in IE

    I know basic concept of "iframes" and I followed a javascipt tutorial on "image lists", tried to tie the 2 together, but just not quite 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) {if ((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.html

    <IFRAME name="content" src="menu.html" width="168" height="400" frameborder="0" 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>


    placeholder in cell 2

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

    Thank you so much for reading this so far any help would be very much appreciated.

    cheers

  2.  

  3. #2
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    Firstly Welcome to the forums! :classic:

    Secondly, don't give up if you don't get an immediate answer. There are certainly people who can solve your problem here, you just have to give them time to read your post.

    Unfortunately, my JavaScript skills are fairly wobbly at best, but I guess that's where the problem lies.

    It might be the 'getElementByID' object call, that is too 'modern' for IE5. But that's a complete shot in the dark.

    Stick around, and hopefully one of the JavaScript gurus will read this post.
    S. Rosland

  4. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    6
    Member #
    4917
    Sorted....

    Wk'd it out, ugly but effective.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:00 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com