zoukankan      html  css  js  c++  java
  • js控制tabcontainer标签

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Test_Default" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
     <html xmlns="http://www.w3.org/1999/xhtml">
     <head id="Head1" runat="server">
         <title>未命名頁面</title>
     </head>
     <script language="javascript">
     function changeTab( tabIndex )
     {
     var tabBehavior = $get('<%=TC1.ClientID%>').control;
     tabBehavior.set_activeTabIndex(tabIndex);
     }
     </script>
     
     <body>
         <form id="form1" runat="server">
             <div>
                 <asp:ScriptManager ID="ScriptManager1" runat="server">
                 </asp:ScriptManager>
                 <a onclick="changeTab(3)">ffffff</a>
    <ajaxtoolkit:tabcontainer id="TC1" runat="server" activetabindex="0" style="text-align: left"     width="460px">
     <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel4">
     <HeaderTemplate>
     
     <span id="Span3" onmouseover="changeTab(0)">國際</span>
     
     </HeaderTemplate>
     <ContentTemplate>
     ssssssssss
     </ContentTemplate>
     </ajaxToolkit:TabPanel>
     <ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel4">
     <HeaderTemplate>
     
     <span id="Span4" onmouseover="changeTab(1)">國際</span>
     
     </HeaderTemplate>
     <ContentTemplate>
     ssssssssss
     </ContentTemplate>
     </ajaxToolkit:TabPanel>
     <ajaxToolkit:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel4">
     <HeaderTemplate>
     
     <span id="Span1" onmouseover="changeTab(2)">國際</span>
     
     </HeaderTemplate>
     <ContentTemplate>
     ssssssssss
     </ContentTemplate>
     </ajaxToolkit:TabPanel>
     <ajaxToolkit:TabPanel ID="TabPanel4" runat="server" HeaderText="TabPanel4">
     <HeaderTemplate>
     
     <span id="Span2" onmouseover="changeTab(3)">國際</span>
     
     </HeaderTemplate>
     <ContentTemplate>
     ssssssssss
     </ContentTemplate>
     </ajaxToolkit:TabPanel>
     </ajaxtoolkit:tabcontainer>
             </div>
         </form>
     </body>
     </html>
    
    
  • 相关阅读:
    通过asp.net 生成xml文件
    listbox 多选处理
    girdview 找到其焦点的笨办法
    关于.net 中调用script的alert后 css失效的办法
    从数据库中读数据中寻找若隐若现的OOP
    Gitlab的安装部署和介绍
    守住你的网站:防御DDoS攻击指南
    分析SQL语句使用资源情况
    Linux下Sniffer程序的实现
    NDIS resources
  • 原文地址:https://www.cnblogs.com/HughTan/p/1760011.html
Copyright © 2011-2022 走看看