Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
ดู: 4038|ตอบกลับ: 5

แจกScriptเทสโค้ตครับ

[คัดลอกลิงก์]
ice75621 โพสต์ 2010-2-5 21:57:43 |โหมดอ่าน
แจกฟรีครับ
  1. <html>

  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=windows-874">
  4. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  5. <meta name="ProgId" content="FrontPage.Editor.Document">
  6. <title>ทดสอบ CODE HTML ที่คุณได้สร้างขึ้นมา</title>
  7. </head>

  8. <body background="../bg/bg.jpg" topmargin="0" leftmargin="0">

  9. <div align="left">
  10.   <table border="2" width="778" height="209" bordercolor="#0000FF" cellspacing="0" cellpadding="0">
  11.     <tr>
  12.       <td background="../bg/wood.jpg" width="780" height="27">
  13.         <p align="center"><b>
  14.         <font face="MS Sans Serif" size="5" color="#FF0000">ทดสอบ CODE HTML
  15.         ที่คุณได้สร้างขึ้นมา</font></b></td>
  16.     </tr>
  17.     <tr>
  18.       <td width="780" height="178" valign="top">
  19.       <p align="center"><br><font face="MS Sans Serif" size="1" color="#000080">
  20.       ในหน้านี้คุณสามารถทดสอบ CODE HTML
  21.       ที่คุณได้สร้างขึ้นมาได้ว่าจะมีผลอย่างไรเมื่อแสดงผ่านหน้า BROWSER
  22.       ครับ ส่วนวิธีการก็คือ ให้ใส่ <br>
  23.       CODE HTML ลงไปในช่องใหญ่ๆด้านล่างครับ
  24.       เสร็จแล้วก็กดที่ปุ่ม &quot;</font><font face="MS Sans Serif" size="1" color="#FF0000">ทำการทดสอบ
  25.       </font><font face="MS Sans Serif" size="1" color="#FF0000">CODE
  26.       HTML</font><font face="MS Sans Serif" size="1" color="#000080">&quot;
  27.       ครับ</font></p>
  28. <SCRIPT language=Javascript>

  29. <!--

  30. var body=0;

  31. linkvar = 0;

  32. function colors() {

  33. body=1;

  34. document.Form1.none.value=document.Form1.none.value + '<Body BGcolor=' +



  35. document.Form1.Bgcolor.options[document.Form1.Bgcolor.selectedIndex].value + '\rTEXT=' +



  36. document.Form1.text.options[document.Form1.text.selectedIndex].value + '\rVlink=' +



  37. document.Form1.vlink.options[document.Form1.vlink.selectedIndex].value + '\rAlink=' +



  38. document.Form1.alink.options[document.Form1.alink.selectedIndex].value + '\rLink=' +



  39. document.Form1.links.options[document.Form1.links.selectedIndex].value + '>'

  40. }

  41. function Background(hexNumber)



  42. {



  43.         document.bgColor=hexNumber





  44. }





  45. function list(type) {

  46. num = prompt('How many list items', "");

  47. if (num != "" || null) {document.Form1.none.value=document.Form1.none.value + '<' + type+ '>\r'}

  48. for (i = 0; i < num; i++){

  49. item=prompt('please type an item',"");

  50. if (item != "" || null) {

  51. document.Form1.none.value=document.Form1.none.value + '<LI>' + item + '\r'}

  52. }

  53. document.Form1.none.value=document.Form1.none.value + '</' + type + '>\r'

  54. }





  55. function prompt2(String , msg, tags, tags2) {

  56. String=prompt(msg, "");

  57. if (String != "" || null) {document.Form1.none.value=document.Form1.none.value + tags + String + tags2 + '\r'

  58. }

  59. }

  60. function prompt3(String , msg, tags, tags2) {

  61. String=prompt(msg, "");

  62. if (String != "" || null) {document.Form1.none.value=document.Form1.none.value + tags + '"' + String + '"' + tags2 + '\r'

  63. }

  64. }

  65. function addlink() {

  66. var L=prompt('Type the complete address of the link',"");

  67. var N=prompt('type the name of the link as you want it to be shown on the page',"");

  68. if (L || N != "" || null) {document.Form1.none.value=document.Form1.none.value + '<A HREF="' + L + '">' + N + '</A>' + '\r'

  69. }

  70. }



  71. function end() {

  72. if (body == 0) { addtag('</HTML>') }

  73. else { addtag('</BODY></HTML>') }

  74. }

  75. function writ() {

  76. f = window.open();

  77. f.document.write(document.Form1.none.value);

  78. f.document.close();

  79. }

  80. function addtag(tag) {

  81. document.Form1.none.value=document.Form1.none.value + tag + '\r'

  82. }

  83. function hr() {

  84. var size=prompt('what size HR',"");

  85. if (size != "" || null) {document.Form1.none.value=document.Form1.none.value + '<HR size=' + size + '>\r'

  86. }

  87. }



  88. function addform() {

  89. if (confirm("Do you want to give this form an action and a method?")) {

  90. var action = prompt('what action', "");

  91. var method = prompt('What Method' , "");

  92. document.Form1.none.value = document.Form1.none.value + "<Form action=" + action + "\nMethod=" + method + ">"}

  93. else { document.Form1.none.value = document.Form1.none.value + "<form>" }

  94. }



  95. function addformbutt() {

  96. var buttname = prompt('Button Name' , "");

  97. var buttvalue = prompt('Buttons Label' , "");

  98. document.Form1.none.value = document.Form1.none.value + "<Input type=Button name=" + buttname +

  99. '\rValue="' + buttvalue + '">';

  100. }



  101. function addformtext() {

  102. if (confirm("Are you Sure")) {

  103. var textname = prompt("Text name" , "");

  104. document.Form1.none.value = document.Form1.none.value + '<Input type = Text name=' + textname + '\nvalue=""' + '>'

  105. }

  106. else { alert("stopping Text generation"); }

  107. }



  108. function addformtextarea() {

  109. if (confirm("Are you sure?")) {

  110. var textareaname = prompt("Textarea name" , "");

  111. var textcols = prompt("How many Text Columns?", "");

  112. var textrows = prompt("How many Text Rows?" , "");

  113. document.Form1.none.value = document.Form1.none.value + '<Textarea name=' + textareaname + '\nCOLS="' + textcols + '"' + '\nRows="' + textrows + '"' + '></Textarea>'

  114. }

  115. else { alert("Stopping Textarea") }

  116. }



  117. function addformselect() {

  118. if (confirm("Are you sure")) {

  119. var selectname = prompt('What is the name of the select?' , "");

  120. document.Form1.none.value = document.Form1.none.value + '<Select name=' + selectname + '>\n'

  121. var selectobjs = prompt('How many select box items?', "");

  122. for (s = 0; s < selectobjs; s++) {

  123. var selitems = prompt('Please type an item' , "");

  124. document.Form1.none.value = document.Form1.none.value + '<Option>' + selitems + '\n'

  125. }

  126. } else { alert("process stopped") }

  127. document.Form1.none.value = document.Form1.none.value + '</select>'

  128. }



  129. function addformcheck() {

  130. if (confirm("Are you sure")) {

  131. var checkname = prompt('Check Box Name' , "");

  132. document.Form1.none.value = document.Form1.none.value +

  133. '<INPUT TYPE=checkbox name=' + checkname + '>'

  134. }else { alert("Process stopped"); }

  135. }



  136. function addformradio() {

  137. if (confirm("Are you sure")) {

  138. var radioname = prompt('What is the name of your radio button??' , "");

  139. document.Form1.none.value = document.Form1.none.value + '<INPUT TYPE=radio name=' + radioname + '>'

  140. }

  141. }

  142. //-->

  143.       </SCRIPT>
  144. <center>
  145. <FORM name=Form1>
  146. <INPUT onclick=writ() type=button value='===> ทำการทดสอบ CODE HTML <===' name=none7 style="font-family: Microsoft Sans Serif; font-size: 10pt; color: #0000FF; background-color: #FFCC66; border-style: dotted; border-color: #FF0000">
  147. <INPUT type=reset value='===> ลบข้อความด้านล่างทั้งหมด <===' name=B1 style="font-family: Microsoft Sans Serif; font-size: 10pt; color: #0000FF; background-color: #FFCC66; border-style: dotted; border-color: #FF0000"><BR>
  148. <TEXTAREA name=none rows=20 cols=100 style="font-family: Microsoft Sans Serif; font-size: 10pt; color: #FF0000; background-color: #CCFF33; border-style: dashed; border-color: #0000FF"></TEXTAREA>
  149. </FORM>
  150. <p align="center">
  151.       
  152.       <br>
  153. &nbsp;</td>
  154.     </tr>
  155.   </table>
  156. </div><br>
  157. <center>
  158.         <script type="text/javascript"><!--
  159. google_ad_client = "pub-6089437339879696";
  160. /* PLAYGAME PAGE */
  161. google_language = 'en';
  162. google_ad_slot = "5150782600";
  163. google_ad_width = 468;
  164. google_ad_height = 60;
  165. //-->
  166.   

  167. </html>
คัดลอกไปที่คลิปบอร์ด
aaa.111 โพสต์ 2010-2-5 22:11:16
โดยภาพรวมแล้วก็ดีนะครับ สคิป ดีดีแบบนี้ แต่ว่า
ช่วยบอกรายละเอียดที่ชัดเจน เช่น อัปโหลดไว้ที่ใน ใส่ข้อมูลอะไร แก้อะไร และที่สำคัญภาพตัวอย่าง ครับ ขอบคุณครับ
yseed โพสต์ 2010-2-5 22:33:55
มันคืออะไรอ่ะครับ
affoman โพสต์ 2010-2-6 00:08:46
น่าจะกอบมาจากที่อื่นอ่ะครับ...................   ผมเคยเห้นอย๋

มันแบบ ว่า ไว้ สำหรับ เวลาเราเขียน code html ขึ้นมา  แล้วให้เราลองทดสบได้ตามนั่นครับ

วิธีก้นาจะ     สร้างไฟล์  testcode.htm  ไว้ที่  สกิน หรือ ต้นฉบับของสกิน    แล้ว

สร้างไฟล์  testcode.php ไว้ที่เดียวกับ index.php  ครับ

แล้วให้ ใส่ cod ให้ มันเรียกหาหน้า testcode.html  

ประมาณนี้อ่ะครับ
 เจ้าของ| ice75621 โพสต์ 2010-2-6 10:07:30
ถูกเลยครับคุน affoman
jaideejung007 โพสต์ 2010-2-11 11:45:43
oน่าจะส่งลิงค์เว็บมาเลยก็ดี
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-4-28 11:24

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้