TinyPortal

Development => Block Codes => Topic started by: tapirul on November 14, 2006, 12:19:45 AM

Title: day and night world map script?
Post by: tapirul on November 14, 2006, 12:19:45 AM
I was looking for a script that would allow me to display, in real time, a world map with the current position of the sun (showing where is day and where is night, like this one (http://www.timeanddate.com/worldclock/sunearth.html)), but without any luck. I tried this script (http://www.24fun.com/downloadcenter/utildaynightmap/utildaynightmap.html) without success (probably messed up with the installation, especially the folder where the images are supposed to go; the first map though, it's much better - they got it from NASA)
Can anyone help me? Thanks a lot
Title: Re: day and night world map script?
Post by: JPDeni on November 14, 2006, 01:46:07 AM
The images go in your root directory for your forum. I got it to work in a scriptbox, but the block didn't expand fit the image. There's probably some javascript thing that you need to tell it how big the image is.
Title: Re: day and night world map script?
Post by: tapirul on November 14, 2006, 02:00:30 AM
can't make it work....
Title: Re: day and night world map script?
Post by: JPDeni on November 14, 2006, 02:12:52 AM
What is it doing -- or not doing?
Title: Re: day and night world map script?
Post by: tapirul on November 14, 2006, 02:42:47 AM
it doesn't show the content of the box (it shows only the frame/title if I choose)
Other scriptboxes work.
Title: Re: day and night world map script?
Post by: JPDeni on November 14, 2006, 02:44:36 AM
You don't get a red X where an image should be? If you do, then your images are in the wrong place. If not, it could have to do with your browser. Javascript is notoriously hinky across browsers. I'm using IE6 and saw it just fine.
Title: Re: day and night world map script?
Post by: tapirul on November 14, 2006, 03:03:11 AM
no, i don't get anything. Looks like this (it's the "day and night" box):
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv505%2Ftapirul%2Fdayandnight.jpg&hash=39f5345ec401f13ad154a8fcf3309702439ed00a)

Other scripts work, though (I have FF2.0)

PS the pictures are in forum's root, and are chmod-ed
Title: Re: day and night world map script?
Post by: JPDeni on November 14, 2006, 03:31:35 AM
It's hard to know, then, since it worked just fine for me. All I did was copy the code from the site and past it into a scriptbox.