Link to home
Start Free TrialLog in
Avatar of innovator
innovator

asked on

Script suggetion...


Hi...

I have this code... and want to take your opinion about
applying needed modifications:


<<<< Start Code >>>>>>>

<script language="javascript">
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);setInterval("a()",10);
setInterval("b()",1000000);self.focus();function a(){}
function b(){self.focus()};
</script>

<<<< End  Code  >>>>>>>



Here is what it *currently* does:
**It maximize the window to the full screen.
**It activates the window (so if there are other windows opened
this one become active
**It re-activates the window every 10 minuets (1000000 Milliseconds).


What i want it to do:
**Maximize the window to full screen.
** Do  >NOT< activate the window, so if there are
other windows.... this one remains in the background (not the active
window).
** After 10 minuets, it activates the window (i.e. send it from
the background to the main active window).

Can this be done? how?

thanks.

ASKER CERTIFIED SOLUTION
Avatar of axis_img
axis_img

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and remove self.focus(),


<script language="javascript">
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);setInterval("a()",10);
setInterval("b()",1000000);
self.blur();
function b(){self.focus()};
</script>

Avatar of axis_img
axis_img

Yep... Didn't see the redundancy there. Wonder why that was there in the first place. It does not hurt anything, but just redundant nonetheless.
Avatar of Michel Plungjan
I wonder if it will resize and move while it is blurred, if so perhaps the self.blur() should be the first statement
Avatar of innovator

ASKER

yes it worked. Thanks everybody.