当前位置:编程学习 > C#/ASP.NET >>

asp.net 实现单击文本框时,显示以下效果(如下图)???


各位帮帮忙? --------------------编程问答-------------------- 图片看不到啊。 --------------------编程问答-------------------- 我都看到了,你没看到 --------------------编程问答-------------------- 看不到图 --------------------编程问答--------------------
引用 3 楼 yzf86211861 的回复:
看不到图

怎么上传本地图呢? --------------------编程问答--------------------
引用 3 楼 yzf86211861 的回复:
看不到图

[img=http://hi.csdn.net/space-185023-do-album-picid-645966.html][/img]图片附上 --------------------编程问答-------------------- --------------------编程问答--------------------   你的图裂了` --------------------编程问答-------------------- 用脚本  选中textbox索引鼠标remover。。。div隐藏
百度查。。。 --------------------编程问答-------------------- http://topic.csdn.net/u/20100906/14/8f055d33-3961-4768-8b61-b3c0aaf43e96.html --------------------编程问答-------------------- 楼主,一个小例子:

 <script type="text/javascript" src="JS/jquery-1.4.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {

            $("div#TreeView1>table:first-child a[class='TreeView1_0']").parent().append("   <a href='javascript:void' >Close</a>");
            $("div#TreeView1>table:first-child a[class='TreeView1_0']").parent().children().eq(1).click(function() {
                $("div#contentDiv").hide();
            });

            $("div#TreeView1n0Nodes a[class='TreeView1_0']").parent().append("   <a href='javascript:void' >Add</a>");
            $("div#TreeView1n0Nodes a[class='TreeView1_0']").next().click(function() {
                $("input#nodeTxt").val("");
                $("input#nodeTxt").val($(this).prev().html());
            });



            $("input#nodeTxt").focus(function() {
                $(this).parent().next().show();
            });
            $("input#nodeTxt").blur(function() {
                // $(this).parent().next().hide();
            });
        });
    </script>


 <form id="form1" runat="server">
    <div>
       <input id="nodeTxt" type="text" />
    </div>
    <div id="contentDiv" style="display:none">
        <asp:TreeView ID="TreeView1" runat="server">
        <Nodes>
             <asp:TreeNode Text="寻找我感兴趣的论坛">
                   <asp:TreeNode Text="C#">
                   </asp:TreeNode>
                   <asp:TreeNode Text="Java">
                           <asp:TreeNode Text="Spring"></asp:TreeNode>
                   </asp:TreeNode>
             </asp:TreeNode>
        </Nodes>
        </asp:TreeView>
    </div>
    </form>
--------------------编程问答--------------------
引用 10 楼 chen_ya_ping 的回复:
楼主,一个小例子:

JScript code

 <script type="text/javascript" src="JS/jquery-1.4.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {

            $("div#TreeV……


我用你的试试了怎么不显示树呢?
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,