473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

A rotating globe with javascript

Hello,
I am trying to create a nice rotating earth globe (on mouse) on my web
site, in order to display my professional relationships all over the
world. The best way seems to be a javascript. In fact I still hesitate
between java and javascript. My question is how can I create a
interacting globe using a satellite photo. This is a very usefull
applet for everybody. All suggestion welcome!
Thanks
Arnaud

May 27 '07 #1
3 5923
av******@neuf.fr said the following on 5/27/2007 5:45 PM:
Hello,
I am trying to create a nice rotating earth globe (on mouse) on my web
site, in order to display my professional relationships all over the
world. The best way seems to be a javascript. In fact I still hesitate
between java and javascript. My question is how can I create a
interacting globe using a satellite photo. This is a very usefull
applet for everybody. All suggestion welcome!
If you want the globe to be interactive, then Java (or Flash) is your
best bet. The trouble to pull that off in Javascript isn't worth the
effort. Especially since you want a rotating globe. With JS, you would
have to have an image of each rotation and then swap them out.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 27 '07 #2
On May 27, 11:55 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
avale...@neuf.fr said the following on 5/27/2007 5:45 PM:
Hello,
I am trying to create a nice rotating earth globe (on mouse) on my web
site, in order to display my professional relationships all over the
world. The best way seems to be a javascript. In fact I still hesitate
between java and javascript. My question is how can I create a
interacting globe using a satellite photo. This is a very usefull
applet for everybody. All suggestion welcome!

If you want the globe to be interactive, then Java (or Flash) is your
best bet. The trouble to pull that off in Javascript isn't worth the
effort. Especially since you want a rotating globe. With JS, you would
have to have an image of each rotation and then swap them out.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
I agree with Randy. Switch to Java (not to Flash), since Java has some
fine 3d functionality.

May 27 '07 #3
On May 27, 4:45 pm, avale...@neuf.fr wrote:
Hello,
I am trying to create a nice rotating earth globe (on mouse) on my web
site, in order to display my professional relationships all over the
world. The best way seems to be a javascript. In fact I still hesitate
between java and javascript. My question is how can I create a
interacting globe using a satellite photo. This is a very usefull
applet for everybody. All suggestion welcome!
Thanks
Arnaud
There are many methods that could be used. The most easy may be to use
an animated gif of a rotating globe, and switch it on and off using
visibility. Some ready made rotating globes are available, or it would
not be difficult to make your own by setting up a camera on a tripod
in front of a globe and making exposures at a few positions of equal
rotation. Many of the image programs can make animated gifs from such
a set of photos.

I have an example of the principle at http://www.cwdjr.info/dhtml/rotateglobe.html
.. The image is loaded as hidden. I use an onload event to show the
image at about 4 seconds, and another to hide it in about 4 more
seconds. You likely could use many different types of events to turn
the image on and off when an event you desire occurs. Excuse the code.
I just threw a demo together from an existing page, and you likely
would not need absolute positioning, etc. for your purpose.

May 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Grunt | last post by:
Hi, I have been trying to put together a rotating banner. the code works but I am having a problem with the caching of the banner images. no matter what I try the page is constantly reloading the...
31
by: Royal Denning | last post by:
I am designing a table with 2 columns and 20 rows. I want to insert small images (each with a link) and a text title in each cell of the table. On refresh of the page, I would like to have the...
14
by: mikeoley | last post by:
Why would this script below work on an html page: http://www.eg-designdev.com/aircylinders/test.htm But not a java page such as this: "http://www.eg-designdev.com/aircylinders/index3.jsp" Or...
2
by: sgMuser | last post by:
Hi, I am not a good developer of Javascript codes. Needs this help to make some modification to this famous free javascript from Anarchos. i am using this in one of my webpage. What it does is,...
2
by: mistral | last post by:
I want place custom text rotating around analogue clock. Here is javascript that is clise to my task: http://javascript.internet.com/time-date/mousetrailclock.html But it have a few...
1
by: AR123 | last post by:
Hi I want to set up a rotating banner. Not sure how to incorporate my rotating banner code into the code below. I want the rotating banner to be the main feature image? This is set up in...
6
by: swethak | last post by:
Hi, I displayed the image taken from database.How to raotate that image using javascript.plz tell that how to start the logic.plz tell that some reference websites.
1
by: Jeigh | last post by:
I've been searching around quite a bit but I can't seem to find what I'm looking for. I'm after a tutorial or source code I could look at for rotating images with a fade effect. I'm looking to have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.