锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人在线免费av,欧美伊人影院,麻豆成人在线播放http://www.aygfsteel.com/chen45257211/category/51972.htmlzh-cnFri, 10 Aug 2012 15:10:37 GMTFri, 10 Aug 2012 15:10:37 GMT60鍏充簬DOJO涓浘鐗囨彃浠剁殑娉ㄦ剰浜嬮」http://www.aygfsteel.com/chen45257211/articles/385215.html涓冨瓚涓冨瓚Fri, 10 Aug 2012 04:02:00 GMThttp://www.aygfsteel.com/chen45257211/articles/385215.htmlhttp://www.aygfsteel.com/chen45257211/comments/385215.htmlhttp://www.aygfsteel.com/chen45257211/articles/385215.html#Feedback0http://www.aygfsteel.com/chen45257211/comments/commentRss/385215.htmlhttp://www.aygfsteel.com/chen45257211/services/trackbacks/385215.htmldojox.image.ThumbnailPicker錛?/div>dojox.image.Lightbox涓や釜鎻掍歡緇撳悎鐢ㄧ‘瀹炰篃寰堜笉閿欙紝涓嶈繃榪樻槸鏈変簺緇嗚妭闂鍊煎緱娉ㄦ剰銆?br />    1.鎶婂崟鍑誨脊鍑烘敼鎴愬弻鍑誨脊鍑猴紝榪欐牱鍗曞嚮鍙互浣滀負閫変腑璇ュ浘鐗囷紝榪涜鍒犻櫎錛屼笅杞界瓑鍚庣畫鎿嶄綔銆傚叧閿唬鐮佹槸 dojo.subscribe(dijit.byId('thumbPicker').getClickTopicName(), ondblclick); 鍑芥暟涓嶆槸鐩存帴鐨勬樉紺虹殑lightbox鍑芥暟錛岃屾槸鐢ㄤ竴涓棿鎺ョ殑鍑芥暟鍘葷粦瀹氬弻鍑諱簨浠訛紝瑙﹀彂lightbox鍑芥暟銆?br />    2.鏍峰紡鐨勯棶棰橈紝hover鍦↖E涓嬫病鐢紝騫朵笖瀹樻柟鐨剆elect涔熸槸娌℃湁鏁堟灉錛屾墍浠ュ簲璇ユ墜鍔ㄥ幓娣誨姞銆?br />    3.宸﹀彸鎸夐挳錛屽畼鏂圭殑渚嬪瓙鏍峰紡鍐欑殑涓嶅錛堢湡涓嶇煡閬撲粬浠負浠涔堜笉璇ワ級錛屽簲璇ユ槸background: transparent url("image/imageULbutton.png") no-repeat;
    鍏抽敭鐐?,2鐨勪唬鐮侊細
  function ondblclick(packet)
    {
    imageId = packet.data.id;
        dojo.query(".imageGalleryThumbSelected").removeClass("imageGalleryThumbSelected");
    dojo.addClass("img_thumbPicker_"+packet.index,"imageGalleryThumbSelected");
    dojo.connect(dijit.byId('thumbPicker'),"onDblClick",function(){
    if(packet!=null){
         lightbox.show({
               href: packet.largeUrl,
               title: packet.title
           });}
         packet=null;
    });
    
    }




