[Project_owners] mouseover for link monitoring!

Ezequiel Calderara ezechico at gmail.com
Thu Jun 28 07:10:46 PDT 2007


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 <ezechico at gmail.com> 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 <belaviyo at gmail.com> 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
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
> >
>
>
> --
> ______
> Ezequiel.
>
> Http://www.ironicnet.com




-- 
______
Ezequiel.

Http://www.ironicnet.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070628/c2105dec/attachment.html 


More information about the Project_owners mailing list