PDA

View Full Version : if your useing iframe's this may be useful



Mentor
12-12-2004, 09:06 PM
My site usese iframes, but when a serch engine index's it such as google, it also indexs many of the seprt pages. so people are ogten linking in to a page without having any form of navigtion. wich is why i made this simple javascrip. all it does is write a link back to the main site, when the page is not in a frame.
im posting it in case anyoen else finds it useful


<SCRIPT language="JavaScript">
<!--
if (top.frames.length==0)
{
document.write('<br><strong><a href=" LINK URL">&lt; &lt; &lt; Back to SITE NAME</a></strong><br><p>&nbsp;</p>');
}
//-->
</SCRIPT>

Want to hide these adverts? Register an account for free!