piterasek
Joined: 03 Mar 2004 Posts: 26
|
Posted: Wed Mar 03, 2004 4:42 am Post subject: random text or image |
|
|
put this in the head section:
<script language=javascript>
function wri(){
tek=new Array();
tek[0]="first text or image<img src=your_image.jpg>";
tek[1]="another text or image";
tek[2]="one more and as many other as needed";
document.write(tek[Math.floor(Math.random()*tek.length)]);
}
</script>
feel free to add other tek[next_number]
then you need to call the script by putting script below at the place you want the function to appear in the body section of your html
<script language=javascript>wri()</script>
have fun and feel free to see how it works at www.piterasek.com _________________ today will be yesterday tomorow |
|