469,331 Members | 4,121 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

Strange behaviour when using innerHTML

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.

Apr 23 '07 #1
7 1330
On Apr 23, 8:06 am, nokia33948 <nokia33...@yahoo.itwrote:
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

Apr 23 '07 #2
On 23 Apr, 17:23, Peter Michaux <petermich...@gmail.comwrote:
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.

Apr 23 '07 #3
nokia33948 said the following on 4/23/2007 11:41 AM:
On 23 Apr, 17:23, Peter Michaux <petermich...@gmail.comwrote:
>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.
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/
Apr 23 '07 #4
On 23 Apr, 19:03, Randy Webb <HikksNotAtH...@aol.comwrote:
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.

Apr 24 '07 #5
nokia33948 said the following on 4/24/2007 3:26 AM:
On 23 Apr, 19:03, Randy Webb <HikksNotAtH...@aol.comwrote:
>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.
<snipped signature that Google can't remove>
Hi Randy, thank you for the suggestion, it worked!
Good to know.
But, would you please explain what you meant with the first lines of your comment?
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.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 24 '07 #6
On 24 Apr, 18:49, Randy Webb <HikksNotAtH...@aol.comwrote:
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.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascriptFAQ -http://jibbering.com/faq/index.htmlJavascriptBest Practices -http://www.JavascriptToolbox.com/bestpractices/
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.

Apr 26 '07 #7
On 24 Apr, 18:49, Randy Webb <HikksNotAtH...@aol.comwrote:
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.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascriptFAQ -http://jibbering.com/faq/index.htmlJavascriptBest Practices -http://www.JavascriptToolbox.com/bestpractices/
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.

Apr 26 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Frank Passek | last post: by
2 posts views Thread by Paul Drummond | last post: by
7 posts views Thread by RobG | last post: by
3 posts views Thread by Sebastian C. | last post: by
6 posts views Thread by Edd Dawson | last post: by
4 posts views Thread by ignw82 | last post: by
1 post views Thread by dschectman | last post: by
8 posts views Thread by Dox33 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.