Javascript Help

Started on the old forum in January 2007 · view the original in the archive · old links redirect here

4 replies · 868 views · started 19 years ago · 1 min read

Guest #1

Can anyone help me with this please? found this code on a site...

<script type="text/javascript"> time = 15; function download() { if (time == 0) { document.getElementById("rom").innerHTML='<form method="POST" action="http://dl.coolrom.com/dl.php?7261"><input type="hidden" name="sid" value="05a9c3b16fa470eada298392e6c458b7"><input type="submit" style="font: ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/tease.gif)t verdana" value="Download Your File"></form>'; } if (time > 0) { document.getElementById("rom").innerHTML='Please wait. Your download link will appear in ' + time + ' seconds'; setTimeout('download()',1000); } time--; } download(); </script>

but i cannot get it to work on my website. I have no knowledge of javascript whatsoever so any help would be great. Thanks.

Guest #2

sorted it

Guest #4
<script type="text/javascript"> time = 15; function download() { if (time == 0) { document.getElementById("rom").innerHTML='<form method="POST" action="http://dl.coolrom.com/dl.php?7261"><input type="hidden" name="sid" value="05a9c3b16fa470eada298392e6c458b7"><input type="submit" style="font: tahoma" value="Download Your File"></form>'; } if (time > 0) { document.getElementById("rom").innerHTML='Please wait. Your download link will appear in ' + time + ' seconds'; setTimeout('download()',1000); } time--; } download(); </script>

That is the completed versi9on.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close