欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

改變狀態(tài)欄文字的js代碼

 更新時間:2014年06月13日 09:29:17   投稿:whsnow  
這篇文章主要介紹了通過js如何改變狀態(tài)欄文字,需要的朋友可以了解下
復(fù)制代碼 代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<script language="javascript">
words1="歡迎光臨";
now=new Date()
words2=now.toLocaleString();
flag=0;
function flash()
{
if(flag==0)
{
window.status=words1;
flag=1;
}
else
{
window.status=words2;
flag=0;
}
setTimeout("flash()",2000);
}
</script>
</head>
<body onload="flash()">
網(wǎng)頁內(nèi)容
</body>
</html>

相關(guān)文章

最新評論