topical media & game development
graphic-javascript-effect-text-limit-effect.htm / htm
<!-- ONE STEP TO INSTALL TEXT-BOX LIMITER WITH SOUND:
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document -->
<BODY>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: SPD team (webmaster@superprodesign.com) -->
<!-- Web Site: http://www.superprodesign.com -->
Limit 10 characters!
<script>
<!--Write the url or source of the sound that indicates that you surpassed the limit between the "" like in the example below-->
alarm950652="50gun_01.wav"
<!--Don't edit from here on-->
document.write("<embed src="+alarm950652+" style='position:absolute;top:-999999' autostart=false>")
document.write("<input type='text' id='esta950652' onkeypress=limit950652()>")
function limit950652(){
if (esta950652.value.length==10){
fo950652.innerHTML="<embed src="+alarm950652+" style='position:absolute;top:-999999'>"
esta950652.blur()
}
}
document.write("<span id='fo950652'></span>")
</script>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.18 KB -->
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.