2011年01月02日

Яフーブロガーが愛用していたあれを再現しました

みなさん、あけましておめでとうございます。


あけおめ


ちょっとちょっと、何なんですか、これ、激しく動いているじゃないですか・・・。どうなっているのか知りたい????。いやだ、教えたくない・・・。


種明かし・・・


<center style="position:relative;font-size:80pt;line-height:150%" id="shock20110102a"><strong>あけおめ</strong></center>
<script type="text/JavaScript"><!--//
num20110102a = 1;//
function shock20110102amove() {//
num20110102a = (num20110102a + 1) % 8;//
if (num20110102a < 4) {//
document.getElementById('shock20110102a').style.top= (num20110102a * 20 - 40) + "px";//
} else {//
document.getElementById('shock20110102a').style.top= (120 - num20110102a * 20) + "px";//
}//
}//
tm20110102a = setInterval("shock20110102amove()",25);//
// --></script>

このソースコードをコピペしても動きますが何度も使い場合は関数の部分を微妙に変えないとエラーが起こります。ですが、あれを再現するのはムツカシィですねぇ~。





Posted by W少年 at 02:44│Comments(0)
※会員のみコメントを受け付けております、ログインが必要です。
上の画像に書かれている文字を入力して下さい
 
<ご注意>
書き込まれた内容は公開され、ブログの持ち主だけが削除できます。