Einzelnen Beitrag anzeigen
Alt 24.07.2003, 12:11   #8
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

Probier mal folgendes:
Code:
---- Script 1 ----- 
...
<SCRIPT LANGUAGE = \"JavaScript\"> 
var breit = screen.availWidth; 
var weiter = (breit - 380)/$dimeins; 
"; 


echo "document.write(\"self.location.href=\"
(das musst du glaub ich doppelt maskieren)
192.168.10.11/functions/showLayers2?
lang=$lang&sel=$sel&next=\"(auch dopelt maskieren)+weiter\");"; 

echo " 
</SCRIPT>"; 
?>
Ich glaube, Php "weis" einfach nicht, das du die JS Variable meinst und schreibt einfach den Text "weiter" hin.
Vielleicht gehts auch, wenn man einfache Anführungszeichen verwendet, also:
echo "document.write('self.location.href=\"192.168.10.1 1/functions/showLayers2?lang=$lang&sel=$sel&next='+weiter\");" ;


Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
jak ist offline   Mit Zitat antworten