DOM Scripting causes annoying IE "click" sound

dk01's picture

He has: 516 posts

Joined: Mar 2002

I have searched quite a bit already for this but I'd like you all to look on the following site:

http://www.dk01.org/

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's picture

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);">&lt; 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;">&lt; 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.