[Project_owners] more Statusbar problem
Amin Eft...
amin.eft at gmail.com
Mon Jul 9 01:26:53 PDT 2007
Hi joe
i have had same problem,
if you need to change status text onmouseover you must replace original
function with yours
eval("nsBrowserStatusHandler.prototype.setOverLink="+nsBrowserStatusHandler.prototype.setOverLink.toString().replace(
'link;','YourFunction();' ));
So any time toString() calls, your function will be fire.
be sure to replace original function "link;" after your works finished.
you can read more about that in
"http://www.mail-archive.com/project_owners@mozdev.org/msg02590.html
"
Thanks to "xeen"
On 7/8/07, joe ertaba <belaviyo at gmail.com> wrote:
>
> Hi
>
> i have 2 more problems with status bar
>
> First:
> i want to add listener to statusbar so alert when mouse over
>
> var statusbarDisplay = document.getElementById("statusbar-display");
> statusbarDisplay.addEventListener ("mouseover", sdsd, true);
>
> function sdsd(){
> alert('Hi ');
> }
>
> why it doesn't work?
>
>
> Second:
> i want to change status text when user go over link so i use this code:
>
> window.addEventListener("mouseover", wewe, false);
> function wewe(){
> var statusbarDisplay = document.getElementById
> ("statusbar-display");
> statusbarDisplay.label='Hello';
> }
>
>
> this code doesn't works also but when i change mouseover to mousemove it
> works !
>
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070709/15f4ff11/attachment-0001.html
More information about the Project_owners
mailing list