Click to See Complete Forum and Search --> : Set picture as background


rincewind
06-04-2003, 07:47 AM
Hi,
Is it possible to use javascript to add a link beside an image which when clicked sets the image as the background on the users desktop? If so can anyone point me in the direction of a relevant tutorial or offer some help?
Thanks

Khalid Ali
06-04-2003, 08:21 AM
I don't think you can do this using JavaScript,since JavaScript is not designed to interact with the clients local OS.
Second you can right click and choose to set the image to set wall paper for your desk top o(on windows) with both NS or IE...whats the point of doing it differently?

rincewind
06-04-2003, 08:29 AM
I realise that it can be done through the right click method but I wanted to have that link for ease of use for in-experienced users. Have you any idea what language would be able to do it?
Thanks

Khalid Ali
06-04-2003, 08:39 AM
On windows machines,there are windows call back functions and you can write a program in any of the following
C/C++
Java (JNI)
VB etc to call those functions to set the background,But it will be a huge overkill,
because once you have that part done then you will need some sort of server side coding that will read the HTTP response/request object to read your click on the page and pass it to the actuall application that in turn make this happen..pheeeew..

I'd stck with one right click ....:-)

rincewind
06-04-2003, 08:43 AM
right click it is so! I thought it would be a simple bit of code!
Thanks again.