Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

VRMLÓëJavascriptºÍVBscript½»»¥µÄʵÀý

 ÏÖ½«´úÂëÌù³ö£¬¹²Ã㣡
HTML²¿·Ö£º=====================================================
<html>
<head>
<script language="VBscript">
<!--
function M_b()
 set M_e=Scene.Engine
 M_e.Nodes("MyScript").Fields("nodestring")="Shape {geometry Box{}}"
 M_e.Nodes("MyScript").Fields("kk")=TRUE
end function
function M_s()
 set M_e=Scene.Engine
 M_e.Nodes("MyScript").Fields("nodestring")="Shape {geometry Extrusion{}}"
 M_e.Nodes("MyScript").Fields("kk")=TRUE
end function
!-->
</script>
<script language="javascript">
 function bd() {
  var oo = Scene.Engine;
  oo.Nodes("MyScript").Fields("nodestring")="Shape {geometry Box{}}";
  oo.Nodes("MyScript").Fields("kk")=true;
 }
 function bx(){
  var oo = Scene.Engine;
  oo.Nodes("MyScript").Fields("nodestring")="Shape {geometry Extrusion{}}";
  oo.Nodes("MyScript").Fields("kk")=true;
 }
</script>
</head>
<body>
<OBJECT id="Scene"
CLASSID="CLSID:86A88967-7A20-11d2-8EDA-00600818EDB1" WIDTH="300" HEIGHT="300">
<PARAM NAME="Scene" value="box.wrl">
</OBJECT>
<input type=button value="±ä´ó" onClick="bd()">
<input type=button value="±äС" onClick="bx()"><br>
</body>
</html>
box.wrl²¿·Ö===========================================================
#VRML V2.0 utf8
DirectionalLight {
 ambientIntensity .5
 intensity .2
}
NavigationInfo {
 type "EXAMINE"
}
DEF Transfm Transform {
 translation -4 0 -4
 children [
 Shape {
  geometry Box{}
 }]
}
DEF MyScript Script {
 directOutput TRUE
 eventIn SFBool kk
 field SFNode node USE Transfm
 field SFString nodestring ""
 url "VRMLSCRIPT:
 function kk(){
  if(nodestring=='')
  {
   nodestring='Shape {'
   'geomet


Ïà¹ØÎĵµ£º

ÓÃJavaScript»ñÈ¡¿Í»§¶ËMACµØÖ·(ת)

 <HTML>  
<HEAD><TITLE>WMI Scripting HTML</TITLE>  
    <META http-equiv=Content-Type content="text/html; charset=gb2312">  
    <SCRIPT language=JScript event="OnCompleted(hResult,pErrorObject, p ......

javascript ֪ʶÕûÀí

 javascript ֪ʶÕûÀí
1¡¢screen ÆÁÄ»¶ÔÏó
      screen ÆÁÄ»¶ÔÏó ·´Ó³Á˵±Ç°Óû§µÄÆÁÄ»ÉèÖá£
      width ·µ»ØÆÁÄ»µÄ¿í¶È£¨ÏñËØÊý£©¡£
      height ·µ»ØÆÁÄ»µÄ¸ß¶È¡£
      availWidth ·µ»ØÆÁÄ»µÄ¿ÉÓÿ ......

JavaScriptÖеÄÈýÖÖµ¯³ö¿ò

JavaScriptÖеÄÈýÖÖµ¯³ö¿ò:¾¯¸æ(alert)¡¢È·ÈÏ(confirm)ÒÔ¼°ÌáÎÊ(prompt)
<script type="text/JavaScript">
 function testAlert(){
 alert("ÎÒ¾ÍÊÇ´«ËµÖеÄalert!!!");
 }
function testConfirm(){
     var r=confirm("ÄãÊDzËÄñÂð£¿");
  if(r==true){
   ......

javascript·ÖҳЧ¹ûµÄʵÏÖ

ÏÖÔÚ¹«Ë¾Óкܶàministe£¬¶¼Óй«²¼»ñ½±Ãûµ¥µÄÒ³Ãæ¡£¶øÇÒÕâЩҳÃ涼ÊǾ²Ì¬µÄ¡£µ«ÊÇÓÉÓÚÓÐʱºò»ñ½±µÄÈËÊýÖڶ࣬²»µÃ²»Éè¼Æ³É·ÖÒ³µÄЧ¹û¡£Ä¿Ç°¹«Ë¾µÄcodingÕë¶ÔÕâÖÖÇé¿öûÓкܺõĽâ¾ö·½·¨¡£ÓÚÊǽñÌìÎÒ³é¿ÕдÁËÒ»¸ö¼òµ¥µÄ»ùÓÚjavascriptµÄʵÏÖ·½·¨¡£
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