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

ÈçºÎÓÃJavascript¼ì²éAdobe PDF²å¼þÊÇ·ñ°²×°

ÓÃJavascript¼ì²éAdobe PDF²å¼þÊÇ·ñ°²×°µÄ´úÂëÈçÏ£º
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</title>
<mce:script type="text/javascript"><!--
function isAcrobatPluginInstall(){
//Èç¹ûÊÇfirefoxä¯ÀÀÆ÷
if (navigator.plugins && navigator.plugins.length) {
for (x=0; x<navigator.plugins.length;x++) {

if (navigator.plugins[x].name== 'Adobe Acrobat')
return true;
}
}
//ÏÂÃæ´úÂë¶¼ÊÇ´¦ÀíIEä¯ÀÀÆ÷µÄÇé¿ö
else if (window.ActiveXObject)
{
for (x=2; x<10; x++)
{
try
{
oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
if (oAcro)
{
return true;
}
}
catch(e) {}
}
try
{
oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
if (oAcro4)
return true;
}
catch(e) {}
try
{
oAcro7=new ActiveXObject('AcroPDF.PDF.1');
if (oAcro7)
return true;
}
catch(e) {}
}
}
// --></mce:script>
</head>
<body>
<input type="button" name="kkk" value="µã»÷¼ì²éAdobe Acrobat ²å¼þÊÇ·ñ°²×°" onclick="if(isAcrobatPluginInstall()) alert('Adobe Acrobat ²å¼þÒѰ²×°');" />
</body>
</html>

ÉÏÃæ´úÂëÔÚIE6.0ºÍfirefox 3.0ÏÂÔËÐÐͨ¹ý¡£


Ïà¹ØÎĵµ£º

javascriptÊó±êʼþ´óÈ«

jsÊó±êʼþ´óÈ«2008Äê01ÔÂ14ÈÕ ÐÇÆÚÒ» 08:54Ò»°ãʼþ ʼþ ä¯ÀÀÆ÷Ö§³Ö ÃèÊö
onClick IE3|N2|O3 Êó±êµã»÷ʼþ£¬¶àÓÃÔÚij¸ö¶ÔÏó¿ØÖƵķ¶Î§ÄÚµÄÊó±êµã»÷
onDblClick IE4|N4|O Êó±êË«»÷ʼþ
onMouseDown IE4|N4|O Êó±êÉϵİ´Å¥±»°´ÏÂÁË
onMouseUp IE4|N4|O Êó±ê°´Ïºó£¬ËÉ¿ªÊ±¼¤·¢µÄʼþ
onMouseO ......

JAVASCRIPTµÄinstanceof·ÖÎö

 function class1(){
alert("class1");
};
function class2(){
alert("class2");
}
class2.prototype=class1.prototype;
var obj=new class2();
alert(obj instanceof class1);
alert(obj instanceof class2);
alert(class2.prototype.constructor);
class2.prototype.constructor(); ......

javascript ¿ØÖÆ htmlÔªËØ ÏÔʾ/Òþ²Ø


javascript ¿ØÖÆ htmlÔªËØ ÏÔʾ/Òþ²Ø
1¡£±àдjsº¯Êý
 <script type="text/javascript">
function display(y){$(y).style.display=($(y).style.display=="none")?"":"none";} 
function $(s){return document.getElementById(s);}
 </script>
2. ÒªÏÔʾ/Òþ²ØµÄhtmlÔªËØ¼ÓÉÏ id ÊôÐÔ
< ......

javascript ¶¯Ì¬´´½¨±í¸ñ

ÀûÓÃjsÀ´¶¯Ì¬´´½¨±í¸ñÓÐÁ½ÖÖ¸ñʽ£¬appendChild()ºÍinsertRow¡¢insertCell()¡£Á½ÖÖ·½Ê½Æäʵ²î²»¶à£¬µ«µÚÒ»ÖÖÓпÉÄÜÔÚIEÉÏÓÐÎÊÌ⣬ËùÒÔÍÆ¼ö´ó¼ÒʹÓõڶþÖÖÁË£¬Ö±½Ó˵°É¡£
1¡¢inserRow()ºÍinsertCell()º¯Êý
insertRow()º¯Êý¿ÉÒÔ´ø²ÎÊý£¬ÐÎʽÈçÏ£º
insertRow(index)£ºindex´Ó0¿ªÊ¼
Õâ¸öº¯Êý½«ÐÂÐÐÌí¼Óµ½indexµÄÄÇÒ»ÐÐÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