I have used a frame enforcer in JS that redirects you to the homepage and you have to inlcude it on all your pages and it can increase bandwidth if its an issue:
<SCRIPT LANGUAGE="JavaScript">
<!--
if (top == self) window.location.replace("/");
-->
</script>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- if (top == self) window.location.replace("/");
- -->
- </script>
But it does not solve the problem and you cant save pages to favorites etc. The bottom line is if you have a content or shop (not a snazzy portfolio where frames is ok) YOU DONT NEED TO USE COMPEX FRAMES!
Most free webhosts and ALL paid for web hosting you can use PHP and so you can use simple
server side includes. These are easyer to set up than frames and link to your navigation bar in a seprate file so if you add a new feature you can add it to your menu without changing every dam page (same goes for header, footer or banner!)
You sample.php page will have this code where you want your navigation included from one navigation HTML page:
.... <tr><td>
<?php
include("/includes/menu.htm")
?>
</td></tr>
<tr><td>
<?php
include("/includes/header.htm")
?>
</td></tr>...
-
- .... <tr><td>
- <?php
- include("/includes/menu.htm")
- ?>
- </td></tr>
- <tr><td>
- <?php
- include("/includes/header.htm")
- ?>
- </td></tr>...
Now you do 1 page called menu.htm (or any extention it dont matter) and stick your menu html in there.
You also create 1 page for your header and do the same.
Also you can do banners in a inlcude where you change 1 file to update all your page!!!! and also the footer and anything you want really!!!!
Piss easy and it much better than frames
(You can do this with any server side code)
Try never to duplicate code and keep you fonts and sizes in a sperate .css and JavaScript in .js file.
Read my Movie Reviews punk!