JK_10000(JK) 
能否给各例子?

解决方案 »

  1.   

    用<iframe name="up" ....>
    上面链接的target="up" 这样就行了
      

  2.   

    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>JK:支持民族工业,尽量少买X货</title>
    <script language="javascript"> 
    var isResizing=false;
    function Resize_mousedown(event,obj){
    if(!obj.setCapture) return ;
    isResizing=true;
    obj.mouseDownX=event.clientX;
    obj.leftTdW=obj.previousSibling.offsetWidth;
    obj.setCapture();
    }function Resize_mousemove(event,obj){
    if(!isResizing) return ;
        var newWidth=obj.leftTdW*1+event.clientX*1-obj.mouseDownX;
        if(newWidth>1) obj.previousSibling.style.width = newWidth;
        else {
         obj.previousSibling.style.width=1;
         obj.childNodes[0].innerHTML="&gt;";
        }
        if(newWidth>149) obj.childNodes[0].innerHTML="&lt;";
    }
    function Resize_mouseup(event,obj){
    if(!isResizing) return;
    obj.releaseCapture();
    isResizing=false;
    }
    function Resize_setDefault(event,obj){
    if(obj.innerHTML=="&lt;") {
    obj.parentNode.previousSibling.style.width=1;
    obj.innerHTML="&gt;";
    }
    else{
    obj.parentNode.previousSibling.style.width=150;
    obj.innerHTML="&lt;";
    }
    event.cancelBubble=true;
    }
    </script> 
    </head><body style='margin:0' >
    <table style="width:100%;height:100%;" border=0  cellspacing=0 cellpadding=0 >
    <tr style="height:40px;"><td colspan=3 >
    <A  href="#" onmouseover="document.getElementById('aaa').style.display='';" 
    onmouseout="document.getElementById('aaa').style.display='none';">Munu1</A>
    <div style="background-color:#cccccc; width: 150px;  display:none; z-index:50;height:300px; position:absolute;" id=aaa >
    <br/>
    ddddd
    </div>
    </td>
    </tr>
    <tr style="height:2px;line-height:2px;background-color:#cccccc;"><td colspan=3 >
    </td>
    </tr>
    <tr>
    <td style="width:150px;" >
    <iframe zindex=1 id="a" src="http://community.csdn.net/Tree/tree.htm" style="width:100%;height:100%; "></iframe>
    </td><td style="width:8px;cursor:e-resize;background-color:#cccccc;size:8px;z-index:10px;" align="center" valign="middle"
         onmousedown="Resize_mousedown(event,this);" onmouseup="Resize_mouseup(event,this);" onmousemove="Resize_mousemove(event,this);" >
         <font style="background-color:#eeeeee;cursor:pointer;" onmousedown="Resize_setDefault(event,this);">&lt;</font>
    </td><td>
    <iframe zindex=1 id="b" name="ContentFrame" src="about:blank" style="width:100%;height:100%;z-index:10"></iframe>
    </td>
    </tr>
    </table>
    </body>
    </html>