![]() |
Help! Konami code with sound?
Hmmm.... i cant seem to get this to work. I was going to use this on my homepage.
When you correctily entered the "Konami Code" your supposed to hear a sound. Code:
<script type="text/javascript" src="http://konami-js.googlecode.com/svn/trunk/konami.js"></script>What did i do wrong and why wont it play a sound? Mind you the src for the sound destination is only local because i am testing it first before uploading it to my server. |
I don't know if this is the only problem, but...
In JavaScript (and Java/C/C++/C#/other languages) the backslash character is used as an ESCAPE character, giving special meaning to the character it. The \n means "newline" and \t means "tab", etc. If the following character does not have a special meaning then then the character, alone, is the result. The backslash just disappears. In order to actually *GET* a backslash, then, you must use a pair of them. Code:
'C:\Users\Willium\Music\Area Cleared.wav' |
Quote:
|
| All times are GMT +1. The time now is 04:55 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.