473,657 Members | 2,530 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5951
av******@neuf.f r 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.javas cript 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.f r 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.javas cript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptT oolbox.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.f r 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
2102
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 images, even worse they are not loading completely. This version includes a (vain) attempt at forcing the banner images to cache. Apart form the caching problem the scripting seems to work Any help welcomed:
31
6958
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 contents of each cell (picture/link and associated text) rotate randomly. Note that the text titles must remain with their associated picture and link (I don't want to scramble all the elements--just rotate the entire contents of the table cell).
14
6544
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 does anybody have a simple slide show rotation script they could refer me to...thanks. <HTML><HEAD>
2
2818
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, rotates banners with hyperlink specific to each image. it works just perfect but i need a simple modification. now I want to stop rotating the images when I mouseover on the image, and then continue once I move the cursor out of the banner image....
2
6537
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 unnecessary features which is difficult to alter. i want: 1. replace week/year/days in external circle with my custom text: 'My custom text'
1
2562
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 mediasurface My code is: <!-- start page container --> <div id="pageContainer"> <!-- start middle content area --> <div id="genericMiddle">
6
3216
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
2688
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 somthing on my site that will rotate a few images (with the fade effect) and have for example the numbers 1, 2, 3, 4, 5 underneath, so clicking on that number would take you to the respective image. I managed to find a few tutorials for this sort of...
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.