Guten Morgen Daniel,
<html>
<head><title>TESTEN TESTEN TESTEN</title>
<script language="JavaScript" type="text/javascript">
function HoleHttpGetWert(NameDerVariablen)
{
var Wert ='';
if((httpget = decodeURI(self.location.search)) != '')
{
httpget = httpget.substr(1, httpget.length - 1).split('&');
for (i = 0; httpget[i]; i++)
{
httpget[i] = httpget[i].split('=');
if (httpget[i][0]==NameDerVariablen)
Wert=httpget[i][1].replace(/+/g," ");
}
}
return(Wert);
Habe mir erlaubt hier mal mit dem Besen durchzugehen.
}
function generate()
{
code = document.pad.text.value;
if(code.length>0)
{
document.pad.text.value='Compiling...Please wait!';
setTimeout("compile()",1000);
// Schwachsinn hoch Drei! Warum soll man 1 sec für nichts warten?
}
else alert('First enter something to compile and then press CompileIt');
}
function compile()
{
document.pad.text.value="<script type="text/javascript">\n<!--\ndocument.write(unescape(""+escape(code)+""));\n//-->\n</script>";
// i++;
// ist im Konflikt mit dem i in for() aus HoleHttpGetWert(),
// wird HoleHttpGetWert() zuerst aufgerufen, gibts ein Zählerproblem
counter++;
alert("Page compiled "+counter+" times!");
}
function selectCode()
{
(document.pad.text.value.length>0) ? document.pad.text.select() : alert('Nothing for be selected!');
}
function preview()
{
if(document.pad.text.value.length>0)
{
pr=window.open("","Preview","scrollbars=1,menubar=0,status=0,width=840,height=620,left=100,top=60");
pr.document.write(document.pad.text.value);
}
else alert('Nothing for be previewed!')
}
function uncompile()
{
(document.pad.text.value.length>0) ? document.pad.text.value=unescape(document.pad.text.value) : alert('You need compiled code to uncompile it!')
}
// -->
</script>
</head>
<body onLoad="document.pad.MyArea.value='test test test';">
<!-- Compilation Panel -->
<form method="post" name="pad" style="text-align:center;padding:30px">
<textarea ID="MyArea" rows="10" name="text" cols="50" style="background:#DEEFF7;width:500px;height:100px"></textarea>
</form>
<!-- HIER WIRD DER WERT IN DIE TEXTAREA GESCHRIEBEN -->
<form name="select" style="text-align:center">
<input type="button" style="cursor:pointer" value="Kopieren" name="select" onClick="selectCode();document.execCommand('Copy')">
<input type="button" style="cursor:pointer" value="Vorschau" name="B1" onClick="preview()";>
</form>
</body>
</html>
Nach dem etwas apokalyptisch anmutenden Stil des Quelltexts ist auch Deine Frage formuliert
Also wie gesagt wenn ich in der JS Textarea (MyArea) was mit " " sowie zum beispiel :
[code]
<font size="5">***********************************************
Dann setz ich diese damit ausser kraft ... :(
Was meinst Du damit? Ich konnte mit meinem Mozilla nichts feststellen!
Gruß aus Berlin!
eddi
wahsaga (http://forum.de.selfhtml.org/archiv/2004/9/90932/#m546295)
> vielleicht könnte man für heteros eine "strict"-DTD zu grunde legen [...oder...] eine darauf anwendbare CSS-eigenschaft 'sex'
In dem Sinne: Ein -Hoch- auf die Liebe zwischen Menschen! ;)