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
https://forums.phpfreaks.com/topic/115679-frames/#findComment-594708
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
https://forums.phpfreaks.com/topic/115679-frames/#findComment-594719
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
https://forums.phpfreaks.com/topic/115679-frames/#findComment-595138
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.