
Script for Framed Sites?
Script for Framed Sites?
If i do a search on google and see a page of my site when i click on the link it takes it to that page but without the frames (as this is main page only) therefore vistors cannot see the index on the left and therefore cannot navigate back to the main page! 

Last edited by fac51 on Fri Jul 18, 2003 4:18 pm, edited 1 time in total.

you could use a javascript tht redirects the visitor to the frameset page if its not in a frame...
paste this script in the head of each individual page
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window == top) top.location.href = "index.htm";
// End -->
</script>
paste this script in the head of each individual page
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window == top) top.location.href = "index.htm";
// End -->
</script>
Opinions are like arseholes, everyone has one.
exactly
its a simple if statement tht checks if the url of the page is the same as the url on the address bar...
if it is, it'll then redirect the user to the main frame page (make sure u dont put the script there
)
you could search around for a more specific script tht redirects the user to the main frame page with the page he wants in the frame
its a simple if statement tht checks if the url of the page is the same as the url on the address bar...
if it is, it'll then redirect the user to the main frame page (make sure u dont put the script there
)
you could search around for a more specific script tht redirects the user to the main frame page with the page he wants in the frame
Opinions are like arseholes, everyone has one.