Timo Ballin: NC 4.05 und window.location .. arghhhh

Beitrag lesen

Arghhhhh

Sorry aber bin genervt....
hab ne umleitung via JavaScript geschrieben die so aussieht :

str="/Drizzt/index.htm?url="+self.location; window.location=str;

das ist meine lieblings framegenerator version. sie funzt ohne replace und deswegen auch mit den 3.0lern:
sie erwarte jedoch das sie mit einer url angabe hinter dem fragezeichen aufgerufen wird. z.b. von einer index seite die javascript und plugins checkt.

<script language="JavaScript">
if ( window.location.href.lastIndexOf('?')  < 1 ) { alert("Stop");
                                                        window.location.href = "splash.html"; }
</script>
</head>
<script language="JavaScript">
document.writeln('<frameset rows="50,87%,50" border="0" framespacing="0" cols="*">');
document.writeln('<frame src="nav-oben.html" name="ganzoben" marginheight="0" marginweidth="0" scrolling="NO" frameborder="NO">');
document.writeln('<frame src="'+window.location.href.substring(window.location.href.lastIndexOf('?')+1,window.location.href.length)+'" name="oben" marginheight="0" marginweidth="0" frameborder="NO">');
document.writeln('<frame src="mcontroll.html" name="bottom" marginwidth="0" marginheight="0" scrolling="NO" frameborder="NO">');
document.writeln('<noframes>');
document.writeln('</noframes></frameset>');
</script>
<body bgcolor="#FFFFFF">
:
:(no java script)
:

die seite wird aufgerufen mit:
<script language="JavaScript">
// Mal kucke  sind wir top ?
if (self.location == top.location) {
window.location.href ="../mainframegenerator.html?"+window.location.pathname
}
// well this shold do the job
</script>

funkt prima . nun kann man auf alle unterseiten bookmarks setzen und das framset baut sich wieder auf.