Top Frame Like Google Images

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!
LVL 1
GoptionAsked:
Who is Participating?
 
GoptionAuthor Commented:
i sorted it with the following javascript:
<!-- TWO STEPS TO INSTALL FRAME BRANDING:
 
  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  -->
 
<HEAD>
 
<SCRIPT LANGUAGE="JavaScript">
 <!-- Original:  Grace Li (gl105@yahoo.com) -->
<!-- Web Site:  http://www.sysu.net/gl105 -->
<!-- Modified By:  Ronnie T. Moore, Editor -->
 
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
 
<!-- Begin
percent = "10%";
function frameBranding(actualurl, brandingurl, frametype) {
var framewin = window.open("","brandingframe");
with (framewin.document) {
write("<html><frameset " + frametype + "=" + percent + ",*>");
write("<frame src=" + brandingurl + ">");
write(" <frame src=" + actualurl + ">");
write("</frameset></html>");
   }
return false;
}
//  End -->
</script>
</HEAD>
 
<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
 
<BODY>
 
<center>
<a target="_new" href="http://www.altavista.com/" onClick="return frameBranding('http://www.altavista.com', 'http://javascript.internet.com/navigation/frames-branding-thanks.html', 'rows');">Altavista (with rows branding)</a>
<p>
<a target="_new" href="http://www.lycos.com/" onClick="return frameBranding('http://www.lycos.com', 'http://javascript.internet.com/thank-you.html', 'cols');">Lycos (with cols branding)</a>
 
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
 
<!-- Script Size:  1.48 KB -->

Open in new window

0
 
objectsCommented:
with javascript

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

http://www.w3schools.com/HTML/html_frames.asp

and iframes here
http://www.w3schools.com/TAGS/tag_iframe.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.