Jump to content

Frames???


Andy-H

Recommended Posts

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.

Link to comment
Share on other sites

<?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???

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.