why is there a javascript error with this code?

  • 1
  • Question
  • Updated 10 years ago
  • Answered
hi everyone!

i have a new random imag code but it says theres an error with it, whats up?

CODE:

<!--
<script language="JavaScript"></*Random Image Script- By JavaScript Kit (http://www.javascriptkit.com) Over 400+ free JavaScripts here!Keep this notice intact please*/function random_imglink(){var myimages=new Array()//specify random images below. You can have as many as you wishmyimages[1]="http://testsiteddm.synthasite.com/res... ry=Math.floor(Math.random()*myimages.length)if (ry==0)ry=1document.write('<img src="'+myimages[ry]+'" border=0>')}random_imglink()//--> This free script provided by
JavaScriptKit

-->

i cant see the problem,

Thanks

Alex Ramsay

http://sports-info.info
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
  • Annoyed

Posted 10 years ago

  • 1
Photo of Connor McCarra

Connor McCarra, Champion

  • 944 Posts
  • 47 Reply Likes
Hi Alex,

there dosen't seem to be a end tag. At the end you should have:
<!--
</script>
-->

I don't know if this is the only problem though.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
i thing Get Satisfaction is Screwing The Code.