ͨ¹ýJavaScript½«ÊäÈë¿òÉèÖÃΪֻ¶Á
×¢Ò⣺readOnlyÖеÄOÒª´óд
//Ò³Ãæ³õʼ»¯Â¼È룬ÅжÏÖ¸±ê˵Ã÷ÊÇ·ñΪ¹¤×ÊÐÔÖ§³ö¡£
function init() {
var mark = "<%=mark%>";
//Èç¹ûÖ¸±ê˵Ã÷Ϊ“¹¤×ÊÐÔÖ§³ö”£¬Ôò¹¤×ÊÖ§³öÄÇÒ»Ïî±äΪֻ¶Á£¬ÇÒֵΪ“Ö¸±ê¿ÉÓýð¶î”£»ÆäËû¼Èë¿ò¶¼²»¿É¼Èë¡£
if(mark!="" && mark=="¹¤×ÊÐÔÖ§³ö") {
document.getElementById("money0").readOnly = "true";
document.getElementById("money1").readOnly = "true";
document.getElementById("money3").readOnly = "true";
document.getElementById("forwhat0").readOnly = "true";
document.getElementById("forwhat1").readOnly = "true";
document.getElementById("forwhat3").readOnly = "true";
document.getElementById('money2').value = <%=budgetMoney[2]%>;
document.getElementById('money2').readOnly = "true";
} else {
//Èç¹ûÖ¸±ê˵Ã÷²»Îª“¹¤×ÊÐÔÖ§³ö”£¬Ôò¹¤×ÊÖ§³öÄÇÒ»Ïî²»¿É¼Èë¡£
document.getElementById('money2').readOnly = "true";
document.getElementById('forwhat2').readOnly = "true";
}
}
Ïà¹ØÎĵµ£º
document.close();
document.open();
function jsonFormat(template, json) {
return template.replace(/\$\{(.+?)\}/g, function ($, $1) {
return json[$1];
});
}
var links = [
{ text: "ÈËÈâËÑË÷", url: "http://renrousousuo.com" } ,
{ text: "CSDN", url: &qu ......
test1.htnl
<script type="text/javascript">
function get(){
var ifr1 = window.parent.document.getElementById('test2Frm');
¡¡¡¡ var b1 = ifr1.contentWindow.document.get ......
×¢Òâ:OptionÖеÄOÊÇÒª´óдµÄ£¬²»È»Óï·¨±¨´í
1.¶¯Ì¬´´½¨select
function createSelect(){
var mySelect = document.createElement("select");
mySelect.id = "mySelect";
  ......
Ò»¡¢¹¦ÄÜʵÏÖºËÐÄ£ºFileSystemObject ¶ÔÏó
ÒªÔÚjavascriptÖÐʵÏÖÎļþ²Ù×÷¹¦ÄÜ£¬Ö÷Òª¾ÍÊÇÒÀ¿¿FileSystemobject¶ÔÏó¡£
¶þ¡¢FileSystemObject±à³Ì
ʹÓÃFileSystemObject ¶ÔÏó½øÐбà³ÌºÜ¼òµ¥£¬Ò»°ãÒª¾¹ýÈçϵIJ½Ö裺 ´´½¨FileSystemObject¶ÔÏó¡¢Ó¦ÓÃÏà¹Ø·½·¨¡¢·ÃÎʶÔÏóÏà¹ØÊ ......
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 ......