display:none;  隐藏了 

解决方案 »

  1.   

    没执行啊。
    jcaShow();document.write('<div id="djcamain" style="display:none;position:fixed;height:268px;width:210px;background:#FF0000;border:2px solid #cecece;z-index:2;padding:12px;font-size:13px;"><table><tr><td>年:<input id="txYear" width=50px size=8 />月:<input id="txMonth" width=30px value=01 size=6 /></td></tr></table></div>');function jcaShow(obj){
    var windowWidth = document.documentElement.clientWidth;
    var windowHeight = document.documentElement.clientHeight;
    var popupHeight = $("#djcamain").height();
    var popupWidth = $("#djcamain").width();


    $("#djcamain").css({
    "position": "absolute",
    "top": windowHeight/2-popupHeight/2,
    "left": windowWidth/2-popupWidth/2
    }).fadeIn("slow");
    }
    jcaShow();
      

  2.   

    不是隐藏了,  我 $("#djcamain").show()也是一样的。
      

  3.   

    先直接document.write一个字符串试试,没看到的话那就debug看有没执行到啊
      

  4.   

    不好意思, 是我忘记引入jquery.js库了。。