<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    如何學好java

    如何學好java,其實很簡單,只要用心體會,慢慢積累!
    posts - 106, comments - 7, trackbacks - 0, articles - 3
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    url=jsp?str="你好!" 
    String areaName=(String)request.getParameter("areaname");
    String dpt=new String(dptName.getBytes("ISO8859-1"),"UTF-8");

    posted @ 2012-03-01 18:45 哈希 閱讀(198) | 評論 (0)編輯 收藏

      apache-comcat配置虛擬主機和虛擬目錄  jquery autocomplete 自動填充文本框、文本域
    JS 導出excel,word實例  2011-10-10 11:55:00|  分類: 默認分類 |  標簽:js  excel  word   |字號大

    小 訂閱
    用js操作offace中的word,excel 必須首先確保你已經安裝office,用js操作word,excel 用到了ActiveXObject類,它是專門用來調用windows操作中的程序的,下面是例子,直接復制到文本文件里,把后綴名改了就可以運行!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>無標題文檔</title>
    <script type="text/javascript" language="javascript">
    function ExcelExport(tableid)   
    {   

      //檢索瀏覽器  
                if(navigator.userAgent.indexOf("MSIE")<0){  
                    alert('請用ie瀏覽器進行表格導出');  
                    return ;  
                }  
                var oXL = null;   
                try {  
                    oXL = GetObject("", "Excel.Application");  
                }  
                catch (E) {  
                    try {  
                        oXL = new ActiveXObject("Excel.Application");  
                    }  
                    catch (E2) {  
                        alert("請確認:\n1.Microsoft Excel已被安裝.\n2.工具 => Internet 選項=> 安全 => 設置 \"啟用不安全的 ActiveX\"");  
                        return;  
                    }  
                }  

        var table = document.getElementById(tableid);     
        var workbook = oXL.Workbooks.Add();   
         var sheet = workbook.ActiveSheet;   
         var sel = document.body.createTextRange();  //激活sheet
           
         //把table中的數據移到sel中   
         sel.moveToElementText(table);   
           
         sel.select(); //選中sel中所有數據   
         sel.execCommand("Copy");//復制sel中的數據    
          sheet.Columns("A:Z").ColumnWidth =20;//設置列寬  
         // sheet.Columns("B").ColumnWidth =35;  
          sheet.Rows(1).RowHeight = 35;//設置表頭高  
         //將sel中數據拷貝到sheet工作薄中  
         sheet.Paste();           
         oXL.Visible = true; 
      //sheet.Save("F:\\TEST.XLS" ); 
         //通過打印機直接將Excel數據打印出來  
         //sheet.Printout;  
         //ax.UserControl = true;  
      oXL.Quit();
      oXL=null;
    }   
    </script>
    </head>

    <body>
    <table width="100%" border="1" id="mytable">
      <tr>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
      </tr>
      <tr>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
      </tr>
      <tr>
         <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
      </tr>
      <tr>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
      </tr>
      <tr>
         <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
        <td>nihao</td>
      </tr>
    </table>
    <form id="form1" name="form1" method="post" action="">
      <label>
      <input type="button" name="Submit" value="導出excel" onclick="ExcelExport('mytable')" />
      </label>
    </form>
    <p>&nbsp;</p>
    </body>
    </html>

     

    posted @ 2012-02-28 18:16 哈希 閱讀(306) | 評論 (0)編輯 收藏

    http://www.wujianrong.com/archives/2007/05/20jspajax.html      簡單用例
    http://www.ibm.com/developerworks/cn/web/wa-ajaxintro/          IBM—Ajax講解
    http://www.w3schools.com/ajax/ajax_example.asp                     Ajax—Example  W3CSchol



    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    ">

    <html>
    <head>
    <script src="ajax.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page using AJAX</title>
    </head>
    <body>

    <a onclick="sendRequest('GET','index.jsp')" href="#">Server Date Time:</a>
    <div id="ajax_res">Server Date Time will replace this text.</div>
    </body>
    </html>

    index.jsp
    <html>
    <body>
    <%=new java.util.Date()%>
    </body>
    </html>

    ajax.js
    function createRequestObject(){
    var req;
    if(window.XMLHttpRequest){
    //For Firefox, Safari, Opera
    req = new XMLHttpRequest();
    }
    else if(window.ActiveXObject){
    //For IE 5+
    req = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else{
    //Error for an old browser
    alert('Your browser is not IE 5 or higher, or Firefox or Safari or Opera');
    }

    return req;
    }

    //Make the XMLHttpRequest Object
    var http = createRequestObject();

    function sendRequest(method, url){
    if(method == 'get' || method == 'GET'){
    http.open(method,url);
    http.onreadystatechange = handleResponse;
    http.send(null);
    }
    }

    function handleResponse(){
    if(http.readyState == 4 && http.status == 200){
    var response = http.responseText;
    if(response){
    document.getElementById("ajax_res").innerHTML = response;
    }
    }
    }
    run this application may be u get some clue

    posted @ 2012-02-24 23:30 哈希 閱讀(184) | 評論 (0)編輯 收藏

    假設:
    1、你的頁面在Web-Root下,內容為:  <div id="showMsg"></div><input type="text" id="userName" />,所用編碼為utf-8
    2、你的servlet為:  HelloWorldServlet.java  映射路徑為   servlet/helloWorldServlet
    步驟:
    1、引入jquery-1.6.4.min.js
    2、編寫id為userName的輸入框的點擊觸發函數:
          $("#userName").keyup(function(){
                $.ajax({
                      type: "post",
                      url: "servlet/helloWorldServlet?userName="+$(this).val(),
                      dataType: "json",
                      success: function(data){
                            $("#showMsg").html(data.msg);//修改id為showMsg標簽的html
                      }, error: function(){
                            alert("請求出錯");
                      }
                })
          })
    3、后臺處理接收到的內容:
          request.setCharactorEncoding("utf-8");
          String userName = request.getParameter("userName");
          response.setCharactorEncoding("utf-8");
          PringWriter out = response.getWriter();
          out.print("{\"msg\":\"你好~~"+userName+"!\"}");
    
    注意事項:
    1、這里的編碼統一為utf-8
    2、請求路徑servlet/helloWorldServlet為相對路徑,因此你的頁面必須在項目的Web-Root下(也就是默認的web文件夾下,名字可能因項目配置不同而改變)
    
    網上的 Jquery ajax Demo 大多都是基于php 
    很少 有java的 今天就把自己的Demo貼出來 和大家共同學習
    現在就  Jquery ajax 的 $.ajax(),$.post(),$.get();

    首先是  服務端的Servlet 演示這三個函數的用法對都是用的同一個 服務端
     package com.june.servlet;   
     
    import javax.servlet.http.HttpServlet;  
    import javax.servlet.http.HttpServletResponse;  
    import javax.servlet.http.HttpServletRequest;  
    import java.io.IOException;  
    import java.io.PrintWriter;  
    import javax.servlet.ServletException;  
     
    public class jqueryAjaxServer extends HttpServlet {  
         public jqueryAjaxServer(){  
             super();  
         }  
         public void doGet(HttpServletRequest request,HttpServletResponse response)  
         throws IOException ,ServletException {  
             response.setContentType("text/html;charset=utf-8");  
             PrintWriter out=response.getWriter();  
             String account=request.getParameter("account");  
             if("iamcrzay".equals(account)){  
                 out.print("Sorry,the user is exist");  
             }  
             else{  
                 out.print("Congratulation,this accont you can use!!!!");  
             }  
             out.close();  
         }  
         public void doPost(HttpServletRequest request,HttpServletResponse response)  
         throws IOException ,ServletException {  
             this.doGet(request, response);  
         }  

    下面是WEB.XML
    Xml代碼 
    <?xml version="1.0" encoding="UTF-8"?> 
    <web-app version="2.5"   
        xmlns="    xmlns:xsi="    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   
            <servlet> 
           <servlet-name>jqueryAjaxServer</servlet-name> 
           <servlet-class>com.june.servlet.jqueryAjaxServer</servlet-class> 
        </servlet> 
            <servlet-mapping> 
           <servlet-name>jqueryAjaxServer</servlet-name> 
           <url-pattern>/jqueryAjax</url-pattern> 
        </servlet-mapping> 
      <welcome-file-list> 
        <welcome-file>index.jsp</welcome-file> 
      </welcome-file-list> 
    </web-app> 

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5"
     xmlns="
     xmlns:xsi=" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      <servlet>
        <servlet-name>jqueryAjaxServer</servlet-name>
        <servlet-class>com.june.servlet.jqueryAjaxServer</servlet-class>
     </servlet>
            <servlet-mapping>
        <servlet-name>jqueryAjaxServer</servlet-name>
        <url-pattern>/jqueryAjax</url-pattern>
     </servlet-mapping>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>

     

    下面是Jsp頁面
    第一個是 jqueryAjax.jsp  本頁使用的是$.ajax()
    Html代碼 
    <%@ page language="java"  pageEncoding="utf-8"%> 
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    <html> 
      <head>    
        <title>jquery ajax</title>   
        <meta http-equiv="pragma" content="no-cache"> 
        <meta http-equiv="cache-control" content="no-cache"> 
        <meta http-equiv="expires" content="0">      
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
        <meta http-equiv="description" content="This is my page"> 
        <script src="js/jquery-1.2.6.js" type="text/javascript"></script> 
        <script language="javascript"> 
             $(function(){  
                   $('.sumbit').click(function(){  
                   if($('#account').val().length==0){  
                       $('.hint').text("用戶名不能位空").css({"background-color":"green"});   
                   }  
                   else{  
                   $.ajax({  
                    
    url:'jqueryAjax',  
                     data:{account:$('#account').val()},  
                     error:function(){  
                     alert("error occured!!!");  
                     },  
                     success:function(data){  
                      $('body').append("<div>"+data+"</div>").css("color","red");  
            
                     }  
                       
                   });}  
                   });  
                   });  
                       
             
                 
        </script> 
      </head> 
        
      <body> 
                    <h3 align="center">jquery AjaX</h3> 
                    <hr> 
                    <label>請輸入用戶名 :</label> 
                    <input id="account" name="account" type="text"> 
                    <input class="sumbit" type="button" value="檢測"> 
                    <div class="hint"> 
                    </div> 
      </body> 
    </html> 

    <%@ page language="java"  pageEncoding="utf-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head> 
        <title>jquery ajax</title>
     <meta http-equiv="pragma" content="no-cache">
     <meta http-equiv="cache-control" content="no-cache">
     <meta http-equiv="expires" content="0">   
     <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
     <meta http-equiv="description" content="This is my page">
     <script src="js/jquery-1.2.6.js" type="text/javascript"></script>
     <script language="javascript">
          $(function(){
                $('.sumbit').click(function(){
                if($('#account').val().length==0){
                    $('.hint').text("用戶名不能位空").css({"background-color":"green"});
                }
                else{
                $.ajax({
                  url:'jqueryAjax',
                  data:{account:$('#account').val()},
                  error:function(){
                  alert("error occured!!!");
                  },
                  success:function(data){
                   $('body').append("<div>"+data+"</div>").css("color","red");
      
                  }
                 
                });}
                });
                });
                    
       
           
     </script>
      </head>
     
      <body>
                    <h3 align="center">jquery AjaX</h3>
                    <hr>
                    <label>請輸入用戶名 :</label>
                    <input id="account" name="account" type="text">
                    <input class="sumbit" type="button" value="檢測">
                    <div class="hint">
                    </div>
      </body>
    </html>

     

    第二個用的是  $.post()

    Html代碼 
    <%@ page language="java"  pageEncoding="utf-8"%> 
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    <html> 
      <head>    
        <title>jquery ajax</title>   
        <meta http-equiv="pragma" content="no-cache"> 
        <meta http-equiv="cache-control" content="no-cache"> 
        <meta http-equiv="expires" content="0">      
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
        <meta http-equiv="description" content="This is my page"> 
        <script src="js/jquery-1.2.6.js" type="text/javascript"></script> 
        <script language="javascript"> 
             $(function(){  
                 $('.sumbit').click(  
                  function(){  
                    if($('#account').val().length==0){  
                        $('.hint').text("The account is cant't be null").css({"color":"red","background-color":"yellow"});  
                    }  
                    else{  
                    $.post("jqueryAjax","account="+$('#account').val(),function(data){  
                       $('.hint').text(data).css({"color":"red","background-color":"yellow"});  
                    })  
                    }  
                 });  
             });             
        </script> 
      </head> 
        
      <body> 
                    <h3 align="center">jquery Ajax</h3> 
                    <hr> 
                    <label>請輸入用戶名 :</label> 
                    <input id="account" name="account" type="text"> 
                    <input class="sumbit" type="button" value="檢測"> 
                    <div class="hint"> 
                    </div> 
      </body> 
    </html> 

    <%@ page language="java"  pageEncoding="utf-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head> 
        <title>jquery ajax</title>
     <meta http-equiv="pragma" content="no-cache">
     <meta http-equiv="cache-control" content="no-cache">
     <meta http-equiv="expires" content="0">   
     <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
     <meta http-equiv="description" content="This is my page">
     <script src="js/jquery-1.2.6.js" type="text/javascript"></script>
     <script language="javascript">
          $(function(){
              $('.sumbit').click(
               function(){
                 if($('#account').val().length==0){
                     $('.hint').text("The account is cant't be null").css({"color":"red","background-color":"yellow"});
                 }
                 else{
                 $.post("jqueryAjax","account="+$('#account').val(),function(data){
                    $('.hint').text(data).css({"color":"red","background-color":"yellow"});
                 })
                 }
              });
          });       
     </script>
      </head>
     
      <body>
                    <h3 align="center">jquery Ajax</h3>
                    <hr>
                    <label>請輸入用戶名 :</label>
                    <input id="account" name="account" type="text">
                    <input class="sumbit" type="button" value="檢測">
                    <div class="hint">
                    </div>
      </body>
    </html>

     

    第三個是用的$.get()

    Html代碼 
    <%@ page  pageEncoding="utf-8"%> 
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    <html> 
      <head>     
        <title>jquery get</title> 
          
        <meta http-equiv="pragma" content="no-cache"> 
        <meta http-equiv="cache-control" content="no-cache"> 
        <meta http-equiv="expires" content="0">      
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
        <meta http-equiv="description" content="This is my page"> 
        <script src="js/jquery-1.2.6.js" type="text/javascript"></script> 
        <script type="text/javascript"> 
             $(function(){  
                    $('.sumbit').click(function(){  
                          if($('#account').val().length==0){  
                             $('.hint').html("用戶名不能位空?。?!").css({"color":"#ffoo11","background":"blue"});  
                          }  
                          else{  
                              $.get("jqueryAjax","account="+$('#account').val(),  
                                   function(data){  
                                    $('.hint').html(data).css({"color":"#ffoo11","background":"green"});  
                              });  
                          }  
                    });  
             });  
        </script> 
     
      </head> 
        
      <body> 
            <h3 align="center">jquery AjaX</h3> 
                    <hr> 
                    <label>請輸入用戶名 :</label> 
                    <input id="account" name="account" type="text"> 
                    <input class="sumbit" type="button" value="檢測"> 
                    <div class="hint"> 
                    </div> 
      </body> 
    </html> 

    <%@ page  pageEncoding="utf-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>  
        <title>jquery get</title>
       
     <meta http-equiv="pragma" content="no-cache">
     <meta http-equiv="cache-control" content="no-cache">
     <meta http-equiv="expires" content="0">   
     <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
     <meta http-equiv="description" content="This is my page">
     <script src="js/jquery-1.2.6.js" type="text/javascript"></script>
     <script type="text/javascript">
          $(function(){
                 $('.sumbit').click(function(){
                       if($('#account').val().length==0){
                          $('.hint').html("用戶名不能位空?。。?).css({"color":"#ffoo11","background":"blue"});
                       }
                       else{
                           $.get("jqueryAjax","account="+$('#account').val(),
                                function(data){
                                 $('.hint').html(data).css({"color":"#ffoo11","background":"green"});
                           });
                       }
                 });
          });
     </script>

      </head>
     
      <body>
            <h3 align="center">jquery AjaX</h3>
                    <hr>
                    <label>請輸入用戶名 :</label>
                    <input id="account" name="account" type="text">
                    <input class="sumbit" type="button" value="檢測">
                    <div class="hint">
                    </div>
      </body>
    </html>

     
    http://iamcrzay.iteye.com/blog/237940 
     
     
     
     

    posted @ 2012-02-24 16:16 哈希 閱讀(3999) | 評論 (3)編輯 收藏

    1、將數組轉化成字符串,用特殊字符如“|”將數組的元素隔開,用普通的字符串參數傳遞

    2、使用json方式傳遞參數

    解析

    C#后臺得到的是個string
    string objStr = HttpContext.Current.Request["objStr"];

    objStr內容([{"0": "a", "1": "b", "2": "c", "3": "d"}, {"0": "aa", "1": "bb", "2": "cc", "3": "dd"}{"0": "aa", "1": "bb"}])


    /// <summary>
      /// 從JS數組中解析出JSON對象返回該對象的字符串表示
      /// </summary>
      /// <param name="ArrayStr"></param>
      /// <returns></returns>
      private static string GetJsonStr(string ArrayStr)
      {
      //ArrayStr="[{'0': 'a', '1': 'b', '2': 'c', '3': 'd'},{'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'},{'0': 'aa', '1': 'bb'}]";
      string StrJson = ArrayStr;

      //將"[{"和"}]"去除;
      //StrJson="'0': 'a', '1': 'b', '2': 'c', '3': 'd'},{'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'},{'0': 'aa', '1': 'bb'";  
      StrJson = StrJson.Substring(2, StrJson.Length - 4);

      //將“},{”替換為“|”便于分割成數組
      //StrJson="'0': 'a', '1': 'b', '2': 'c', '3': 'd'|'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'|'0': 'aa', '1': 'bb'";  
      StrJson = StrJson.Replace("},{", "|");  
       
      //以“|”為分隔符將每個JSON對象分割成字符串
      /*結果為:strjson[0]="'0': 'a', '1': 'b', '2': 'c', '3': 'd'";
      strjson[1]="'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'";
      strjson[2]="'0': 'aa', '1': 'bb'";*/
      return StrJson.Split('|');
      }

    posted @ 2012-02-20 22:16 哈希 閱讀(208) | 評論 (0)編輯 收藏

    ask.jsp

    <script language="javascript" type="text/javascript">
    function Open()
    {

    window.open('<%=path%>/jsp/answer.jsp' ,'_blank','top=250,left=300,width=500 height=100');
    }
    </script>

      <body>
     <form   onsubmit= "return  new_window(); " >
      <input type="text" name="tbValue"><a href="javascript:" onclick="Open();">Open http://www.dwww.cn </a>
      
     </form>
      </body>

    answer.jsp

     <script language="javascript" type="text/javascript">
      function SetValue(value)
      {
      self.opener.document.all("tbValue").value=value;
      self.close();
      }
      </script>

     
     
    <body>
        Values:<br/>
    <a href="javascript:SetValue('1')">value 1</a><br/>
    <a href="javascript:SetValue('2')">value 2</a>

      </body>

     





    posted @ 2012-02-19 12:56 哈希 閱讀(175) | 評論 (0)編輯 收藏

    a href 不讓頁面跳轉

    不可以跳轉
    <a href="javascript:;" onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
    location.href不跳轉測試1</a>  
    <a href="javascript:void(0);"
    onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
    location.href不跳轉測試2</a>  


    可以跳轉
    <a href="javascript:void(0);"
    onclick="javascript:ToUrl('http://www.jingzhengli.cn');return false;">
    location.href不跳轉測試3</a>  
    <a href="#" onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
    location.href不跳轉測試4</a>  
    <a href="###" onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
    location.href不跳轉測試5</a> 
    本文來自CSDN博客,轉載請標明出處:http://blog.csdn.net/muzai/archive/2010/11/22/6026786.aspx

    posted @ 2012-02-17 13:22 哈希 閱讀(1158) | 評論 (0)編輯 收藏


    第一種:
        <script language="javascript" type="text/javascript">
               window.location.href=
    "login.jsp?backurl="+window.location.href;
        </script>

    第二種:
        <script language=
    "javascript">
    alert(
    "返回");
    window.history.back(-1);
       </script>

    第三種:
       <script language=
    "javascript">
    window.navigate(
    "top.jsp");
      </script>

    第四種:
       <script language=
    "JavaScript">
              self.location='top.htm';
       </script>

    第五種:
       <script language=
    "javascript">
              alert(
    "非法訪問!");
              top.location='xx.jsp';
       </script>

    posted @ 2012-02-16 23:09 哈希 閱讀(163) | 評論 (0)編輯 收藏

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> 顯示隱藏列 </TITLE>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function setHiddenCol(oTable,iCol)//Writed by QQ:190988779 at 2007-7-24 11:14:09
    {
        for (i=0;i < oTable.rows.length ; i++)
        {
            oTable.rows[i].cells[iCol].style.display = oTable.rows[i].cells[iCol].style.display=="none"?"block":"none";
        }
    }
    function setHiddenRow(oTable,iRow)//Writed by QQ:190988779 at 2007-7-24 11:14:09
    {
        oTable.rows[iRow].style.display = oTable.rows[iRow].style.display == "none"?"block":"none";
    }
    //-->
    </SCRIPT>
    </HEAD>

    <BODY>
    <TABLE id="Table1" cellSpacing="1" cellPadding="1" border="1">

    <TR> <TD width="20%">00</TD> <TD width="20%" bgcolor="#E3E3E3">01</TD> <TD width="20%">02</TD></TR>
    <TR> <TD width="20%" bgcolor="red">10</TD> <TD width="20%" bgcolor="green">11</TD> <TD width="20%" bgcolor="red">12</TD></TR>
    <TR> <TD width="20%">20</TD> <TD width="20%" bgcolor="#E3E3E3">21</TD> <TD width="20%">22</TD></TR>
    </TABLE> </P>


    <INPUT id="btnHiddenCol" type="button" value="顯示/隱藏第2列" name="btnHiddenCol" onclick="setHiddenCol(document.getElementById('Table1'),1)">
    <INPUT id="btnHiddenRow" type="button" value="顯示/隱藏第2行" name="btnHiddenRow" onclick="setHiddenRow(document.getElementById('Table1'),1)">
    </BODY>
    </HTML>

    posted @ 2012-02-15 11:08 哈希 閱讀(864) | 評論 (0)編輯 收藏

    oracle數據庫的配置

    一、Oracle的配置

    1、配置net manager

      依次選擇開始—>Oracle – OraHome92>Configuration and Migration Tools>Net Manager

    選擇本地—>服務命名,點擊左側綠色加號 

    輸入Net服務名 172.30.4.205_ora91 點擊下一步 

    選擇TCP/IPInternet協議) 點擊下一步 

    輸入主機名172.30.4.205 點擊下一步 

    選擇(Oracle8i或更高版本)服務名:ora91  點擊下一步 

    點擊測試 

    選擇更改登陸,輸入用戶名xiecha,口令xiecha 

    點擊確定,出現測試成功后選擇關閉

    點擊完成 

    保存網絡配置 
    參見網址:http://wenku.baidu.com/view/7685da64783e0912a2162aa9.html

    posted @ 2012-02-09 11:56 哈希 閱讀(156) | 評論 (0)編輯 收藏

    僅列出標題
    共11頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 
    主站蜘蛛池模板: 亚洲桃色AV无码| 成人无码区免费视频观看| 亚洲精品高清在线| 亚洲av午夜电影在线观看| 99re热免费精品视频观看| 亚洲av乱码一区二区三区| 国产精品久久永久免费| 国产精品亚洲片夜色在线 | 国产情侣久久久久aⅴ免费| 在线精品亚洲一区二区小说| 中文字幕在线免费观看视频| 国产精一品亚洲二区在线播放| 久久久久久AV无码免费网站下载| 伊人久久综在合线亚洲2019| 国产成人精品免费久久久久| 亚洲成色999久久网站| 182tv免费观看在线视频| 亚洲一区二区三区在线观看蜜桃| 在线观看免费人成视频色| 亚洲国产成人久久综合一区| 日韩精品无码区免费专区| 在线播放亚洲精品| 亚洲色偷偷偷鲁综合| 狼群影院在线观看免费观看直播| 亚洲国产成人99精品激情在线| 四虎永久成人免费| 在线观看免费无码视频| 亚洲av无码乱码国产精品| 午夜国产精品免费观看| 无人视频在线观看免费播放影院| 亚洲AV无码成人精品区在线观看 | 亚洲香蕉久久一区二区| 又粗又大又硬又爽的免费视频| 伊人免费在线观看高清版| 亚洲欧洲国产综合| 无码国产亚洲日韩国精品视频一区二区三区 | 亚洲福利中文字幕在线网址| 久久大香香蕉国产免费网站| 亚洲国产午夜精品理论片在线播放 | 亚洲一区二区影院| www.亚洲精品|