I created a popup window, but I also want to display scrolling text in the status bar. How do I do that? Would the function be in the popup window itself?
I need just an idea how I could do this- thanks very much
You'd need to use a timer to modify the status bar text string one character at a time to give the impression that it's scrolling. There are routines to do this all over the web - try
On a side note, browsers like Firefox explicitly disable status bar modification by default, so many users will lose the effect anyway. This being the case, why not consider a different way to get your message across?
Hope this helps,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
Thanks. I do have a function with setInverval in it, and I can get it to work when I am in one window, but when my pop up window comes up, how do I make the status bar in that window move? I guess my question is:where do I put the code for the pop up window? I know I sound confused, because I am. In the meanwhile, I'll take a look at the link you gave me. Thanks so much.
Thanks. I did get a function to work for one form, but when I created a popup window, I dont know how to call the function. How do I call the function from the popup window if it's in the window that called it? I saw something about 'opener'- is that what I should try?
If you want the status bar in the popup window to be used instead of the opener window, you can either:
- Reference "windowHandle.status" instead of "window.status", where "windowHandle" is the handle returned by the window.open call. In this instance, the script is placed in, and run from, the opener window.
- Copy the scrolling code verbatim to the popup window page.
Note: If using the former method, AFAIK, both pages will have to be on the same domain.
Hope this helps,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.