랜덤 이미지 스크립트
<Script Language ="JavaScript">
<!--
function RandomNumber() {
var today = new Date();
var num= Math.abs(Math.sin(today.getTime()/1000));
return num;
}
function RandomGraphics() {
var x = RandomNumber();
if (x > .77)
{document.write ("<img src='이미지화일1.gif' align=center hspace=10>"); return; }
if (x > .33)
{document.write ("<img src='이미지화일2.gif' align=center hspace=10>"); return; }
if (x > .0)
{document.write ("<img src='이미지화일3.gif' align=center hspace=10>"); return; }
}
RandomGraphics();
-->
</SCRIPT>
<!--
function RandomNumber() {
var today = new Date();
var num= Math.abs(Math.sin(today.getTime()/1000));
return num;
}
function RandomGraphics() {
var x = RandomNumber();
if (x > .77)
{document.write ("<img src='이미지화일1.gif' align=center hspace=10>"); return; }
if (x > .33)
{document.write ("<img src='이미지화일2.gif' align=center hspace=10>"); return; }
if (x > .0)
{document.write ("<img src='이미지화일3.gif' align=center hspace=10>"); return; }
}
RandomGraphics();
-->
</SCRIPT>