471,893 Members | 1,788 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Onmouseover e.t.c. applying on moving images

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

Jun 8 '07 #1
1 1735
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
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

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.