I am a proficient C++ and Delphi programmer, but when it comes to JavaScript I am totally lost. So please excuse the extremely basic question (which I could not find a solution for, using the search).
I have an HTML page (used as a Windows desktop wallpaper) that my Delphi program generates, showing a map of the world with the times in different cities (see The HTML page has a javascript loop that regularly updates the time, and when it's night in a particuylar city, the dot is grey and when it's daylight, the dot is yellow. Works fine so far.
Now, I want to add a curve showing the parts of the globe in sunlight and the parts in darkness. My Delphi app calculates all the rising/setting times, create a transparent GIF image in memory and saves it to file. So far, so good.
The problem is that, from within the JS of my HTLM file, I cannot get my GIF to display. The background is there, the city dots are there, but not my transparent GIF.
Can anyone show me some sample code to be placed in my loop to simply display my transparent GIF at (0,0) on top of my background image. The image size is 1600 by 1200.
Any help would be greatly appreciated.
Olivier
I have an HTML page (used as a Windows desktop wallpaper) that my Delphi program generates, showing a map of the world with the times in different cities (see The HTML page has a javascript loop that regularly updates the time, and when it's night in a particuylar city, the dot is grey and when it's daylight, the dot is yellow. Works fine so far.
Now, I want to add a curve showing the parts of the globe in sunlight and the parts in darkness. My Delphi app calculates all the rising/setting times, create a transparent GIF image in memory and saves it to file. So far, so good.
The problem is that, from within the JS of my HTLM file, I cannot get my GIF to display. The background is there, the city dots are there, but not my transparent GIF.
Can anyone show me some sample code to be placed in my loop to simply display my transparent GIF at (0,0) on top of my background image. The image size is 1600 by 1200.
Any help would be greatly appreciated.
Olivier