 |
|
|  |
html ¼Ò½º¸¦ ¾ÏÈ£ÈÇϱâ... |
|
|
 |
14³â Àü |
<html>
<head>
<title>¾ÏÈ£È</title>
</head>
<body onload="initStyleElements();">
<!--<BODY> ºÎºÐ¿¡ ¾Æ·¡ ½ºÅ©¸³Æ®¸¦ ºÙ¿© ³ÖÀ¸¼¼¿ä -->
<script language="JavaScript">
<!--
var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;
function initStyleElements()
{
var c = document.pad;
if (ie)
{
c.compileIt.style.backgroundColor="#C0C0C0";
c.compileIt.style.cursor="hand";
c.select.style.backgroundColor="#C0C0C0";
c.select.style.cursor="hand";
c.view.style.backgroundColor="#C0C0C0";
c.view.style.cursor="hand";
c.retur.style.backgroundColor="#C0C0C0";
c.retur.style.cursor="hand";
c.clear.style.backgroundColor="#C0C0C0";
c.clear.style.cursor="hand";
}
else return;
}
function LightOn(what)
{
if (ie) what.style.backgroundColor = '#F7f7f7';
else return;
}
function FocusOn(what)
{
if (ie) what.style.backgroundColor = '#EBEBEB';
else return;
}
function LightOut(what)
{
if (ie) what.style.backgroundColor = '#C0C0C0';
else return;
}
function FocusOff(what)
{
if (ie) what.style.backgroundColor = '#DDDDDD';
else return;
}
function generate()
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='¾ÏÈ£È ÁßÀÔ´Ï´Ù...±â´Ù·Á ÁÖ¼¼¿ä!';
setTimeout("compile()",1000);
}
else alert('¾ÏÈ£ÈÇÒ ³»¿ëÀ» ³Ö¾îÁÖ¼¼¿ä')
}
function compile()
{
document.pad.text.value='';
compilation=escape(code);
document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
if (i=1) alert("1ȸ ¾ÏÈ£È µÇ¾ú½À´Ï´Ù");
else alert("ÆäÀÌÁö°¡ "+i+" ȸ ¾ÏÈ£È µÇ¾ú½À´Ï´Ù");
}
function selectCode()
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('¼±ÅÃÇØ ÁÖ¼¼¿ä')
}
function preview()
{
if(document.pad.text.value.length>0)
{
pr=window.open("","¹Ì¸®º¸±â","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
pr.document.write(document.pad.text.value);
}
else alert('¹Ì¸®º¸±â ÇÒ°ÍÀÌ ¾ø³×¿ä.')
}
function uncompile()
{
if (document.pad.text.value.length>0)
{
source=unescape(document.pad.text.value);
document.pad.text.value=""+source+"";
}
else alert('¾ÏÈ£ÈµÈ Äڵ尡 ÇÊ¿ä ÇÕ´Ï´Ù')
}
//-->
</script>
<p> </p>
<p> </p>
<p> </p>
<table cellspacing="0" cellpadding="0" width="500" align="center" border="0">
<tbody>
<tr>
<td width="100%" height="297">
<form name="pad" method="post" align="center">
<p align="center"><textarea style="background-color:rgb(246,246,246); width:95%;" name="text" rows="16" cols="62">¾ÏÈ£È ½Ãų ¼Ò½º¸¦ ¿©±â¿¡ ³ÖÀ¸½Å´ÙÀ½¿¡ "¾ÏÈ£È"¸¦ ´©¸£½Ã¸é..
html¼Ò½º°¡ ¾ÏȣȰ¡ µË´Ï´Ù..^^</textarea><br>
<br><input onmouseover="LightOn(this)" onclick="generate()" onmouseout="LightOut(this)" type="button" value="¾ÏÈ£È" name="compileIt" style="font-family:±¼¸²; font-size:9pt;" onfocus="this.blur()">
<input onmouseover="LightOn(this)" onclick="selectCode()" onmouseout="LightOut(this)" type="button" value="Àüü¼±ÅÃ" name="select" style="font-size:9pt;" onfocus="this.blur()"> <input onmouseover="LightOn(this)" onclick="preview()" onmouseout="LightOut(this)" type="button" value="¹Ì¸®º¸±â" name="view" style="font-size:9pt;" onfocus="this.blur()">
<input onmouseover="LightOn(this)" onclick="uncompile()" onmouseout="LightOut(this)" type="button" value="¼Ò½ºº¹±Í" name="retur" style="font-size:9pt;" onfocus="this.blur()">
<input onmouseover="LightOn(this)" onmouseout="LightOut(this)" type="reset" value="»èÁ¦" name="clear" style="font-size:9pt;" onfocus="this.blur()"></form>
</td>
</tr>
</tbody>
</table>
</body>
</html>
| |
|
̵̧ : 368 |
̵̧
¸ñ·Ï
|
|
|  |
|