我图片是在baidu空间里的。为什么不能显示啊?
超连接了?超链接能看见吗?

解决方案 »

  1.   

    <%@ Page language="c#" Codebehind="WebForm6.aspx.cs" AutoEventWireup="false" Inherits="test.WebForm6" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <title>WebForm6</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <style type=text/css>
    .skin0 { BORDER-RIGHT: #00ffcc 2px solid; BORDER-TOP: #00ffcc 2px solid; VISIBILITY: hidden; BORDER-LEFT: #00ffcc 2px solid; WIDTH: 100px; CURSOR: default; LINE-HEIGHT: 20px; PADDING-TOP: 4px; BORDER-BOTTOM: #00ffcc 2px solid; FONT-FAMILY: "宋体"; POSITION: absolute; BACKGROUND-COLOR: #33ffff; TEXT-ALIGN: left }
    .menuitems { PADDING-RIGHT: 1px; PADDING-LEFT: 10px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px }
    </style>
    <script language=javascript>
    function CreateMouseRight()
    {
    var InnerHtml = "<div onselectstart='return false' id='ClickMenu' class='skin0' onMouseover='HighLight()'";
    InnerHtml += "onMouseout='LowLight()' onClick='JumpTo();'>"
    InnerHtml += "<DIV id='divCopy' class='menuitems' url='javascript:RPaste();'>粘贴</DIV>";
    InnerHtml += "<HR><DIV id='divPaste' class='menuitems' url='javascript:Delete();'>删除</DIV></div>";

    document.getElementById("divMouseRight").innerHTML = InnerHtml;

    if (document.all && window.print)                               //如果当前浏览器是Internet Explorer,document.all就返回真 
    {
    document.oncontextmenu = ShowMenu;                          //重定向鼠标右键事件的处理过程为自定义程序ShowMenu 
    document.body.onclick = HideMenu;                           //重定向鼠标左键事件的处理过程为自定义程序HideMenu 
    }
    }

    var MenuSkin = "skin0";                                                        //选择菜单样式
    var DisplayUrl = 0;                                                            //是否在浏览器窗口的状态行中显示菜单项目条对应的链接字符串  //创建右键区域
    function ShowMenu() 


    var RightEdge = document.body.clientWidth-event.clientX;                    //获取当前鼠标右键按下后的位置,据此定义菜单显示的位置 
    var BottomEdge = document.body.clientHeight-event.clientY;
    if (RightEdge <document.getElementById("ClickMenu").offsetWidth)            //如果从鼠标位置到窗口右边的空间小于菜单的宽度,就定位菜单的左坐标(Left)为当前鼠标位置向左一个菜单宽度 
    {
    document.getElementById("ClickMenu").style.left = document.body.scrollLeft + event.clientX - document.getElementById("ClickMenu").offsetWidth;
    }
    else                                                                        //否则,就定位菜单的左坐标为当前鼠标位置
    {
    document.getElementById("ClickMenu").style.left = document.body.scrollLeft + event.clientX;
    }

    if (BottomEdge <document.getElementById("ClickMenu").offsetHeight)          //如果从鼠标位置到窗口下边的空间小于菜单的高度,就定位菜单的上坐标(Top)为当前鼠标位置向上一个菜单高度 

    document.getElementById("ClickMenu").style.top = document.body.scrollTop + event.clientY - document.getElementById("ClickMenu").offsetHeight;

    else                                                                        //否则,就定位菜单的上坐标为当前鼠标位置 
    {
    document.getElementById("ClickMenu").style.top = document.body.scrollTop + event.clientY;
    }

    if(IsCanEdit())                                                              //设置菜单可见 
    {
    document.getElementById("ClickMenu").style.visibility = "visible"; 
    document.getElementById("ClickMenu").style.zIndex = 101;
    }
    return false; 
    } //隐藏右键区域
    function HideMenu() 


    document.getElementById("ClickMenu").style.visibility = "hidden";             //隐藏菜单
    }  //高亮度鼠标经过的菜单条项目
    function HighLight() 


    if (event.srcElement.className == "menuitems")   //如果鼠标经过的对象是menuitems,就重新设置背景色与前景色

    event.srcElement.style.backgroundColor = "highlight"; 
    event.srcElement.style.color = "white"; 

    }  //恢复菜单条项目的正常显示
    function LowLight() 
    {
    if (event.srcElement.className == "menuitems") 

    event.srcElement.style.backgroundColor = ""; 
    event.srcElement.style.color = "black"; 

    }  //右键下拉菜单功能跳转
    //执行单击事件
    function JumpTo() 

    var seltext=window.document.selection.createRange().text                        //转到新的链接位置  if (event.srcElement.className == "menuitems") 


    if (event.srcElement.getAttribute("target") != null)                        //如果存在打开链接的目标窗口,就在那个窗口中打开链接 
    {
    window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
    }
    else                                                                        //否则,在当前窗口打开链接

    window.location = event.srcElement.url;
    }

    } //在选择区域才能实现自定义右键
    function IsCanEdit()
    {
    var isCan = false;
    var oElement = event.srcElement;
    var MyTag = event.srcElement.tagName;
    //if(MyTag == "imgS"||MyTag == "span")//在此限制当在何处右键有效
    //{
    isCan = true;
    //}
    return isCan;
    }
    </script>
    </HEAD>
    <body MS_POSITIONING="GridLayout" onload="CreateMouseRight()">
    <form id="Form1" method="post" runat="server">
    <div id="divMouseRight"></div>
    </form>
    </body>
    </HTML>
      

  2.   

    http://www.cnblogs.com/mogen_yin/archive/2008/10/28/1321069.html
      

  3.   


    先谢谢了,你这好像是c#的哦,我放到jsp里运行都没效果。要是java 的就好了。
      

  4.   

    谢谢sy_binbin了啊,上次的问题也是你帮我解决的。你给我的这个地址效果真的是很炫勒。不过,我调了下,不报错了,就是在页面上一直加载,只看的到系统管理。和它前面的加载图片。郁闷
      

  5.   

    那个BLOG里的代码是和数据库相连的,你可以看看他BLOG里的其他一些文章,你就知道是怎么回事了
      

  6.   

    看来只能用ext.tree来实现了,正好我在搞这个,就是树异步生成,节点可以拖动。哈哈,等我搞完。
      

  7.   

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Untitled Page</title>    <script type="text/javascript">
        function HideMenu(e)
    {
    //alert('a');
    if(e.srcElement&&e.srcElement.parentNode.tagName.toLowerCase()=='li') return ;//ie
    if(e.target&&e.target.parentNode.tagName.toLowerCase()=='li') return;//ffmenu.style.display="none";
    }
    function contextmenu(e)
    {
        menu.style.display="block";
        menu.style.left=e.clientX+'px';
        menu.style.top=e.clientY+'px';
    }var menu;
    function loadmenu()
    {
     menu=document.getElementById("divMenu");
    }
        </script></head>
    <body onload="loadmenu()" oncontextmenu="contextmenu(event);return false;" onclick="HideMenu(event);">
        <div>
            <pre>
            click here 
            click here 
            click here 
            click here 
            click here 
            click here 
            click here 
            click here 
            click here            </pre>
        </div>
        <div id="divMenu" style="filter: Alpha(opacity=80); opacity: 0.8; display: none;
            position: absolute; z-index: 999; top: 60px; left: 248px; border: none;">
            <table style="background-color: ButtonFace; border: none; width: 80px;">
                <tr>
                    <td style="cursor: pointer;" onmouseover="this.style.backgroundColor='blue'" onmouseout="this.style.backgroundColor='ButtonFace'">
                        add
                    </td>
                </tr>
                <tr>
                    <td style="cursor: pointer;" onmouseover="this.style.backgroundColor='blue'" onmouseout="this.style.backgroundColor='ButtonFace'">
                        update
                    </td>
                </tr>
                <tr>
                    <td style="cursor: pointer;" onmouseover="this.style.backgroundColor='blue'" onmouseout="this.style.backgroundColor='ButtonFace'">
                        copy
                    </td>
                </tr>
                <tr>
                    <td style="cursor: pointer;" onmouseover="this.style.backgroundColor='blue'" onmouseout="this.style.backgroundColor='ButtonFace'">
                        paste
                    </td>
                </tr>
            </table>
        </div>
    </body>
    </html>
    我收藏的
      

  8.   

    这个ext的确实是不错啊。不过要是用java写的就更好了。因为是个女孩子问我的,她不用ext。大家在帮帮忙啊,谢谢了。
      

  9.   

    http://www.webfx.nu/dhtml/xtree/demo.html
    楼主可以去看看,这个非常适合你的哦
      

  10.   

    希望大家继续关注下啊。最好是有java写的。
      

  11.   

    <html>
    <head>
    <script language='javascript'>
    /*******laos'blog-www.0097.org*********/
    /*******以下内容可以修改***************/
    var mname=new Array(
    "首 页",
    "修 改",
    "下 载",
    "删 除",
    "新 建",
    "刷 新"
    );
    //mname是菜单对应的名称,数组的个数必须与下面murl对应var murl=new Array(
    "window.open('http://www.cn5.cn','_blank','');",
    "alert('修改');",
    "alert('download');",
    "alert('delete');",
    "alert('new');",
    "alert('refresh');"
    );
    //murl是菜单对应的操作,可以是任意javascript代码但是要注意不要在里面输入\",只能用'
    //如果要实现跳转可以这样window.location='url';
    var ph=18,mwidth=50;//每条选项的高度,菜单的总宽度
    var bgc="#eee",txc="black";//菜单没有选中的背景色和文字色
    var cbgc="darkblue",ctxc="white";//菜单选中的选项背景色和文字色/****************以下代码请不要修改******************/
    var mover="this.style.background='"+cbgc+"';this.style.color='"+ctxc+"';"
    var mout="this.style.background='"+bgc+"';this.style.color='"+txc+"';"document.oncontextmenu=function()
    {
    mlay.style.display="";
    mlay.style.pixelTop=event.clientY;
    mlay.style.pixelLeft=event.clientX;
    return false;
    }
    function showoff()
    {
    mlay.style.display="none";
    }function fresh()
    {
    mlay.style.background=bgc;
    mlay.style.color=txc;
    mlay.style.width=mwidth;
    mlay.style.height=mname.length*ph;
    var h="<table width=100% height="+mname.length*ph+"px cellpadding=0 cellspacing=0 border=0>";
    var i=0;
    for(i=0;i<mname.length;i++)
    {
    h+="<tr align=center height="+ph+" onclick=\""+murl[i]+"\" onMouseover=\""+mover+"\" onMouseout=\""+mout+"\"><td style='font-size:9pt;'>"+mname[i]+"</td></tr>";
    //alert(h);
    }h+="</table>";
    mlay.innerHTML=h;
    }
    </script>
    </head>
    <body onClick="showoff();" onLoad="fresh();">
    点一下右键看看
    <div id="mlay" style="position:absolute;display:none;cursor:default;" onClick="return false;"></div>
    </body>
    </html>