ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


HTML - > ÀÚ¹Ù½ºÅ©¸³Æ® Javascript º¯È¯±â
12³â Àü
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<style type="text/css">
th,td { font-family: µ¸¿ò; font-size: 9pt; }
textarea { font-family: Fixedsys; }
</style>
<script language="javascript">
function generateSource(form) {
  var strContent = form.HTML.value;
  strContent = strContent.replace(/\\/g, "\\\\");
  strContent = strContent.replace(/\"/g, "\\\"");
  strContent = strContent.replace(/(\r{0,1})\n/g, "\\n\\\n");
  strContent = strContent.replace(/<\/script>/gi, "<\/\",\"script>");
  var strResult = "<script language=javascript>\ndocument.write(\"\\\n" + strContent + "\");\n</" + "script>";
  form.JSSRC.value = strResult;
  return false;
}
function showResult(form, src) {
  var wopt = "menubar=yes,toolbar=yes,location=yes,scrollbars=yes,status=yes,resizable=yes";
  switch (true) {
    case form.size[1].checked: wopt += ",width=640,height=480"; break;
    case form.size[2].checked: wopt += ",width=800,height=600"; break;
    case form.size[3].checked: wopt += ",width=1024,height=768"; break;
  }
  winResult = window.open("about:blank","",wopt);
  winResult.document.open("text/html", "replace");
  switch (src) {
    case "html": winResult.document.write(form.HTML.value); break;
    case "js": winResult.document.write(form.JSSRC.value); break;
  }
  winResult.document.close();
  return false;
}
</script>
</head>
<body style="margin:0px" onLoad="document.mainform.HTML.focus();">

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="4" bgColor="lightgrey">
  <form name="mainform" onSubmit="return generateSource(this)">
  <tr height="20">
        <th align="left" colspan="2">
            <p align="center"> <a href="http://xtx.kr" target="_blank"><font color="blue">
                        HTML-Javascript º¯È¯±â</font></a></p>
</th>
  </tr>
  <tr height="10">
    <th width="50%">´ë»ó HTML ¼Ò½ºÄÚµå</th>
    <th width="50%">HTML Ãâ·Â¿ë JS ¼Ò½ºÄÚµå</th>
  </tr>
  <tr>
    <td width="50%"><textarea name="HTML" style="width:100%;height:100%"></textarea></td>
    <td width="50%"><textarea name="JSSRC" readonly style="width:100%;height:100%"></textarea></td>
  </tr>
  <tr height="20">
    <td colspan="2">
      <input type="submit" value="JS ¼Ò½ºÄÚµå »ý¼º" onClick="this.form.HTML.focus()">
      <input type="button" value="HTML ¹Ì¸®º¸±â" onClick="showResult(this.form,'html');this.blur()">
      <input type="button" value="JS ½ÇÇà°á°ú" onClick="showResult(this.form,'js');this.blur()">
      °á°úâ Å©±â:
      <input type="radio" name="size" checked>±âº»
      <input type="radio" name="size">640x480
      <input type="radio" name="size">800x600
      <input type="radio" name="size">1024x768

    </td>
  </tr>
  </form>
</table>

</body>
</html>
ÃßõÃßõ : 764 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
305
pre °¨½Î´Â ³»¿ë ÀÚµ¿ ÁÙ¹Ù²Þ ½ÃÅ°±â
304
jquery ½ºÅ©·Ñ ÆäÀÌ¡, jquery infinite scroll
303
Á¦ÀÌÄõ¸®(JQuery), CSS3, HTML5 È¿°ú Æ©Å丮¾ó ¸ðÀ½
302
»õ·Î°íħ ÇØ¾ß ÆäÀÌÁö³»¿ëÀÌ Á¦´ë·Î º¸ÀÌ´Â Çö»ó ÇØ°á¹ý
301
HTML ű×Ç¥ ÃÑÁ¤¸®
300
Ç÷¡½¬ ¾×¼Ç fscommand ¸í·ÉÀÇ Á¾·ù
299
RSS ¸®´õ±â
298
Å䷻Ʈ°Ë»ö±â
297
ÅؽºÆ® ¾ÏȣȭÇϱâ
296
ÀÚµ¿À¸·Î ¹Ì¸®º¸±â °¡´ÉÇÑ Å±׿¬½ÀÀå
295
ÅÂ±× ½ºÅ©¸³Æ® ¾ÏȣȭÇϱâ
294
ÅÂ±× ½ºÅ©¸³Æ® ¾Ïȣȭ 2
293
½ºÆÔ¸·±â À̸ÞÀÏ ¸µÅ© ¼Ò½º »ý¼º±â
292
¸¶ÄûÅÂ±× marquee »ý¼º±â
291
Æ˾÷ »õâ¼Ò½º »ý¼º±â
290
Æ˾÷ »õâ¼Ò½º ¸¶¹ý»ç
289
Æû(ÀԷ¹ڽº ¹öÆ° µî) »ý¼º ¸¶¹ý»ç
HTML -> ÀÚ¹Ù½ºÅ©¸³Æ® Javascript º¯È¯±â
287
byte,kbyte,Mbyte,Gbyte ¹ÙÀÌÆ® º¯È¯
286
Çü½ÄÀÌ ´Ù¸¥ ¿¢¼¿ ÆÄÀÏ DB¿¡ ¿Ã¸®±â
285
google api ¸¦ ÀÌ¿ëÇÑ ÂªÀº url ¸¸µé±â - curl »ç¿ë
284
[jquery] À̹ÌÁö tag onerror ó¸®
283
css ¼Ó¼ºµé:ÁÙ°£°Ý, ÀÚ°£, ´Ü¾î °£°Ý
282
È®ÀÎ, Ãë¼Ò ¹öÆ° µÎ °³ ³ª¿À´Â alert â ¸¸µé±â
281
Á¢±Ù¼ºÀ» ÇØÄ¡Áö ¾Ê´Â ÀÚ¹Ù½ºÅ©¸³Æ®ÀÇ »ç¿ë
280
ºê¶ó¿ìÀúº° CSS Hack Á¤¸®
279
ÀͽºÇ÷η¯ ¹öÀüº° CSS Àû¿ë¹æ¹ý
278
JQuery¶õ °ú¿¬ ¹«¾ùÀΰ¡?
277
jQueryÀÇ ±âº»ÀÌ µÇ´Â jQuery/Core¿¡ ´ëÇØ ¾Ë¾Æº¸ÀÚ!!
276
À¥Ç¥ÁØ W3C : ÀÚµ¿¿Ï¼º ±â´É ²ô±â autocomplete off
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.