フラッシュ
コード
void(setInterval((function(r){return function(){ document.body.style.backgroundColor='#'+r()+r()+r() }})(function(){ return Math.round(Math.random())?'ff':'00' }),10))
解説
document.body.style.backgroundColorを使いました。
色の強いものがランダムで出ることになります。
Math.round(Math.random())は0か1をランダムで返します。
余談
かつて多くの子供たちを苦しめた、例の必殺技みたいなものです。
1行スクリプト ホーム