涓冨瓚 2012-08-10 12:02 鍙戣〃璇勮
]]>
鍏充簬lazyTreeGrid澧炲姞checkboxhttp://www.aygfsteel.com/chen45257211/articles/383508.html涓冨瓚涓冨瓚Thu, 19 Jul 2012 07:22:00 GMThttp://www.aygfsteel.com/chen45257211/articles/383508.htmlhttp://www.aygfsteel.com/chen45257211/comments/383508.htmlhttp://www.aygfsteel.com/chen45257211/articles/383508.html#Feedback0http://www.aygfsteel.com/chen45257211/comments/commentRss/383508.htmlhttp://www.aygfsteel.com/chen45257211/services/trackbacks/383508.html   1  function( value,rowIndex,cells)
 2 {    var rowdata = this.grid.getItem(rowIndex);
 3     var rowvalue = rowdata.checked.toString();
 4     var first = "<div id='"+rowdata.id+"' style='height:15px;width:15px;float:left'";
 5     var last =  "onclick='OnChangeCheck("+rowIndex+","+this.grid.id+")'>  </div>"+value;
 6     if(rowvalue=='true'){
 7         return first+" class='sd-icon-checked' onmouseover ='oncheckover(this)' onmouseout='oncheckout(this)'"+last;
 8     }else if(rowvalue=='mix'){
 9         return first+" class='sd-icon-checkmix' onmouseover ='oncheckmixover(this)' onmouseout='oncheckmixout(this)'"+last;
10     }
11         return first+"class='sd-icon-nochecked' onmouseover ='onnocheckover(this)' onmouseout='onnocheckout(this)'"+last;
12         
13     
14 };
15 function oncheckmixout(e) {
16     e.className = "sd-icon-checkmix";
17  }
18 function oncheckmixover(e) {
19     e.className = "sd-icon-overcheckmix";
20  }
21 function onnocheckout(e) {
22     e.className = "sd-icon-nochecked";
23  }
24 function oncheckout(e) {
25     e.className = "sd-icon-checked";
26  }
27 function onnocheckover(e) {
28         e.className = "sd-icon-overnochecked";
29      }
30 function oncheckover(e) {
31     e.className = "sd-icon-overchecked";
32  }
33 function OnChangeCheck(rowIndexs,id)
34 {
35     var store=dijit.byId(id).store;
36     var rowdata = dijit.byId(id.toString()).getItem(rowIndexs);
37 
38     
39     if(rowdata.checked=='true'){
40         store.setValue(rowdata,"checked",'false');
41         if(rowdata.children!=null){
42             findChildrenItem(rowdata,'false',id);
43         }
44     }
45     else{
46         store.setValue(rowdata,"checked",'true');
47         if(rowdata.children!=null){
48             findChildrenItem(rowdata,'true',id);
49         }
50     }
51     var parentItem= getTreeParentItem(id,rowdata);
52     if(parentItem!=null){
53         findParentItem(parentItem,id);
54     }
55     
56 }
57 
58 function findChildrenItem(thisItem,value,id){
59     var store=dijit.byId(id).store;
60      for(var k=0;k<thisItem.children.length;k++){
61          
62          var theChildren = thisItem.children[k];
63          store.setValue(theChildren,"checked",value);
64          if(theChildren.children!=null){
65              findChildrenItem(theChildren,value,id);
66          }
67               
68     }
69     
70 }
71 function findParentItem(parentItem,id){
72     var store=dijit.byId(id).store;
73     var parentChecked = 0;
74     if(parentItem!=null){
75          var children = parentItem.children;
76          for(var i=0;i<children.length;i++)
77          {    
78              if(children[i].checked.toString()!='true'){
79                  if(children[i].checked.toString()=='mix'){parentChecked +=0.5;}
80                  else{parentChecked +=1;};
81              }
82          }
83          if(!parentChecked)
84          {
85              store.setValue(parentItem,"checked",'true');
86          }else{
87              if(parentChecked!=parentItem.children.length||parentChecked!=parseInt(parentChecked)){ 
88                  store.setValue(parentItem,"checked",'mix');
89                  }
90              else{
91                  store.setValue(parentItem,"checked",'false');
92                  };
93          }
94     }
95     var superParent=            PM.addCheckbox = function( value,rowIndex,cells)
{ var rowdata = this.grid.getItem(rowIndex);
var rowvalue = rowdata.checked.toString();
var first = "<div id='"+rowdata.id+"' style='height:15px;width:15px;float:left'";
var last =  "onclick='OnChangeCheck("+rowIndex+","+this.grid.id+")'>  </div>"+value;
if(rowvalue=='true'){
return first+" class='sd-icon-checked' onmouseover ='oncheckover(this)' onmouseout='oncheckout(this)'"+last;
}else if(rowvalue=='mix'){
return first+" class='sd-icon-checkmix' onmouseover ='oncheckmixover(this)' onmouseout='oncheckmixout(this)'"+last;
}
    return first+"class='sd-icon-nochecked' onmouseover ='onnocheckover(this)' onmouseout='onnocheckout(this)'"+last;
   
    
};
function oncheckmixout(e) {
e.className = "sd-icon-checkmix";
 }
function oncheckmixover(e) {
e.className = "sd-icon-overcheckmix";
 }
function onnocheckout(e) {
e.className = "sd-icon-nochecked";
 }
function oncheckout(e) {
e.className = "sd-icon-checked";
 }
function onnocheckover(e) {
e.className = "sd-icon-overnochecked";
}
function oncheckover(e) {
e.className = "sd-icon-overchecked";
 }
function OnChangeCheck(rowIndexs,id)
{
var store=dijit.byId(id).store;
var rowdata = dijit.byId(id.toString()).getItem(rowIndexs);
if(rowdata.checked=='true'){
store.setValue(rowdata,"checked",'false');
if(rowdata.children!=null){
findChildrenItem(rowdata,'false',id);
}
}
else{
store.setValue(rowdata,"checked",'true');
if(rowdata.children!=null){
findChildrenItem(rowdata,'true',id);
}
}
var parentItem= getTreeParentItem(id,rowdata);
if(parentItem!=null){
findParentItem(parentItem,id);
}
}
function findChildrenItem(thisItem,value,id){
var store=dijit.byId(id).store;
for(var k=0;k<thisItem.children.length;k++){
 
var theChildren = thisItem.children[k];
store.setValue(theChildren,"checked",value);
if(theChildren.children!=null){
findChildrenItem(theChildren,value,id);
}
 
}
}
function findParentItem(parentItem,id){
var store=dijit.byId(id).store;
var parentChecked = 0;
if(parentItem!=null){
var children = parentItem.children;
for(var i=0;i<children.length;i++)
{
if(children[i].checked.toString()!='true'){
if(children[i].checked.toString()=='mix'){parentChecked +=0.5;}
else{parentChecked +=1;};
}
    }
    if(!parentChecked)
    {
    store.setValue(parentItem,"checked",'true');
    }else{
    if(parentChecked!=parentItem.children.length||parentChecked!=parseInt(parentChecked)){ 
    store.setValue(parentItem,"checked",'mix');
    }
    else{
    store.setValue(parentItem,"checked",'false');
    };
    }
}
var superParent= getTreeParentItem(id,parentItem);
if(superParent!=null){
findParentItem(superParent,id);
}

}(id,parentItem);
96     if(superParent!=null){
97         findParentItem(superParent,id);
98     }
99 }
    鍐欑殑鍙兘姣旇緝綣佺悙錛屾病鏈変紭鍖栵紝鏄敤鍥劇墖鎺у埗鐨勶紝鍥犱負formatter鍑芥暟涓笉鑳戒嬌鐢╠ojo 鐨勭粍浠訛紝榪欐湁鐐歸仐鎲俱傚浘鐗囧湪dojo鍖呯殑\dojox\form\resources\images涓紝鑷繁鎵句竴涓嬨?span style="background-color: #eeeeee; ">getTreeParentItem鏄叕鍙稿皝瑁呯殑鏂規(guī)硶錛屾煡鎵劇埗鑺傜偣錛岃繖閲屽氨涓嶈創(chuàng)浜嗭紝緗戜笂鎵句竴鎵懼氨琛岋紝甯屾湜瀵規(guī)湁榪欑被浠誨姟鐨勪漢鏈夊府鍔?/span>

