<? switch ($_GET["x"]) { case "menu1": $src_page = 'menu1.php'; break; case "menu2": $src_page = 'menu2.php'; break; default: $src_page = 'index.php'; } ?> <iframe name="thisisaframe1" id="iframe1" src="<?php echo $src_page; ?>"></iframe> <a href="?x=menu1">menu1</a> <a href="?x=menu2">menu2</a>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content="Unidentifier"> <meta name="Keywords" content=""> <meta name="Description" content=""> <script src="http://code.jquery.com/jquery-latest.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf8" /> </head> <body> <a href="main.php">หน้าแรก</a> | <a href="test1.php">หน้าทดสอบ 1</a> | <a href="test2.php">หน้าทดสอบ 2</a> <br /> <div id="pagecontainer"></div> <script> $("a").click(function(event){ event.preventDefault(); var url = $(this).attr("href"); $("div#pagecontainer").load(url); }); </script> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง