Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Kal
    Kal is offline
    Regular Coder
    Join Date
    Dec 2005
    Posts
    309
    Thanks
    0
    Thanked 0 Times in 0 Posts

    browser compatibility issue

    Hi,

    i have the following function which changes an image in one frame as you hover over various links in the menu frame. Also if you click on the link or the image then the page will change in the main frame.

    this works fine in Internet Explorer but not in Firefox the image doesn't change on hover over the link but everything else does, any help would be great.

    could it be something to do with the way the frames are being referenced?

    thanks in advance.

    menu frame

    Code:
    <script language="JavaScript">
    
    internet_main = window.parent.internet_main("internet_main.html","rollWindow","internet_main");
    
    function getRolling(whichBrief,url){
    internet_main.document.images.rollpic.src = whichBrief;
    internet_main.document.images.rollpic.onclick=function(){
    internet_main.document.location=url
    }
    
    }
    
    </script>
    
    
    <li><font color="#DB241C">Plan</font>
    
    <ul>
    
    <li><a href="/plan_1.html" TARGET="internet_main" onmouseover="getRolling('/plan_1.png','/plan_1.html')">> plan_1</a></li>
    
    <li><a href="/plan_2.html" TARGET="internet_main" onmouseover="getRolling('/plan_2.png','/plan_2.html')">> plan_2 +</a></li>
    
    <li><a href="/plan_3.html" TARGET="internet_main" onmouseover="getRolling('/plan_3.png','/plan_3.html')">> plan_3</a></li>
    
    <li><a href="/plan_4.html" TARGET="internet_main" onmouseover="getRolling('/plan_4.png','/plan_4.html')">> plan_4</a></li>
    
    </ul>
    
    </li>
    main frame

    Code:
    <div align="center">
    
    <img src/internet_image_main.png" name="rollpic">
    
    </div>
    Last edited by Kal; 01-02-2007 at 02:17 PM.

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by Kal View Post
    internet_main.document.images.rollpic.src = whichBrief;
    internet_main.document.images.rollpic.onclick=function(){
    internet_main.document.location=url
    The other frame is addressed: parent.internet_main

  • #3
    Kal
    Kal is offline
    Regular Coder
    Join Date
    Dec 2005
    Posts
    309
    Thanks
    0
    Thanked 0 Times in 0 Posts
    dont quiet understand, the line where it is addressed is all put in the variable internet_main anyway.

  • #4
    Kal
    Kal is offline
    Regular Coder
    Join Date
    Dec 2005
    Posts
    309
    Thanks
    0
    Thanked 0 Times in 0 Posts
    All fixed now.

    Arty Effem now understand, i just put parent. infront of those lines you quoted.

    cheers


  •  

    Posting Permissions

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