2010-09-20 48 views
1

這裏是我的倒計時我怎樣才能jQuery的倒計時重定向到一個復位文件

$('span.countdown').each(function() { 
     var endtime = $(this).html(); 
     $(this).countdown({ 
      until: endtime, 
      format: 'dhmS', 
      layout: '{d<}{dn} days {d>}{h<}{hn} hours {h>}{m<}{mn} mins {m>}{sn} secs', 
      expiryUrl: self.location.href 
     }); 
    }); 
} 

我想重定向到index.php當倒計時降爲零 :)

回答

0

嘗試將其更改爲expiryUrl: "something"

+0

我有沒有結果都嘗試,我atempting重定向到我的復位分貝的PHP文件在它重定向結束的index.php – dave 2010-09-20 17:56:19

+0

這裏是我當前的代碼.. – dave 2010-09-20 17:57:01

+0

$('跨度。 。倒計時')每個(函數(){ \t \t變種結束時間= $(本)的.html(); \t \t $(本).countdown({ \t \t \t直到:結束時間, \t \t \t格式: 'dhmS', \t \t \t layout:'{d <} {dn} days {d}} {h <} {hn} hours {h}} {m} {mn} mins {m>} {sn} secs', \t \t \t expiryUrl: 「http://www.elitepimps.info/something.php」 \t \t}); \t}); } – dave 2010-09-20 17:57:25

1
  expiryUrl: self.location.href 
    to 

      expiryUrl: window.location.href 

or 

      expiryUrl: "absolute url" //ie http://domain/index.php 
相關問題