Strange behaviour when using innerHTML

N

nokia33948

Hi there,
I cannot find a solution to my problem.

Please go here http://www.milanodabere.it/test.htm and see what
happens when you pass the mouse over a star in the "Giudica evento"
section: the swf movie stops playing! I cannot explain why... is there
anyone who can help?

Regards,
D.
 
P

Peter Michaux

Hi there,
I cannot find a solution to my problem.

Please go herehttp://www.milanodabere.it/test.htmand see what
happens when you pass the mouse over a star in the "Giudica evento"
section: the swf movie stops playing! I cannot explain why... is there
anyone who can help?

Can you reproduce your problem in a complete HTML document that is 30
lines or less? If not can you do it in 40 lines?

Peter
 
N

nokia33948

Can you reproduce your problem in a complete HTML document that is 30
lines or less? If not can you do it in 40 lines?

Peter

Hi, I am not sure if I already posted the relpy.

BTW please go here http://www.milanodabere.it/test2.htm and pass the
mouse over the star at the top of the screen; then stop for a couple
of seconds, you will notice that the flash movie will stop until you
move out from the star.

Regards,
D.
 
N

nokia33948

How does copy/pasting the original question do anything to answer the
question that was asked?

The answer is that the code in that page isn't 30/40 lines long to start
with.

The issue is the onmousemove event is constantly updating the innerHTML
of the div element and causes the movie to stop updating because the
script has the browser too busy to update anything else.

Change it from onmousemove to onmouseover.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/

Hi Randy, thank you for the suggestion, it worked! But, would you
please explain what you meant with the first lines of your comment? I
am not sure I understood.

Regards,
D.
 
N

nokia33948

You got a reply, it was requested for you to narrow down the problem, in
40/30 lines of code, and you reply was to copy/paste your original
question. How does that come even close to answering the question of
"Can you reproduce your problem in a complete HTML document that is 30
lines or less?". Simple, it doesn't.

You need a better posting agent though.

Hi Randy,
please note that in my second post there was a link to a different
page (test2.htm instead of test.htm). And that page was actually less
than 15 lines. Does that answer your question?

Regards,
D.
 
N

nokia33948

You got a reply, it was requested for you to narrow down the problem, in
40/30 lines of code, and you reply was to copy/paste your original
question. How does that come even close to answering the question of
"Can you reproduce your problem in a complete HTML document that is 30
lines or less?". Simple, it doesn't.

You need a better posting agent though.

Hi Randy,
please note that in my second post there was a link to a different
page (test2.htm instead of test.htm); that page was actually less than
15 lines. I hope this answers your question.

Regards,
D.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,294
Messages
2,571,518
Members
48,225
Latest member
JasminOrta

Latest Threads

Top