473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1394
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Frank Passek | last post by:
Dear all, I've encountered some strange behaviour with PHP (4.3.2) using the CLI-API. When I provide an option in the first line of my script like so: #!/usr/bin/php -c /path_to_my_ini_file and...
2
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
7
by: RobG | last post by:
I was playing with matrices and wrote a routine to return the minor matrix if given a matrix and index. The minor is the matrix given by removing the first row and i-th column. e.g. using...
3
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
6
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd...
31
by: DeltaOne | last post by:
#include<stdio.h> typedef struct test{ int i; int j; }test; main(){ test var; var.i=10; var.j=20;
4
by: ignw82 | last post by:
Hi all, I have a strange behaviour in dataview, maybe you can help me. the behaviour is like this : First I made a datatable (odt) in data set, and then I created a dataview using this...
1
by: dschectman | last post by:
I have a page with two dynamic tables. One is a master list of items for selection. The second is a list of selected items. The master list contains 4 columns. 1) The item code - hidden For...
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.