View Full Version: html help

CheatSync.net Forums > Off-Topic > html help



Title: html help


chad1416 - February 12, 2008 05:58 PM (GMT)
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...

xFinch713x - March 1, 2008 04:10 AM (GMT)
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

Waterbottle - March 1, 2008 03:13 PM (GMT)
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).


xFinch713x - March 1, 2008 10:39 PM (GMT)
oh, didnt know there was a difference. i just put java as in javascript




Hosted for free by InvisionFree