DOM Scripting causes annoying IE "click" sound
I have searched quite a bit already for this but I'd like you all to look on the following site:
My problem only occurs in IE. Once the page has loaded click one of the links labeled "< Rotate" or "Rotate >". Make sure your speakers are on and you will hear this annoying little "click" sound.
Does anyone know a way I can get rid of this with a script? The script I am using is listed here:
It only occurs when I use the appendChild() or insertBefore() DOM scripting functions.
Thanks!
-Jim
dk01 posted this at 08:05 — 12th February 2006.
He has: 516 posts
Joined: Mar 2002
Ok I figured this out.
I was using this in the hyperlink:
<a href="javascript: shiftSubNodesByTag('image-collage','img',-1);">< Rotate</a>
'Instead you have to use the onclick attribute and add a return false; statement after the function you run. So I changed it to:
<a href="#" onclick="shiftSubNodesByTag('image-collage','img',-1);return false;">< Rotate</a>
'Guess its just an IE behavior when you use the javascript: method.
-Jim
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.