mousedown vs click events
![]() |
Hi. Great script. I was wondering if there was a particular reason you used the "mousedown" event for the event listeners instead of "click". The main difference here is that "mousedown" responds to right-click, middle-click, etc while "click" only catches left (more specifically, primary) clicks. It may be a subtle change but I had an unintended quick travel out of Zugzwang Tower as I was exploring your script. I made the code replacement and it does not seem to have broken anything in Firefox 4 yet. Thanks. |
![]() |
Also, off-topic but not really significant enough to create a new thread for: to avoid cross-site scripting issues and repeated page loads for your audio alerts, you can save them in your source like you did your images. Passing a data URI variable to your AlertSound function works without change. If credit to the source is an issue you can always include it in a comment with the definition of the sound bite. |
![]() ![]() |
Hey bmn, thanks for pointing those out to me. I think I might implement a warning system when traveling away from specific areas, like the tower, to stop that from happening again and also changing the mousedown events to click events. With the audio, the credit isn't so much an issue as they are legacy game sounds anyway, just makes the script larger again >.>. |

