在標題列弄一堆閃閃星星

有點幼稚噢!
總而言之這是能夠讓標題列前後變出一堆閃星星的語法~
當然也可以自己修改成別的東西在動!
這個語法要放在<head>之中

   &lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--<br />
title_tmp1=document.title<br />
if (title_tmp1.indexOf(&quot;&gt;&gt;&quot;)!=-1){<br />
title_tmp2=title_tmp1.split(&quot;&gt;&gt;&quot;);<br />
title_last=&quot; —&gt; &quot;+title_tmp2[1];<br />
title_last=title_last + &quot; —&gt; &quot; + title_tmp2[2];<br />
}else{<br />
if (title_tmp1.indexOf(&quot;——&quot;)!=-1){<br />
title_tmp2=title_tmp1.split(&quot;——&quot;);<br />
title_last=&quot; —&gt; &quot;+title_tmp2[1];<br />
if (title_last==&quot; —&gt; &quot;){title_last=&quot; —&gt; &quot;};<br />
if (title_last==&quot; —&gt; &quot;){title_last=&quot; —&gt; &quot;};<br />
}<br />
}<br />
title_new=&quot;花水木&quot;<br />
step=0<br />
function flash_title()<br />
{<br />
step++<br />
if (step==9) {step=1}<br />
if (step==1) {document.title='★☆☆☆☆'+title_new+'☆☆☆☆★'}<br />
if (step==2) {document.title='☆★☆☆☆'+title_new+'☆☆☆★☆'}<br />
if (step==3) {document.title='☆☆★☆☆'+title_new+'☆☆★☆☆'}<br />
if (step==4) {document.title='☆☆☆★☆'+title_new+'☆★☆☆☆'}<br />
if (step==5) {document.title='☆☆☆☆★'+title_new+'★☆☆☆☆'}<br />
if (step==6) {document.title='☆☆☆★☆'+title_new+'☆★☆☆☆'}<br />
if (step==7) {document.title='☆☆★☆☆'+title_new+'☆☆★☆☆'}<br />
if (step==8) {document.title='☆★☆☆☆'+title_new+'☆☆☆★☆'}<br />
setTimeout(&quot;flash_title()&quot;,300);<br />
}<br />
flash_title()<br />
--&gt;<br />
&lt;/script&gt;


發表迴響

你的電子信箱絕對不會被公開。 必填的項目標記為 *

*
*