พี่ๆ เขียนโค๊ด นับถอยหลัง แล้วรีเฟสหน้า ให้หน่อยสิครับ ง่ายๆ

เริ่มโดย Q(@3@)o, 13 สิงหาคม 2007, 05:53:30

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

Q(@3@)o

ผมไม่รู้เรื่อง PHP เลย ไม่รู้จะเสริชว่าไรด้วย ช่วยเขียนให้ทีสิครับ

รูปแบบง่ายๆอ่ะ คือ...

ให้มันโชว์เลข 10 9 8 7 6 5 4 3 2 1 0 !!!!

แล้วรีเฟสหน้ามันเอง

ใครพอเขียนให้ได้บ้างคร๊าบ?

ขอบคุณมากๆครับ


น้องบิ้ว

อ้างถึงจาก: Q(@3@)o ใน 13 สิงหาคม 2007, 05:53:30
ผมไม่รู้เรื่อง PHP เลย ไม่รู้จะเสริชว่าไรด้วย ช่วยเขียนให้ทีสิครับ

รูปแบบง่ายๆอ่ะ คือ...

ให้มันโชว์เลข 10 9 8 7 6 5 4 3 2 1 0 !!!!

แล้วรีเฟสหน้ามันเอง

ใครพอเขียนให้ได้บ้างคร๊าบ?

ขอบคุณมากๆครับ

โค๊ดอะไรหรอคับ มีแจกป่าวคับ อิอิ

SaMsOnIzE

อ้างถึง<script language="JavaScript">

// (วินาที)
var refreshinterval=10

// แสดงใน status bar? "yes" or "no":
var displaycountdown="yes"




var starttime
var nowtime
var reloadseconds=0
var secondssinceloaded=0

function starttime() {
   starttime=new Date()
   starttime=starttime.getTime()
    countdown()
}

function countdown() {
   nowtime= new Date()
   nowtime=nowtime.getTime()
   secondssinceloaded=(nowtime-starttime)/1000
   reloadseconds=Math.round(refreshinterval-secondssinceloaded)
   if (refreshinterval>=secondssinceloaded) {
        var timer=setTimeout("countdown()",1000)
      if (displaycountdown=="yes") {
         window.status="Page refreshing in "+reloadseconds+ " seconds"
      }
    }
    else {
        clearTimeout(timer)
      window.location.reload(true)
    }
}
window.onload=starttime
</script>

แค่นี้ไม่จำเป็นต้องถึง PHP  หรอกครับ Javascript นี่แหละพระเอกตัวจริง อิอิ โชคดีครับ


..

- Thanks เพื่อเป็นกำลังใจในการโพสนะครับ....

tanut

อ้างถึงจาก: SaMsOnIzE ใน 13 สิงหาคม 2007, 10:03:24
อ้างถึง<script language="JavaScript">

// (วินาที)
var refreshinterval=10

// แสดงใน status bar? "yes" or "no":
var displaycountdown="yes"




var starttime
var nowtime
var reloadseconds=0
var secondssinceloaded=0

function starttime() {
   starttime=new Date()
   starttime=starttime.getTime()
    countdown()
}

function countdown() {
   nowtime= new Date()
   nowtime=nowtime.getTime()
   secondssinceloaded=(nowtime-starttime)/1000
   reloadseconds=Math.round(refreshinterval-secondssinceloaded)
   if (refreshinterval>=secondssinceloaded) {
        var timer=setTimeout("countdown()",1000)
      if (displaycountdown=="yes") {
         window.status="Page refreshing in "+reloadseconds+ " seconds"
      }
    }
    else {
        clearTimeout(timer)
      window.location.reload(true)
    }
}
window.onload=starttime
</script>

แค่นี้ไม่จำเป็นต้องถึง PHP  หรอกครับ Javascript นี่แหละพระเอกตัวจริง อิอิ โชคดีครับ

ขอบคุณครับ ลองแล้วใช้ได้ดีครับ
ขอบคุณสำหรับทุก Thanks ครับ

[direct=http://astore.amazon.com/bakugan.battle.brawlers-20]bakugan battle brawlers[/direct]
[direct=http://astore.amazon.co.uk/fly.london.shoe-21]fly london shoe[/direct]
[direct=http://astore.amazon.fr/casio.montres.pour.tous-21]casio montres pour tous[/direct]
[direct=http://www.facebook.com/BennieAliceShop]baby shirt[/direct]
[direct=http://benniealice.lnwshop.com]kid shirt[/direct]