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
Ïà¹ØÎĵµ£º
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="re ......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false&quo ......
£¨×¢£ºÒÔϹ¤¾ßµÄ½éÉÜת×ÔJAVAEYE 2Ô¿¯£©
¡¡¡¡½ñÌìÔÚJavaEye 2Ô¿¯ÉÏ¿´µ½ÕâÆª×ܽáJavaScriptµÄÎÄÕ£¬¾õµÃдµÄºÜºÃ£¬ÏÖ°ÑÕâЩ¹¤¾ßµÄ½éÉÜ×ªÔØ¹ýÀ´×ö¹ý±£´æ£¬ÒÔºóÓõ½µÄ»°Ò²¿ÉÒÔ²éѯ²éѯ:-P
¡¡¡¡ÔÚAJAXÁ÷ÐеĽñÌìºÜ´ó³Ì¶ÈÉϹ鹦ÓÚJavaScript£¬Èç¹ûûÓÐJS£¬ÏàÐÅAJAXÒ²ÎÞ´Ó̸Æð¡£JavaScriptÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄ¿Í»§¶Ë½Å±¾ÓïÑÔ£¬Ë ......
javascript ֪ʶÕûÀí
1¡¢screen ÆÁÄ»¶ÔÏó
screen ÆÁÄ»¶ÔÏó ·´Ó³Á˵±Ç°Óû§µÄÆÁÄ»ÉèÖá£
width ·µ»ØÆÁÄ»µÄ¿í¶È£¨ÏñËØÊý£©¡£
height ·µ»ØÆÁÄ»µÄ¸ß¶È¡£
availWidth ·µ»ØÆÁÄ»µÄ¿ÉÓÿ ......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" onc ......