檔案狀態:    住戶編號:1965841
 lady 的日記本
快速選單
到我的日記本
看他的最新日記
加入我的收藏
瀏覽我的收藏
季氏第十六 2-6 《前一篇 回她的日記本 後一篇》 不是我不小心
 切換閱讀模式  回應  給他日記貼紙   給他愛的鼓勵  檢舉
篇名: c
作者: lady 日期: 2010.10.24  天氣:  心情:




快瘋了 弄不出效果




</html > </body >

CalConv();

</body > </html > 變換背景圖的語法






















FONT{COLOR:字體顏色}





#sDiv0 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:Aqua;}
#sDiv1 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:red;}
#sDiv2 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:blue;}
#sDiv3 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:orange;}
#sDiv4 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:yellow;}
#sDiv5 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:lightgreen;}
#sDiv6 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:silver;}
*
*
*
*
*
*
*
 



cOlOuRs=new Array("abbbff","ffffee","ffff7a","dffffd","ffaaa0","ffddd0")
S_amount = 30;//number of small stars!!!!!
L_amount = 15;//number of larger stars!!!!
S_Ypos = new Array();
S_Xpos = new Array();
L_Ypos = new Array();
L_Xpos = new Array();
S_speed= new Array();
L_speed= new Array();
if (document.all)
{
for (i = 0; i < S_amount; i++)
{
S_Ypos[i] = Math.round(Math.random()*document.body.offsetHeight);
S_Xpos[i] = Math.round(Math.random()*document.body.offsetWidth);
}
for (i = 0; i < L_amount; i++)
{
L_Ypos[i] = Math.round(Math.random()*document.body.offsetHeight);
L_Xpos[i] = Math.round(Math.random()*document.body.offsetWidth);
}
document.write('');
document.write('');
for (i = 0; i < S_amount; i++)
{document.write('');}
for (i = 0; i < L_amount; i++)
{document.write('');}
document.write('');
document.write('');
for (i = 0; i < L_amount; i++)
{
for (j = 0; j < cOlOuRs.length; j++)
{var NewColour=Math.round(Math.random()*[j])}
document.all.ieS_star[i].style.background=cOlOuRs[NewColour];
document.all.ieL_star[i].style.background=cOlOuRs[NewColour];
}
for (i=0; i < ieS_star.length; i++){S_speed[i]=Math.random()*3+1}
for (i=0; i < ieL_star.length; i++){L_speed[i]=Math.random()*7+2}
function ES_go()
{
document.all.Outer.style.pixelTop=document.body.scrollTop;
for (i=0; i < ieS_star.length; i++)
{
ieS_star[i].style.pixelLeft-=S_speed[i];
if (ieS_star[i].style.pixelLeft < -10){ieS_star[i].style.pixelLeft=window.document.body.offsetWidth}
}
S_timer=setTimeout('ES_go()',30);
}
function EL_go()
{
for (i=0; i < ieL_star.length; i++)
{
ieL_star[i].style.pixelLeft-=L_speed[i];
if (ieL_star[i].style.pixelLeft < -10){ieL_star[i].style.pixelLeft=window.document.body.offsetWidth}
}
L_timer=setTimeout('EL_go()',10);
}
function IeStart()
{
ES_go();
EL_go();
}
IeStart()
}//End Explorer

else if (document.layers)
{
for (i = 0; i < S_amount; i++)
{
S_Ypos[i] = Math.round(Math.random()*window.innerHeight);
S_Xpos[i] = Math.round(Math.random()*window.innerWidth);
document.write("");
document.layers["S_star"+i].top = S_Ypos[i];
document.layers["S_star"+i].left = S_Xpos[i];
}
for (i = 0; i < L_amount; i++)
{
L_Ypos[i] = Math.round(Math.random()*window.innerHeight);
L_Xpos[i] = Math.round(Math.random()*window.innerWidth);
document.write("");
document.layers["L_star"+i].top = L_Ypos[i];
document.layers["L_star"+i].left = L_Xpos[i];
for (j = 0; j < cOlOuRs.length; j++)
{
var NewColour=Math.round(Math.random()*[j]);
}
document.layers['S_star'+i].bgColor=cOlOuRs[NewColour];
document.layers['L_star'+i].bgColor=cOlOuRs[NewColour];
}
for (i=0; i < S_amount; i++){S_speed[i]=Math.random()*3+1}
for (i=0; i < L_amount; i++){L_speed[i]=Math.random()*7+2}
function NS_go()
{
for (i=0; i < S_amount; i++)
{
var temp="S_star"+i;//50
document.layers[temp].top=S_Ypos[i]+window.pageYOffset;
document.layers['S_star'+i].left-=S_speed[i];
if (document.layers['S_star'+i].left < -10){document.layers['S_star'+i].left=window.innerWidth}
}
S_timer=setTimeout('NS_go()',30);
}
function NL_go()
{
for (i=0; i < L_amount; i++)
{
var temp="L_star"+i
document.layers[temp].top=L_Ypos[i]+window.pageYOffset;
document.layers['L_star'+i].left-=L_speed[i];
if (document.layers['L_star'+i].left < -10){document.layers['L_star'+i].left=window.innerWidth}
}
L_timer=setTimeout('NL_go()',10);
}
function NsStart()
{
NS_go();
NL_go();
}
NsStart();
}//End Netscape
window.onresize = new Function("window.location.reload()");
//-->





This is a testing page!



標籤:
瀏覽次數:153    人氣指數:1153    累積鼓勵:50
 切換閱讀模式  回應  給他日記貼紙   給他愛的鼓勵 檢舉
給本文愛的鼓勵:  最新愛的鼓勵
季氏第十六 2-6 《前一篇 回她的日記本 後一篇》 不是我不小心
 
住戶回應
 
時間:2010-10-26 09:49
他, 45歲,新北市,資訊
*給你留了一則留言*
  
 
時間:2010-10-25 19:24
他, 42歲,新北市,政府機關
*給你留了一則留言*
  
 
時間:2010-10-25 12:25
他, 45歲,新北市,資訊
*給你留了一則留言*
  
 
時間:2010-10-24 22:53
他, 42歲,新北市,政府機關
*給你留了一則留言*
  
 
時間:2010-10-24 21:54
他, 50歲,新北市,其他
*給你留了一則留言*
  


給我們一個讚!