FILE HTML
codice:
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Tryit Editor v1.5</title>
<link rel="stylesheet" type="text/css" href="tryit.css" />
<script type="text/javascript">
function displayad()
{
var t=document.getElementById("pre_code").value;
t=t.replace(/=/gi,"w3equalsign")
t=t.replace(/script/gi,"w3scripttag")
t=escape(t);document.getElementById("bt").value="1";
document.getElementById("code").value=t;
//document.getElementById("adframe").src="/tryitbanner.asp?secid=tryhtml&rnd=" + Math.random();
document.getElementById("tryitform").action="tryit_view.asp?x=" + Math.random();
}
</script>
</head>
<body>
<table border="0" class="maintable" cellpadding="3px" cellspacing="3px">
<tr>
<td width="50%">
<form style="margin:0px" action="tryit_view.asp" method="post" target="view" id="tryitform">
<input style="margin-bottom:5px;font-family:verdana;" name="submit" type="submit" value="Edit and Click Me >>" onclick="displayad()">
<textarea class="code_input" width="100%" height="400px" id="pre_code" wrap="logical">
<html>
<body>
This text is bold</p>
This text is strong</p>
<big>This text is big</big></p>
This text is emphasized</p>
This text is italic</p>
This text is small</p>
This is<sub> subscript</sub> and <sup>superscript</sup></p>
</body>
</html>
</textarea>
<input type="hidden" name="code" id="code" />
<input type="hidden" id="bt" name="bt" />
</form>
</td>
<td valign="top">
<p class="result_header">Your Result:</p>
<iframe class="result_output" width="100%" height="400px" frameborder="0" name="view" src="tryit_view.asp?filename=tryhtml_formattingch"></iframe>
</td>
</tr>
</table>
</body>
</html>
FILE CSS
codice:
body
{
color:#000000;
background-color:#ffffff;
margin:4px;
margin-top:0px;
}
.maintable
{
width:100%;
background-color:#e5eecc;
color:#000000;
border:solid #c3c3c3 1px;
margin-left:0px;
}
.code_input, .result_output
{
border:1px solid #c3c3c3;
width:100%;
height:400px;
background-color:#ffffff;
color:#000000;
}
.toptext
{
color:#617f10;
font-family:verdana;
margin-top:0px;
margin-bottom:8px;
font-size:120%;
}
.result_header
{
color:#617f10;
margin-bottom:12px;
margin-top:0px;
font-family:verdana;
font-size:90%;
}
.bottomtext_div
{
margin-right:3px;
}
.bottomtext
{
color:#617f10;
font-family:verdana;
margin-bottom:0px;
margin-top:6px;
font-size:90%;
}
FILE ASP
codice:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Documento senza titolo</title>
</head>
<body>
<%
dim tryit_view
fname=Request.Form("tryit_view")
If tryit_view<>"" Then
Response.Write("Hello " & tryit_view & "!
")
Response.Write("How are you today?")
End If
%>
</body>
</html>
Va bene cosi?