http://tecfa.unige.ch/ico/navi/tex2html/top.gifhttp://tecfa.unige.ch/ico/icons/vrml97-icon.gif next up previous contents index
Next: 4.2 Mixing HTML and Up: 4. Mixing HTML with Previous: 4. Mixing HTML with

Subsections


   
4.1 Introduction

There exist several kinds of possible links between HTML and VRML. The most frequently used are the following:

HTML-VRML links:

Embeding a VRML browser in a HTML Page:

Use the <embed> tag, e.g. something like

 <EMBED align=center 
  src="../examples/basics/basics-shapes-10V.wrl" border=0
  width=180 height=180>
in order to embed a VRML plug-in window within a HTML page. If you don't need to display large VRML scenes, this is the recommended way to do it (rather then using frames).

VRML-HTML links:

See section 1.2.6 on page [*]. Note that can you pass parameters like target= if you want for example the user to open up another HTML frame when clicking on a VRML object.

You can also use the Browser object in a Script node (make sure to have a recent browser !) for more sophisticated stuff:

   Browser.loadURL(url, parameter);
             e.g.
  Browser.loadURL("publicity.html", "target=_new");
If you want to launch a new window, use 'target=_new' for the parameter. If you want to target a frame named explanation, use 'target=explanation' for the parameter.

JAVA, Javascript, VRML, HTML links:

Of course you can do more crazy stuff (more to follow maybe one day) but just be aware that ``Javascript'' inside VRML is NOT Netscape's (or whatever) language. see section 5.3 on page [*] for some more information.


next up previous contents index http://tecfa.unige.ch/ico/navi/tex2html/top.gifhttp://tecfa.unige.ch/ico/icons/vrml97-icon.gif
Next: 4.2 Mixing HTML and Up: 4. Mixing HTML with Previous: 4. Mixing HTML with
D.K.S. - 1998-03-18