日期:2014-05-18  浏览次数:20349 次

在服务器控件的Literal1.属性里添加html代码,超急,在线等!
this.Literal1.Text += " <TR style='DISPLAY: none' Level=2> <td class=k11 style='PADDING-LEFT: 15px' align=left bgColor=#d4eced height=22> <A class=display href=\"" + "javascript:window.open" + "(" + "'" + "http://211.21.61.141/phase5_html/tvline.html?url=http://211.21.61.141/phase5_html/tvline.html" + "'" + "," + "'" + "open_proenemail" + "'" + "," + "917,590" + "," + "'" + "scrollbars=yes" + "'" + ")" + "\" >&nbsp;&nbsp;&nbsp;&gt;&nbsp;mylink </A> </B> </TD> </TR>";
运行连接前面有个>,显示(>mylink).仍然可以打开链接.
还有就是,当点击mylink的时候,当前页变成了[object],当前页面是原来的页面,但是页面上的内容就只有一个[object],要想它还是保留原来的内容请问该怎么做


------解决方案--------------------
程序员辛苦呀,现在还在网上
你的情况我不情况,但你试试这段代码。看能不能帮到你
HTML code
    <script type="text/javascript">
        function SetUrl(url)
        {
            document.all.pImg.src = url;//htmltbfileName input名字
            document.all.Hidden1.value=url;
            //alert(url);
        }
        function OpenFileBrowser()
        {
            window.open("..//fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=../../connectors/aspx/connector.aspx", "newwindow", "dialogHeight:750px; dialogWidth:1024px; toolbar:no; menubar:no; scrollbars:yes; resizable:no; location:no; status:no;left:100px;top:100px");
        }

    </script>
<img id='pImg' alt="点击选择图片" src="<%= pImgsrc %>" width="320" height="240" onclick="OpenFileBrowser()" onerror="this.src='../Image/AddImage.GIF'" style="cursor: pointer" />

------解决方案--------------------
向程序员致敬,好辛苦!