I have built a simple one page web site in html with the help of a mate via numerous e-mails. The page is just text and photographs. My mate has suggested inserting javascript to make the photos appear in random order each time the page is opened, very clever I thought. He’s sent me three files for reference together with the actual code.
Although he has tried several times to explain it to me and I have made lots of attempts I cannot get the code to work.
The code just appears on the web page after I have saved it.
He said to insert this at the top of the page
<script language=”JavaScript” type=”text/javascript”
src=”js/BildPopUp.js”></script>
and to put this above the photographs
<a title=”Image” alt=”Image”
href=”javascript:popImage(‘Image.jpg’,’Image.jpg’)”><img border=’0′
src=’Image.jpg’ width=”160″ height=”210″></a>
Sorry to rabbit on so much.
Thanks for any suggestions.