-
แสดง IP สำหรับผู้เข้าชมเว็บ
นำ Code ด้านล่างไปติดระหว่าง <head></head> นะครับ
<SCRIPT LANGUAGE=”JavaScript”><!– This script and many more are available free online at –>
<!– The JavaScript Source!! http://javascript.internet.com –><!– Begin
// http://www.kdcgrohl.com// Depending on your server set-up,
// you may need to use the “.shtml”
// extension
// or “htm”> as the script uses Server
// Side Includes. To display in the
// title bar, exclude the
//”<title></title>” code from the page.// This part gets the IP
var ip = ‘<!–#echo var=”REMOTE_ADDR”–>’;// This part is for an alert box
alert(“Your IP address is “+ip);// This part is for the status bar
window.defaultStatus = “Your IP address is “+ip;// This part is for the title bar
document.write(“<title>Your IP address is “+ip+”</title>”);
// End –>
</script>ส่วนจะนำไปประยุกต์ใช้กับอย่างอื่นก็ลองดูนะคับ
ใส่ความเห็น
Related Posts
Recent Posts
- การทำให้ Google รู้จักเว็บเรา
- มาสร้าง Snow Effect ให้เก็บกันดีกว่า
- แสดง IP สำหรับผู้เข้าชมเว็บ
- ทำรูป MouseOver แบบใช้รูปเดียว
- แสดงวันเวลา Realtime บน Titlebar
- ป้องกันการคลิกขวา
- คลิกแล้ว Bookmark
- เทคนิคสุดหรู Rotation ข้อความที่ Titlebar/Statusbar อัตโนมัติ
- เทคนิคสุดหรู Rotation ข้อความที่ Statusbar อัตโนมัติ
- เทคนิคสุดหรู Rotation ข้อความที่ Titlebar อัตโนมัติ