<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <br /> <form id="form1" name="form1" method="post" action=""> <input type="text" name="searchD" id="searchD" /> <select name="selectD" id="selectD"> <option value="1">List1</option> <option value="2">List2</option> <option value="3">List3</option> </select> <input type="submit" name="button" id="button" value="ค้นหา" /> </form> <br /> <table width="80%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><iframe id="f1" width="95%" height="500"></iframe></td> <td><iframe id="f2" width="95%" height="500"></iframe></td> </tr> </table> </body> </html>
document.form1.target = "f1"; document.form1.action = 'page1.php';
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <br /> <script language="javascript"> function CheckCondition(val){ if(document.form1.selectD.value =="1"){ document.form1.target = "f1"; document.form1.action = 'page1.php'; }else{ document.form1.target = "f2"; document.form1.action = 'page2.php'; } } </script> <form id="form1" name="form1" method="get" onSubmit="CheckCondition(this.value)"> <input type="text" name="searchD" id="searchD" /> <select name="selectD" id="selectD"> <option value="1">List1</option> <option value="2">List2</option> <option value="3">List3</option> </select> <input type="submit" name="button" id="button" value="ค้นหา" /> </form> <br /> <table width="80%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><iframe name="f1" id="f1" width="95%" height="500"></iframe></td> <td><iframe name="f2" id="f2" width="95%" height="500"></iframe></td> </tr> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง