Frames Script
If your site is in frames and you want to be sure that people visiting your webrings page will be able to view your page in frames, here's the script you need! Without it, people would see only your webrings page - as in, OUT of your frameset. They wouldn't be able to tell you had frames, unless of course you provided a link back to your index page (which would also work fine if you don't want to bother with a script).
This frame will, in effect, force your visitors back into your frameset! Just be sure to replace the section in RED with your site's URL. Don't remove the ? though! You can place your full URL here, or just the name of your index page. Click here for an example, and watch how the page goes from a single page to a frameset.
<SCRIPT LANGUAGE=JavaScript><!--
if (parent.location.href == location.href)
{
agent=navigator.userAgent;
x = location.href;
href = x.substring(25,x.length);
sNewLoc="frames.html?" + href;
if ((agent.indexOf("MSIE 3.0;") != -1) || (agent.indexOf("MSIE 3.01;") !=
-1) && (agent.indexOf("Mac") == -1))
{
brow = location.href;
window.explorer.navigate((brow.substring(0, brow.lastIndexOf("/") + 1) +
sNewLoc),2);
}
else //ie3.02, ie4.0, Netscape
{
parent.location.replace(sNewLoc);
}
}
//--></SCRIPT>