Thaimisc.com : Today's tips
freepollHOMEFree Chat serverFree Guest BookFree Ecard ServerFree webboard
 
 
  Article
  Html It's Easy
ICQ Status
How2Use FTP
Protect Directory
More...
  Column
  Flash Learning
Perl Scripts
ToDay's Tip
It News
  Community
  Forum
Chatroom new
  etc.
  Guest Book
links
Contact Us
Advertising
FAQ
  MiscFree
  Free Guest Book new
Free Ecard Server new
Free webboard new
Free chat Server new
Free Perl Scripts
Perl Search
Webboard
Web Directory
Protect Directory
Multi Protect new



สมัครสมาชิก เพื่อรับข่าวสารทาง e-mail

 

Today's Tip

การทำ Auto Refresh ไปหน้าอื่นๆ

มีบางคนนั้นสงสัยและได้ถามผมมาน่ะครับว่า ใน Forum ของ thaimiscนั้นทำไมเวลา post ข้อความเรียบร้อยแล้วมันจะ auto refresh
ตัวเองกลับมาหน้ากระทู้ได้อัตโนมัติ ซึ่งในวันนี้ผมก็มาขอไขข้อสงสัยกันเลยละกันนะครับว่าวิธีการทำนั้น ทำอย่างไร หลักการในการทำนั้น
ง่ายมากเลยครับเพียงแค่คุณแทรก html เพียง Tag เดียวในหน้าที่คุณต้องการให้ ในส่วนของ <head>...</head> และการ auto refresh คุณก็สามารถทำได้แล้วครับ

 นำ Tag html นี้ไปแทรกในหน้าที่คุณต้องการให้ auto refresh
<meta http-equiv="refresh" content="1;URL=http://www.thaimisc.com">
หรือ หากต้องการให้ หน้าที่คุณเปิดอยู่ รีแฟช เองก็สามารถนำแทกนี้ไปใส่ได้ครับ
<meta http-equiv="refresh" content="1">
ส่วนที่คุณต้องแก้คือพวกตัวอักษรที่เป็นสี น้ำเงินครับ content = เวลาที่จะให้ refresh เช่นถ้ากำหนดเป็น 1 หมายความว่ามันจะ auto refresh ทุกๆ 1 วินาที url = คือส่วนที่เราจะทำหนดว่าให้ refresh ไปที่ url ไหน
แค่นี้ก็เสร็จเรียบร้อยแล้วครับ ลองเอาไปประยุกต์ใช้กันนะครับ อย่าลืมบอกต่อด้วยล่ะ

 

 

Copyright 1999 Thailand Miscellaneous. Allrights reserved. webmaster@thaimisc.com