Hello i have this framechecker on my page.
Where must i input the "replace" function?
Because when the framechecker will work, the the visitor cannot return to the original page.
This is the code in the frameset:
<SCRIPT language="JavaScript">
<!--
function GS_frameinit() {
var st = window.location.href;
var mypos = st.indexOf("?"
;
if (mypos > 0) {
st=st.substr(st.indexOf('?')+1,st.length-st.indexOf('?')-1);
self.Hauptframe.location.href = st;
}
// if (self.location.hash != '') {
// var Path = self.Hauptframe.location.href.substring(0, self.Hauptframe.location.href.lastIndexOf('/'));
// var SubPage = self.location.hash.substring(1, self.location.hash.length);
// self.Hauptframe.location.href = Path + "/" + SubPage;
// }
}
//-->
</SCRIPT>
**********************************
And this is the code on every page:
<script language="JavaScript">
<!--
var thispagename = self.location.href.substring(self.location.href.lastIndexOf('/')+1,self.location.href.length);
if(!parent.Hauptframe)
{
window.location.href="index.htm?"+thispagename;
}
//-->
</script>
Thanks a lot for the help
Bye
Carlo
Where must i input the "replace" function?
Because when the framechecker will work, the the visitor cannot return to the original page.
This is the code in the frameset:
<SCRIPT language="JavaScript">
<!--
function GS_frameinit() {
var st = window.location.href;
var mypos = st.indexOf("?"
if (mypos > 0) {
st=st.substr(st.indexOf('?')+1,st.length-st.indexOf('?')-1);
self.Hauptframe.location.href = st;
}
// if (self.location.hash != '') {
// var Path = self.Hauptframe.location.href.substring(0, self.Hauptframe.location.href.lastIndexOf('/'));
// var SubPage = self.location.hash.substring(1, self.location.hash.length);
// self.Hauptframe.location.href = Path + "/" + SubPage;
// }
}
//-->
</SCRIPT>
**********************************
And this is the code on every page:
<script language="JavaScript">
<!--
var thispagename = self.location.href.substring(self.location.href.lastIndexOf('/')+1,self.location.href.length);
if(!parent.Hauptframe)
{
window.location.href="index.htm?"+thispagename;
}
//-->
</script>
Thanks a lot for the help
Bye
Carlo