Forum Moderators: open
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title></title>
<style type="text/css">
body {
background-color:#f0f0f0;
}
#tra {
width:400px;
height:200px;
}
.basics {
padding:20px;
border:3px double #999;
margin-top:20px;
background-color:#fff;
}
</style>
<script type="text/javascript">
var obj;
function init(){
var df=document.forms[0];
obj=document.getElementById('display');
df[0].onkeyup=function() {
showStuff(this.value);
}
df[0].onblur=function() {
showStuff(this.value);
}
df[1].onclick=function() {
obj.className='';
obj.innerHTML='';
}
}
function showStuff(v){
v.length==0?obj.className='':obj.className='basics';
obj.innerHTML=v;
}
window.addEventListener?
window.addEventListener('load',init,false):
window.attachEvent('onload',init);
</script>
</head>
<body>
<form action="#">
<div>
<textarea id="tra" cols="0" rows="0"></textarea>
<input type="reset" value="clear">
</div>
</form>
<div id="display"></div>
</body>
</html>
<div id="wpdc_embed_12830726823" style="display: none">Time & Date Widget</div><head></head><script src="http://www.widgipedia.com/embed/martinkorner/Time--Date-Widget_776w-12830726823t-1283072682143i-8192p.js"></script> <script type="text/javascript">
var X = " HTML or JavaScript "
window.onload=function()
{
document.getElementById("result").innerHTML = document.getElementById("input").value;
}
</script>
<textarea id="input" cols="35" rows="7"> X </textarea>
<div id="result"></div>
<html>
<head>
</head>
<body>
<textarea id="foo">
<script>
alert('foo');
</script>
</textarea>
<div id="result"></div>
<script>
window.onload = function () {
var foo = document.getElementById('foo'),
result = document.getElementById('result'),
i;
result.innerHTML = foo.value;
var scripts = result.getElementsByTagName("script");
for (i = 0; i < scripts.length; i++) {
eval(scripts[i].innerHTML || scripts[i].text);
}
};
</script>
</body>
</html>
<div id="wpdc_embed_12830726823" style="display: none">Time & Date Widget</div><head></head><script src="http://www.widgipedia.com/embed/martinkorner/Time--Date-Widget_776w-12830726823t-1283072682143i-8192p.js"></script>