涓冨瓚 2012-07-19 15:22 鍙戣〃璇勮
]]>
鍏充簬DOJO涓璬ialog閬僵鐨勯棶棰?/title><link>http://www.aygfsteel.com/chen45257211/articles/380786.html</link><dc:creator>涓冨瓚</dc:creator><author>涓冨瓚</author><pubDate>Thu, 14 Jun 2012 07:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/chen45257211/articles/380786.html</guid><wfw:comment>http://www.aygfsteel.com/chen45257211/comments/380786.html</wfw:comment><comments>http://www.aygfsteel.com/chen45257211/articles/380786.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/chen45257211/comments/commentRss/380786.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/chen45257211/services/trackbacks/380786.html</trackback:ping><description><![CDATA[寰堜箙娌″啓涓滆タ浜嗭紝浠ュ墠鍙戣〃鐨勬枃绔犱篃澶у閮芥槸杞澆鐨勶紝鍓嶆鏃墮棿鐪嬪埌涓綃囨枃绔狅紝璇村紑鍙戜漢鍛樹負浠涔堜笉鍠滄鍐欐妧鏈崥瀹紝鎰熻鎸烘湁鎰熻Е鐨勶紝澶у鏁板師鍥犳槸瑙e喅浜嗗氨璇ュ繖鍏朵粬鐨勪簨鎯呬簡錛屼笉鍘葷榪欎簺涓滆タ浜嗭紝榪樻湁灝辨槸鎬曚笉澶熸繁鍏ワ紝鍐欑殑涓嶅錛岃浜虹瑧璇濄?br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #28557e; " />    鏈榪戝嚑澶╂帴鍒頒換鍔¤瑙e喅涓涓狣OJO涓璬ialog鐨凚UG錛屾劅瑙夊紕浜嗗ソ鍑犲ぉ寰堢儲韜侊紝涔熻鏄垜鎶鏈瘮杈冪儌錛岄珮鎵嬪簲璇ュ緢瀹規(guī)槗瑙e喅錛屼絾鏄垜甯屾湜鑳借褰曚笅鏉ワ紝鑳界粰鍚屾牱紕板埌闂鐨勪漢涓浜涘府鍔╋紝榪欐牱鐮佺殑閭d箞澶氬瓧灝變笉綆楃櫧璐廣?br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #28557e; " />    dialog鏄嚜甯﹂伄緗╁姛鑳界殑錛屼絾鏄垜浠湪浣跨敤鐨勬椂鍊欙紝鏈夊彲鑳戒笉闇瑕侀伄緗╄繖涓笢瑗匡紝鎬庝箞鎶婂畠鍘繪帀鍛紵濡傛灉浣跨敤鐨勬槸dojox鐨刣ialog錛宮odal灞炴х洿鎺ュ彲浠ュ幓鎺夐伄緗╋紝浣嗘槸DOJO1.7浠ュ悗鎺ㄨ崘浣跨敤DialogSimple錛屽洜涓哄畠緇ф壙浜咰ontentPane銆備絾鏄嵈娌℃湁浜唌odal灞炴э紝鎬庝箞鍔烇紵   鏈夊嚑縐嶅姙娉曪細<br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #28557e; " />    1. dojo.byId("id").childNodes[0].style.display="none"; id鏄湪欏甸潰涓婇伄緗╃殑id錛屽彲浠ラ兘榪噁irebug鐪嬪埌<br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #28557e; " />    2.dojo.destroy('id'); id鏄綘鐢熸垚dialog鐨刬d<br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #28557e; " />    3.dijit._underlay.hide();<br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #28557e; " />    4.dijit._underlay.domNode.style.display = "none";<br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #28557e; " />    絎竴縐嶈偗瀹氫笉鏄渶濂界殑鍔炴硶錛屽洜涓篿d榪欎釜涓滆タ涓嶆槸鍥哄畾鐨勶紝騫朵笖寰堟湁鍙兘鏄郴緇熻嚜鍔ㄧ敓鎴愮殑銆傜浜岀浼氬嚭鐜版柊鐨勯棶棰橈紝鍥犱負褰撲綘欏甸潰涓瓨鍦ㄥ緢澶氫釜dialog鏃訛紝浠栦滑閮芥槸鍏辯敤涓涓伄緗╃殑錛岃繖鏍峰叾浠栫殑dialog濡傛灉榪樻兂浣跨敤閬僵灝辨槸涓嶅彲鑳界殑浜嗐傜涓夌鏄垜鍦ㄧ綉涓婄湅鍒扮殑鍔炴硶錛屼絾鏄緢閬楁喚錛屼細鎶ラ敊錛屽師鍥犳壘鍒頒簡錛屾槸鍥犱負hide鐨勬椂鍊欐湁榪欎竴鍙his.bgIframe.destroy()錛屼絾鏄綘鍏抽棴dialog鏃惰皟鐢ㄧ殑hide鏂規(guī)硶鍙堜細閿姣佷竴嬈gIframe錛屼細鏄劇ず鎵句笉鍒癰gIframe銆傛墍浠ユ垜榪涘叆浜咲ialogUnderlay涓殑hide鏂規(guī)硶錛屽彂鐜頒富瑕佺殑浠g爜灝辨槸絎洓縐嶆柟娉曪紒濡傛灉鎯寵鏄劇ず灝變嬌鐢╠ijit._underlay.domNode.style.display = "block"錛屾槸涓嶆槸瀹岀編瑙e喅浜嗭紵 <img src ="http://www.aygfsteel.com/chen45257211/aggbug/380786.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/chen45257211/" target="_blank">涓冨瓚</a> 2012-06-14 15:16 <a href="http://www.aygfsteel.com/chen45257211/articles/380786.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">元阳县</a>| <a href="http://" target="_blank">红桥区</a>| <a href="http://" target="_blank">应城市</a>| <a href="http://" target="_blank">无锡市</a>| <a href="http://" target="_blank">麻城市</a>| <a href="http://" target="_blank">满城县</a>| <a href="http://" target="_blank">南雄市</a>| <a href="http://" target="_blank">察哈</a>| <a href="http://" target="_blank">胶州市</a>| <a href="http://" target="_blank">清涧县</a>| <a href="http://" target="_blank">庆安县</a>| <a href="http://" target="_blank">铅山县</a>| <a href="http://" target="_blank">宾阳县</a>| <a href="http://" target="_blank">高台县</a>| <a href="http://" target="_blank">宁蒗</a>| <a href="http://" target="_blank">维西</a>| <a href="http://" target="_blank">岐山县</a>| <a href="http://" target="_blank">融水</a>| <a href="http://" target="_blank">屯门区</a>| <a href="http://" target="_blank">通辽市</a>| <a href="http://" target="_blank">栾城县</a>| <a href="http://" target="_blank">台北县</a>| <a href="http://" target="_blank">香河县</a>| <a href="http://" target="_blank">尼玛县</a>| <a href="http://" target="_blank">凤冈县</a>| <a href="http://" target="_blank">阳信县</a>| <a href="http://" target="_blank">慈溪市</a>| <a href="http://" target="_blank">邻水</a>| <a href="http://" target="_blank">龙南县</a>| <a href="http://" target="_blank">手游</a>| <a href="http://" target="_blank">遂平县</a>| <a href="http://" target="_blank">海宁市</a>| <a href="http://" target="_blank">龙门县</a>| <a href="http://" target="_blank">河东区</a>| <a href="http://" target="_blank">确山县</a>| <a href="http://" target="_blank">息烽县</a>| <a href="http://" target="_blank">武乡县</a>| <a href="http://" target="_blank">莆田市</a>| <a href="http://" target="_blank">安徽省</a>| <a href="http://" target="_blank">大连市</a>| <a href="http://" target="_blank">孙吴县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>