| Author |
opening vrml embedded in html page
|
|
| Andrea 2003-12-04, 12:57 pm |
| Hi.
I wrote this html page:
<html>
<head>
<SCRIPT LANGUAGE=JavaScript>
function openVrml() {
var vrmlObj;
vrmlObj=document.getElementById('vrmlObj');
vrmlObj.src='second.wrl';
}
</SCRIPT>
</head>
<body>
<embed ID=vrmlObj src="first.wrl" type="x-world/x-vrml"
vrml_dashboard="false" vrml_background_color="#C0FFFF" contextmenu="false">
<INPUT TYPE=button VALUE="Open second" ONCLICK="openVrml();">
</body>
</html>
When I load this page in a browser it shows "first.wrl" and the button "Open
second" (that's ok!) but when I click "Open second" nothing happen!!! (I
expect second.wrl is loaded!).
Anyone can help me? Where's the problem?
Thanks.
| |
| Alexei Shein 2003-12-04, 12:57 pm |
| When i want to change the world opened through OBJECT tag, i use both
obj_tag.url = .. & obj_tag.src = ""
That`s because of different plugins (Cortona & CC3D-like (Blaxxunor BS))
---------
AShein, assincorp@hotmail.com
| |
| demetris 2004-04-15, 7:07 am |
| quote: Originally posted by Alexei Shein
When i want to change the world opened through OBJECT tag, i use both
obj_tag.url = .. & obj_tag.src = ""
That`s because of different plugins (Cortona & CC3D-like (Blaxxunor BS))
---------
AShein, assincorp@hotmail.com
Did this thing eventually work? I tried too, but it doesn't do anything. |
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |