22 users online (0 members and 22 guests)  


  Results 1 to 5 of 5

Related

  1. Replies: 3
  2. Replies: 1
  3. Frames page scrollbar issues    Forum: HTML Forum
    Replies: 1
  4. Replies: 2
  5. Replies: 1
  1. #1
    luca143's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    2

    Question HELP: Referring Back to FRAMES Page..

    Greetings!

    I have created a website for a client that uses frames. The frames are _HEADER, _MENU (left side) and _MAIN

    What the client has done is used various services around the web to link their pages to search engines. Therefore, when someone searches for, say, "PRODUCTA" they will get a link to the webpage "products.html".

    The problem that arises, however, is that when a web surfer clicks on this link, they get just the products.html page, but are missing the _HEADER and _MENU frames, which are needed for navigation and company information.

    How would I go about doing this? Is there some code that I put into each page that will check for the frames page and reload the web if it's not there? Is there a way to specify the website and the html page to load in _MAIN via URL?

    Any tips or suggestions would be greatly appreciated.

    Thanks,

    Mike

  2. #2
    Enigma's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Nov 2000
    Posts
    426
    http://www.usc.edu/uscweb/authoring/frameload.html

  3. #3
    luca143's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    2
    Enigma,

    Perfect! Thank you kindly....

    Mike

    Quote Originally Posted by Enigma
    http://www.usc.edu/uscweb/authoring/frameload.html

  4. #4
    Enigma's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Nov 2000
    Posts
    426
    Quote Originally Posted by luca143
    Enigma,

    Perfect! Thank you kindly....

    Mike
    You're welcome.

  5. #5
    Macimage's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    1
    Hi,

    I have been trying to get different htnk codes to work for over a year now so that our frames work correctly when accessed from outside our site. I can not seem to get the hang of it. We know that we have several pages that have been picked up by search engines and we need to add the code to them so that the frames are included.

    We have three frames, the top one is called banner, the left one is called menu and the right one is called view.

    Per the link above, we have added a page called fr_index.html and put this code on it:

    <HTML>
    <HEAD>
    <TITLE>Parent Frameset</TITLE>
    </HEAD>
    <BODY><HTML>
    <HEAD> <TITLE>Parent Frameset</title></HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Hide from non-javascript browsers
    document.write('<FRAMESET ROWS="90,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">');

    document.write('<FRAME SRC="../banner.htm" NAME="banner" SCROLLING="NO" NORESIZE="NORESIZE"
    FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0">');



    document.write('<FRAME SRC="' + location.search.substring(1) + '" NAME="body">');



    document.write('</FRAMESET>');
    //-->
    </SCRIPT>

    </body>
    </HTML>

    The we took one of our individual pages that is located at www.studiodirectcosmetics.com/products/accessories.htm and added this code to it:

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function framecheck()
    {var parentframe = 'fr_index.html';

    if (parent.location.href == self.location.href)
    {var current = window.self.location.pathname;
    window.location.replace (parentframe + '?' + current);
    }
    };
    //-->
    </SCRIPT>


    </HEAD>
    <BODY onLoad="framecheck()">

    As you can see when you cut and paste the page, it does not work correctly. Our main page is at www.studiodirectcosmetics.com . If you open our main page and then click the upper right hand photo that says Selections, you will find the pages that we need to add this code to.

    I really, really appreciate any help.

    Thank you very much,
    Joyce



Tags for this Thread