469,270 Members | 1,778 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Onmouseover e.t.c. applying on moving images

Hello,
I am a 2-day old Javascript developer :-) and I have a problem. I am trying to do examples I find on net about using onmouse events. I found a javascript that generates flying objects, and I wanted to be able when I point my mouse on any of them to replace it with another picture.
It is pretty straight forward to do that in html coding as I found out these days, but when I tried to use a onmouseover event in the javascript that creates the flying objects it does not work. Nothing happens.

So I have a for loop in the javascript which is actually calculating the next position of each of the images that have been defined.
I try to use onmouseover at that point of the code, using the document.images[numberoffigure].src to change to another picture. But it does not work.
Can someone advice me a bit?
Is the onmouseover working only on the html code? Note in javascripts? And one more question, I saw a onmouseover event under document.images[numberofimage] I tried to use that as well but nothing was happening.

I have the feeling I am asking something silly here, but if you can help me out to get started knowing what is going on. I know I have to read some books first and some very interesting sites but I stil do not know how ot use the onmouseover from within a javascript that generates moving objects (images).

Thank you all

Rigas
Jun 8 '07 #1
1 1684
acoder
16,027 Expert Mod 8TB
Rigas, welcome to TSDN!

Can you post your code.
Jun 8 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Tim | last post: by
3 posts views Thread by drjackk | last post: by
2 posts views Thread by Justin Rowe | last post: by
2 posts views Thread by sachaburnett | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.