•
•
•
•
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 374,144 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,500 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
Views: 486 | Replies: 4
![]() |
Hi guys,
Wasn't too sure which forum to put this in as im not sure what kind of script would be used, but this is what I want to be able to do:
Have some kind of script that makes any external link on my website open the link and have a frame with my content at the top (like when you find an image using google images search and theyr frame is at the top.)
Thanks for your time =]
Max
Wasn't too sure which forum to put this in as im not sure what kind of script would be used, but this is what I want to be able to do:
Have some kind of script that makes any external link on my website open the link and have a frame with my content at the top (like when you find an image using google images search and theyr frame is at the top.)
Thanks for your time =]
Max
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. html Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Page Title</title> </head> <frameset rows="100,*"> <noframes> <body>Your browser does not handle frames!</body> </noframes> <frame src="header.html" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" /> <frame src="content.html" name="mainFrame" id="mainFrame" title="mainFrame" /> </frameset> </html>
Okay thanks for that. The only other thing is that I needed the frames to appear after the link has been clicked on. for example you have a regular page, no frames just content, but when you click on a link which goes to www.google.com, it will use a frame for the top (header.html) which for example would have my logo on it, and then the bottom (main) frame will contain www.google.com. So the site only uses frames when going onto an external link, otherwise no frames are used.
Thanks again,
Max
Thanks again,
Max
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
age amd avatar chips dell development dos drivers economy enterprise firefox graphics hardware ibm ibm. news intel intel ibm internet links linux memory microsoft mozilla news open open source open-source opengl openoffice pc ps3 recession red hat russia software source sourceforge sun super supercomputer supercomputing support system technology trends ubuntu vista windows working x86
- Firefox Compatibility help with script (JavaScript / DHTML / AJAX)
- Frame detection possible? (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: images loading time changes depending on browser
- Next Thread: Tables & Css


Linear Mode