User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 423,810 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,773 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting

Open all external links with a frame

Join Date: Nov 2007
Location: Arkansas
Posts: 395
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 2
Solved Threads: 77
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Whiz

Re: Open all external links with a frame

  #2  
May 12th, 2008
Below is the basic layout of a w3c valid frameset document. Obviously, the header.html is the document containing the header and the content.html is the document containing the content. Unless you use a link target of _parent, A link in the content will only cause the content frame to change and the header will stay intact. The <frameset rows="100,*"> tells the browser that the top frame is 100 pixels in height and the bottom content height is auto(*). Hope this helps.
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Page Title</title>
  6. </head>
  7.  
  8. <frameset rows="100,*">
  9. <noframes>
  10. <body>Your browser does not handle frames!</body>
  11. </noframes>
  12. <frame src="header.html" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" />
  13. <frame src="content.html" name="mainFrame" id="mainFrame" title="mainFrame" />
  14. </frameset>
  15. </html>
Reply With Quote  
All times are GMT -4. The time now is 2:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC