Sorry, it was wrong, this is the correct one :P

for (i=0;i<document.anchors.length;i++) {
      if (document.anchors[i].href!="") {
             document.anchors[i].addEventListener("mouseover", MyFunction,
false);
      }
}

On 6/28/07, Ezequiel Calderara <[EMAIL PROTECTED]> wrote:

Why are you adding the listener to the document?
I really don't know much about event handlers, but i have an idea about
dom :P.

you could do...

for (i=0;i<document.links.length;i++) {
        document.links [i].addEventListener("mouseover", MyFunction,
false);
}

That should work well. I didn't tested it.

and did you detect which links you don't detect? and why?

On 6/27/07, joe ertaba <[EMAIL PROTECTED]> wrote:

> Hi Boys.
>
> i am going to monitor links in a web page.
>
> i am using this command:
> window.addEventListener("mouseover", MyFunction, false);
>
> but it seems that it doesn't works for all links, so anybody have other
> ideas  ?
> maybe something like monitoring status-bar text changing ,...
>
> _______________________________________________
> Project_owners mailing list
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
>


--
______
Ezequiel.

Http://www.ironicnet.com




--
______
Ezequiel.

Http://www.ironicnet.com
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to