Andy-H Posted July 20, 2008 Share Posted July 20, 2008 I am making a hosting site for my friend and I was wondering weater to use frames as alot of people say not to use them but I don't know why. Any advice? Quote Link to comment Share on other sites More sharing options...
coolpro Posted July 20, 2008 Share Posted July 20, 2008 I am a good judge of HTML, but I think it is because of some old browsers do not support frames, but always it is possible to use this variant: <frameset cols="25%,75%"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> <noframes> <body>Your browser doesn't support frames</body> </noframes> </frameset> Note: When we use <frameset> then we don't use <body> element. But browsers which do not support frames, don't see <frameset> and <frame> elements, only <noframes>. So if we use <noframes> we have to neclose it with <body> frame. Quote Link to comment Share on other sites More sharing options...
Andy-H Posted July 20, 2008 Author Share Posted July 20, 2008 thanks, didnt know about the body thing in noframes Quote Link to comment Share on other sites More sharing options...
Andy-H Posted July 20, 2008 Author Share Posted July 20, 2008 <?php require("connections/functions.php"); ?> <html> <head> <title><? echo $sitename; ?> - Admin Area</title> </head> <frameset rows="100,*" framespacing="0" border="no"> <frameset rows="100,*" framespacing="0" border="no"> <frame src="welcome.php" name="topFrame" scrolling="no" noresize="noresize" /> </frameset> <frameset cols="175,*" framespacing="0" border="no"> <frameset cols="175,*" framespacing="0" border="no"> <frame src="menu.php" name="menu" scrolling="auto" noresize="noresize" /> <frame src="custom.php" name="mainFrame" scrolling="auto" noresize="noresize" /> </frameset> </frameset> </frameset> <noframes> <body> <center><strong><font color="red"> Sorry, your browser doesn't support frames. Please download a newer version. </font></strong></center> </body> </noframes> </html> Why is that the only way my frames will work? Help please??? Quote Link to comment Share on other sites More sharing options...
BillyBoB Posted July 20, 2008 Share Posted July 20, 2008 Here's what w3.org has to say about frames. "The disadvantages of using frames are: * The web developer must keep track of more HTML documents * It is difficult to print the entire page" I don't use them they aren't web 2.0 material. - in my opinion. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted July 21, 2008 Share Posted July 21, 2008 Frames were used in the 90's because server side languages weren't existent or not very popular. Therefore, php couldn't "include/require" the file. The only way to make the header consistent with all the webpages was to use frames. But times have changed now. PHP allows you to require files enabling you to have the same functionality as frames did in the old days, while keeping the download time faster. Lastly, Google, will not rank you in the top 10 (ever, or almost never) if you use frames. It's a big NO NO. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.