Funkyirishman
07-23-2002, 11:26 PM
Apologies first for the length of the post.
I have a 3 frame based page at www.worldeasy.com which i want to change to a 2 frame based. I am looking for a javascript that wont give me orphan pages when a user finds it using a search engine
The frames I have at the moment is 3 frames. However I want to amend this page for 2 frames a top and bottom one. The script I am using at the moment is
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
if (top.location == self.location) {
self.location.replace("/?home.htm")
}
// End hiding script from old browsers -->
</SCRIPT>
This is in the head section of all of my pages that are getting indexed by the search engine which are supposed to appear in the frameset
The below I use in my index page
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
linkURL = "home.htm"
if (parent.document.URL) {
callingURL = parent.document.URL
if (callingURL.indexOf('?') != -1) {
linkURL = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length)
}
}
document.writeln('<frameset rows="*" cols="105,692*" frameborder="NO" border="0" framespacing="0">');
document.writeln('<frame name="leftFrame" scrolling="NO" noresize src="left.htm">');
document.writeln('<frameset rows="111,*" frameborder="NO" border="0" framespacing="0" cols="*"> ');
document.writeln('<frame name="topFrame" noresize scrolling="NO" src="top.htm">');
document.writeln('<frame name="mainFrame" src=' + linkURL + '>');
document.writeln('</frameset>');
document.writeln('</frameset>');
// End hiding script from old browsers -->
</SCRIPT>
Will the above work if i only have 2 frames a top and bottom. The above takes into account a left frame which i wont have in my new design
SORRY ABOUT THE LENGTH OF THE MESSAGE
Thanks
I have a 3 frame based page at www.worldeasy.com which i want to change to a 2 frame based. I am looking for a javascript that wont give me orphan pages when a user finds it using a search engine
The frames I have at the moment is 3 frames. However I want to amend this page for 2 frames a top and bottom one. The script I am using at the moment is
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
if (top.location == self.location) {
self.location.replace("/?home.htm")
}
// End hiding script from old browsers -->
</SCRIPT>
This is in the head section of all of my pages that are getting indexed by the search engine which are supposed to appear in the frameset
The below I use in my index page
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
linkURL = "home.htm"
if (parent.document.URL) {
callingURL = parent.document.URL
if (callingURL.indexOf('?') != -1) {
linkURL = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length)
}
}
document.writeln('<frameset rows="*" cols="105,692*" frameborder="NO" border="0" framespacing="0">');
document.writeln('<frame name="leftFrame" scrolling="NO" noresize src="left.htm">');
document.writeln('<frameset rows="111,*" frameborder="NO" border="0" framespacing="0" cols="*"> ');
document.writeln('<frame name="topFrame" noresize scrolling="NO" src="top.htm">');
document.writeln('<frame name="mainFrame" src=' + linkURL + '>');
document.writeln('</frameset>');
document.writeln('</frameset>');
// End hiding script from old browsers -->
</SCRIPT>
Will the above work if i only have 2 frames a top and bottom. The above takes into account a left frame which i wont have in my new design
SORRY ABOUT THE LENGTH OF THE MESSAGE
Thanks