<div id="ads">
<script type="text/javascript">
var rNumber = randInt(5); // generate a random interger from 1 to 5
var rAd = adDescription(rNumber); //description of the random ad
var rlink = adLink(rNumber); //URL of the random ad
document.write("<a href="rLink">");
document.write("<img scr="ad + rNumber + .jpg" alt="rAd"/>");
document.write("<a/>");
</script>
</div>
I am doing my homework for my class and i followed the instruction to the letter.
The script is supposed to randomly generate 1 out of 5 different images and post them to the web page. Honestly im very stumped as nothing is happening at all.
Any suggestions? or obvious mistakes in the code?