藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

菜鳥問題(幫忙看看代碼什麼意思)

//The TD on losing focus hides the Calendar within it
//But if the lost focus occured due to the button click
//(indicated by over==1)the Cal won't get invisible sine
//the button click will be called immediately after this onblur event
//which will again cause it to be displayed...The only thing that we can
//do is somehow disable the click for once..This is
//done by assigning 'donothing' fn to it..which doesn't do anything
//with the calendar..it simply restores the eventhandler for button onclick
//so everything is back to normal.
output.WriteLine("function "+onblurfn);
output.WriteLine("{");
output.WriteLine("document.all('"+tdID+"').childNodes(0).style.display='none';");
output.WriteLine("if (over==1)");
output.WriteLine("document.all('"+btnID+"').onclick="+uniqueID+"donothing;");
output.WriteLine("}");

//As explained below this function simply restores the onclick handler
output.WriteLine("function "+donothing);
output.WriteLine("{");
output.WriteLine("document.all('"+btnID+"').onclick="+uniqueID+"toggleCal;");
utput.WriteLine("}");



toggleCal函數哪裡去了!!!!!!!!是系統的嗎!!




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com