Hi all...
I got this script where I have to declare a string thats as wide as a whole
webpage. The problem is that it takes several lines to finish the whole
string and, when I try to load it, I get an error saying that there was a
caracter expected at the end of the line... Does anybody know how can I make
notice that my variable is several lines wide?
<html>
<head>
<title>Dovip 845 Navigator</title>
<meta http-equiv=\"Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="50">
<script type="text/javascript">
function contrasenya()
{
var elhtm="<table width=\"90%\" align=\"center\ " cellpadding=\"0 \"
cellspacing=\"0 \"><tr><td width=\"27%\">< strong><font size=\"5\"
face=\"Courier New, Courier, mono\" color=\"#009900 \">Safe</font><font
size=\"5\" face=\"Courier New, Courier, mono\"
color=\"#CC0033 \">Line,S.L. </font></strong></td><td
width=\"7%\">&n bsp;</td><td width=\"56%\">< strong><font color=\"#009966 \"
face=\"Courier New, Courier, mono\">Estado del equipo :</font><font
color=\"#CC0000 \">¿%$P ¿%$Q \"><font
color=\"#00FF00 \"> ¿%$p </font></td><td bgcolor=\"#0000 00\"><font
color=\"#CCCCCC \">0.3mS - 5mS</font></td><td bgcolor=\"#0000 00\"><font
color=\"#00FF00 \"> ¿%$x ¿%$q </font></td></tr></table>\";
var a=prompt("escri be la contraseña");
if (a=="safeline") endavant(elhtm) ;
else barrera();
}
function endavant(elhtm)
{
document.getEle mentById("write Area").innerHTM L=elhtm
function barrera()
{
document.getEle mentById("write Area").innerHTM L="Contraseña incorrecta!!!!
Refresca la pagina y escribe la contraseña correcta."; }
</script>
</head>
<body onLoad="contras enya()" bgcolor="#FF990 0" text="#000000"n k="#0000CC">
<div id="writeArea"> </div>
</body>
</html>
/* if reduced elhtm so it's not so big, but you'd have to see it as a var
that gets to the end of the line and keeps on, thus making my browser as for
the end of the var (";" at the end of the line, instead of keeping on
reading....
Any idea?
Yodai */
I got this script where I have to declare a string thats as wide as a whole
webpage. The problem is that it takes several lines to finish the whole
string and, when I try to load it, I get an error saying that there was a
caracter expected at the end of the line... Does anybody know how can I make
notice that my variable is several lines wide?
<html>
<head>
<title>Dovip 845 Navigator</title>
<meta http-equiv=\"Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="50">
<script type="text/javascript">
function contrasenya()
{
var elhtm="<table width=\"90%\" align=\"center\ " cellpadding=\"0 \"
cellspacing=\"0 \"><tr><td width=\"27%\">< strong><font size=\"5\"
face=\"Courier New, Courier, mono\" color=\"#009900 \">Safe</font><font
size=\"5\" face=\"Courier New, Courier, mono\"
color=\"#CC0033 \">Line,S.L. </font></strong></td><td
width=\"7%\">&n bsp;</td><td width=\"56%\">< strong><font color=\"#009966 \"
face=\"Courier New, Courier, mono\">Estado del equipo :</font><font
color=\"#CC0000 \">¿%$P ¿%$Q \"><font
color=\"#00FF00 \"> ¿%$p </font></td><td bgcolor=\"#0000 00\"><font
color=\"#CCCCCC \">0.3mS - 5mS</font></td><td bgcolor=\"#0000 00\"><font
color=\"#00FF00 \"> ¿%$x ¿%$q </font></td></tr></table>\";
var a=prompt("escri be la contraseña");
if (a=="safeline") endavant(elhtm) ;
else barrera();
}
function endavant(elhtm)
{
document.getEle mentById("write Area").innerHTM L=elhtm
function barrera()
{
document.getEle mentById("write Area").innerHTM L="Contraseña incorrecta!!!!
Refresca la pagina y escribe la contraseña correcta."; }
</script>
</head>
<body onLoad="contras enya()" bgcolor="#FF990 0" text="#000000"n k="#0000CC">
<div id="writeArea"> </div>
</body>
</html>
/* if reduced elhtm so it's not so big, but you'd have to see it as a var
that gets to the end of the line and keeps on, thus making my browser as for
the end of the var (";" at the end of the line, instead of keeping on
reading....
Any idea?
Yodai */
Comment