Malle
07-30-2010, 09:20 PM
This is my first time writing any JavaScript, so I am not very familiar with the language.
I want to make a window be kept at the back, under all other windows. From what I understand, the method to do this would be window.blur(), but I cannot seem to get it to work. Have I misunderstood the functionality, or am I implementing it wrong? The part of the code I have that currently deals with this (or at least tries) is as follows:
<BODY onclick="window.blur()" >
<img src="imageurl" id="image"></img>
</BODY>
I've tried a few other events to trigger this (onmouseover, setInterval, etc.) but no way I've tried has worked.
So, is blur() the right method to do this? have I done something wrong in the implementation? Any help and guidance is appreciated.
Backstory (if it should matter for some reason):
I found a webpage (here (http://www.fourmilab.ch/cgi-bin/Earth) and here (http://www.fourmilab.ch/earthview/custom.html)) that generates an image of the Earth as seen from space at a given time and I wanted to place that image, updated on a regular basis, as my desktop image. I looked around for a way to do it, but as far as I could find, there was no way to do it easily in Windows XP.
Thus, I am now using Samurize (http://forums.samurize.us/index.php?app=portal) (a program for overlaying graphics etc. at your desktop) to create a browser window that loads a html file that periodically updates the image. While this window cannot be moved and has no borders, it can be selected and if it is selected, the image is brought to the front, overlapping any other windows. I wish to make it such that this cannot happen; I have tried configuring Samurize as well as asking for help on their forums, but no luck so far.
I want to make a window be kept at the back, under all other windows. From what I understand, the method to do this would be window.blur(), but I cannot seem to get it to work. Have I misunderstood the functionality, or am I implementing it wrong? The part of the code I have that currently deals with this (or at least tries) is as follows:
<BODY onclick="window.blur()" >
<img src="imageurl" id="image"></img>
</BODY>
I've tried a few other events to trigger this (onmouseover, setInterval, etc.) but no way I've tried has worked.
So, is blur() the right method to do this? have I done something wrong in the implementation? Any help and guidance is appreciated.
Backstory (if it should matter for some reason):
I found a webpage (here (http://www.fourmilab.ch/cgi-bin/Earth) and here (http://www.fourmilab.ch/earthview/custom.html)) that generates an image of the Earth as seen from space at a given time and I wanted to place that image, updated on a regular basis, as my desktop image. I looked around for a way to do it, but as far as I could find, there was no way to do it easily in Windows XP.
Thus, I am now using Samurize (http://forums.samurize.us/index.php?app=portal) (a program for overlaying graphics etc. at your desktop) to create a browser window that loads a html file that periodically updates the image. While this window cannot be moved and has no borders, it can be selected and if it is selected, the image is brought to the front, overlapping any other windows. I wish to make it such that this cannot happen; I have tried configuring Samurize as well as asking for help on their forums, but no luck so far.