VRML and Netscape 
Author Message
 VRML and Netscape


> Is there a way to import many .wrl objects in one Netscape window ,
> from text links of a document on the same page?

> Example, the word "circle" in the text activates a circular object in the
> window,
> and the word (link) "square" adds a square into the same window, with the
> circle?

Perhaps you could use JavaScript to do this. There is a very nice
example by Paul S. Hoffman at
http://www.*-*-*.com/ ;The
"JavaScript alone" link would be especially useful. View the page source
for this page after you try it.

How complicated and general is the world you might build? You could
start by creating all the objects you were going to need in a wrl file.
Each one would have a Switch Node as its parent so it could be made
visible/invisible easily. The "JavaScript alone" example demonstrates
how to do this.

To make a word "object" do this, you could use JavaScript pseudo-url's
which is a standard JavaScript technique. These are links which when
clicked call JavaScript functions rather than loading html pages. For
example, in your html first you define a javascript function:

<script language="JavaScript">
function showSphere() { /* javascript code */ }

Then in your text you might put:

Show me a <a href="javascript:showSphere();">sphere</a>

When you click on "sphere", showSphere() would be called. This would be
a lot like the hideSphere() function in that "JavaScript alone" example.


Thu, 16 Aug 2001 03:00:00 GMT  
 [ 3 post ] 

 Relevant Pages 

1. Datagram Socket & VRML in Netscape

2. vrml in Netscape

3. Enabling VRML in Netscape

4. Printing VRML within Netscape

5. VRML in Netscape 3--Only Sometimes

6. Problem with VRML and Netscape Frames

7. VRML in netscape 6

8. vrml plugin netscape/solaris

9. VRML Sound Issues in Netscape and IE.

10. Needed vrml.eai. for Cosmo 2.1 (netscape 4.5)

11. getting VRML and Java/EAI to work in Netscape 4.6 (a solution)

12. VRML plug-in for Netscape


Powered by phpBB® Forum Software