Top Frame Like Google Images

Posted on 2009-02-11
Last Modified: 2013-11-19
hi all,

just a quick one.

i am trying to create a links section on my website and want to include a top bar like google images.

i can create a top frame no problem but how do i load it from another page i.e set the target from another page to lad that page into the new frameset?

any help would be greatly recieved!
Question by:Goption
    LVL 92

    Expert Comment

    with javascript

    LVL 92

    Expert Comment

    though frames and iframes can load their page from whatever url you specify.
    you'll find some details on frames here

    and iframes here
    LVL 1

    Accepted Solution

    i sorted it with the following javascript:
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the last code into the BODY of your HTML document  -->
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    <SCRIPT LANGUAGE="JavaScript">
     <!-- Original:  Grace Li ( -->
    <!-- Web Site: -->
    <!-- Modified By:  Ronnie T. Moore, Editor -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! -->
    <!-- Begin
    percent = "10%";
    function frameBranding(actualurl, brandingurl, frametype) {
    var framewin ="","brandingframe");
    with (framewin.document) {
    write("<html><frameset " + frametype + "=" + percent + ",*>");
    write("<frame src=" + brandingurl + ">");
    write(" <frame src=" + actualurl + ">");
    return false;
    //  End -->
    <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
    <a target="_new" href="" onClick="return frameBranding('', '', 'rows');">Altavista (with rows branding)</a>
    <a target="_new" href="" onClick="return frameBranding('', '', 'cols');">Lycos (with cols branding)</a>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
    by <a href="">The JavaScript Source</a></font>
    <!-- Script Size:  1.48 KB -->

    Open in new window


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    This video teaches viewers about errors in exception handling.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now