Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 628
  • Last Modified:

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!
0
Goption
Asked:
Goption
  • 2
1 Solution
 
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
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now