为啥不用 dojo  呢?

解决方案 »

  1.   

    就想做成这样的效果:http://topic.csdn.net/u/20080616/16/7f4df97b-a8e0-41d4-b074-e88746db7dca.html
    楼主的那种效果!
      

  2.   

    <!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>
    <script   type="text/javascript">
    var   sc   =   -200;
    var   flagguo;
    var   scrollFlag   =   false;
    var   offtops;//初始的时候,让div循环显示出来
    function   showMessage(){
    var   oDiv   =   document.getElementById("msg");
    oDiv.style.bottom   =   sc;sc   +=   10;
    gh   =   setTimeout("showMessage()",125);
    if(sc==10){
    clearTimeout(gh);
    offtops   =   oDiv.offsetTop;
    scrollFlag   =   true;
    }}//去除检测div的位置的循环
    function   clearAllTimes(){
    clearTimeout(flagguo);
    }//让循环来检测div的位置,始终保持在bottom附近
    window.onscroll=function   ()   {
    if(scrollFlag){
    var   oFix=document.getElementById("msg");
    oFix.style.top=(offtops+document.documentElement.scrollTop)+"px";
    }
    }window.onresize=function(){
    var   oDiv   =   document.getElementById("msg");
    oDiv.style.display   =   "none";
    clearAllTimes();
    scrollFlag   =   false;
    }</script>
    </head><body   onload="showMessage()"><div   id="msg"   style="width:250px;   height:150px;   background-color:#FF0000;   right:0px;   bottom:-200px;   position:absolute;"> </div>
    <table   width="500"   height="2000"   border="0"   cellpadding="0"   cellspacing="1">
        <tr>
            <td> <a   name="liang"   id="liang"> </a> </td>
            <td   style="word-break:break-all;word-warp:warp;"   width="10"   height="25"> 1111111111111111111111111111111111111111111111 </td>
            <td> &nbsp; </td>
            <td> &nbsp; </td>
        </tr>
        <tr>
            <td> &nbsp; </td>
            <td> &nbsp; </td>
            <td> &nbsp; </td>
            <td> &nbsp; </td>
        </tr>
        <tr>
            <td> &nbsp; </td>
            <td> &nbsp; </td>
            <td> &nbsp; </td>
            <td> &nbsp; </td>
        </tr>
    </table>
    </body>
    </html>
      

  3.   

    用一个div,然后内嵌一个Iframe,再用js控制此div