ok i am making a
site for school
and where it says picture of otter here i want it to choose a random picture out of the pictures folder and display it. help?
i dont like html... i always use dreamweaver, but i dont have it at school... so im stuck with this...
you can use java in html pages. i forget the tags, but i know you can. i have before. but heres a site that tells you how in JAVA:
Here
| QUOTE (xFinch713x @ Mar 1 2008, 06:10 AM) |
| you can use java in html pages. i forget the tags, but i know you can. i have before. but heres a site that tells you how in JAVA: Here |
Firstly, that's javascript, not java, there's a big difference.
Secondly, to include javascript in your document you use;
| CODE |
<script language="JavaScript"> // Code goes inbetween these tags </script> |
You best bet would then be making a function there, and calling that function in the href part of your a tag (if you want a new random image when clicking on a link) or skip the function if you just want a random image on load (you could also use php for random on load image, if you have a server that supports it).
oh, didnt know there was a difference. i just put java as in javascript