웹마스터 팁

머에 쓰는지는 모르겠씁니다.
암튼 보기 드문거네요
미리보기 : http://xscool.cafe24.com/bbs/zboard.php?id=story2&page=1&sn1=&divpage=1&category=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=21

<html>
<head>
<title>HTML-JS 생성기</title>
<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, "nn");
  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">▒ HTML-JS 생성기</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>
제목 글쓴이 날짜
ls 명령어 팁... [3] -zenple_nux 2003.01.26
[mysql]정말 간단한 사용자 계정 주기 [1] 화니 2003.02.04
[간단한팁]아파치에서 ASP사용하기 [5] 한희진 2003.02.04
[성공했음]Apache에서 ASP돌리기 (Apache::ASP이용) for Windows 초고속강좌 [9] 한희진 2003.02.05
[JSP설치1탄]Windows에서 APM+Tomcat4.1.x버전 연동하기 (for Windows2000,XP) 한희진 2003.02.06
[JSP설치2탄]mod_jk를 이용한 Apache와 Tomcat의 연동[for Windows98/NT/2000] [1] 한희진 2003.02.06
새로운 방식의 APM 컴파일법 [13] Dopesoul 2003.02.07
MySQL 3.23.53a 이하 패치하세요!! [7] 바른생활 NGEO 2003.02.11
레드햇 8.0 에 젠드옵티마이져(Zend optimizer) 2.1.0 설치-왕초보용 [7] 정인배 2003.02.13
램디스크 활용 [6] Dopesoul 2003.02.14
리눅스에서 표준출력으로 출력되는 모든 메시지를 파일로 만들기 [1] Dopesoul 2003.02.19
잘못풀린 Tar 파일이나 기타 패키지파일 지우기 Dopesoul 2003.02.19
php-accelerator <- zend보다 빠른 phpcache [6] 푸른하늘 2003.02.20
아파치에서 펄 CGI를 쓰려면... [3] okw1003 2003.02.23
phpMyAdmin 보안설정하기 [5] 겨울늑대 2003.02.27
qmail-1.03설치① (ucspi-tcp모듈) 비츠로 2003.02.28
qmail-1.03설치② (checkpassword 인증모듈) 비츠로 2003.02.28
qmail-1.03설치③ (qmail설치) 비츠로 2003.02.28
qmail-1.03설치④ (vpopmail 인증모듈) 비츠로 2003.02.28
qmail-1.03설치④ (vpopmail+mysql) 비츠로 2003.02.28