waysun一路陽光

          不輕易服輸,不輕言放棄.--心是夢的舞臺,心有多大,舞臺有多大。踏踏實實做事,認認真真做人。

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 ::  :: 管理 ::
            167 隨筆 :: 1 文章 :: 64 評論 :: 0 Trackbacks
          效果圖

          1.JSP部分

          <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
          <%
          String path = request.getContextPath();
          String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
          %>

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          <html>
            <head>
              <title>My JSP 'tests.jsp' starting page</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">
             <link rel="stylesheet" type="text/css" href="<%=path %>/css/tcmsp.css">
           <script language="JavaScript">
           function clic(ids1,ids2,ids3)
           {
               document.getElementById("div"+ids1).style.display="";
               document.getElementById("div"+ids2).style.display="none";
               document.getElementById("div"+ids3).style.display="none"; 
              
               document.getElementById("img"+ids1+"_on").style.display="";
               document.getElementById("img"+ids2+"_on").style.display="none";
               document.getElementById("img"+ids3+"_on").style.display="none";
              
               document.getElementById("img"+ids1+"_off").style.display="none";
               document.getElementById("img"+ids2+"_off").style.display="";
               document.getElementById("img"+ids3+"_off").style.display="";  
           }
           </script>
            </head>
            <body>

              <table width="50%">
                <tr> 
                    <td  width="100%">
                     <div style="border:1 solid #93D746;">
                      <table width="98%">
                              <tr> 
                             <td  width="50%" align="left">          
                             1111
                          </td>
                          <td  width="50%" align="right">          
                             <img id="img1_off" src="<%=basePath %>images/kp_off.gif" style="display: none" onclick="clic('1','2','3')">
                             <img id="img1_on" src="<%=basePath %>images/kp_on.gif" style="display: " onclick="clic('1','2','3')">
                          </td>
                        </tr>
                      </table>          
                     </div>
                     <div id="div1" style="border:1 solid #93D746;height:300px;display: ">
                      <table width="100%">
                              <tr> 
                             <td  width="100%">555 </td>         
                        </tr>
                      </table>
                     </div>
                     <div style="border:1 solid #93D746;" >
                      <table width="98%">
                              <tr> 
                             <td  width="50%" align="left">          
                             2222
                          </td>
                          <td  width="50%" align="right">          
                             <img id="img2_off" src="<%=basePath %>images/kp_off.gif" style="display: " onclick="clic('2','1','3')">
                             <img id="img2_on" src="<%=basePath %>images/kp_on.gif" style="display:none " onclick="clic('2','1','3')">
                          </td>
                        </tr>
                      </table>          
                     </div>
                     <div id="div2" style="border:1 solid #93D746;height:300px;display:none ">
                      <table width="100%">
                              <tr> 
                             <td  width="100%" colspan="1">          
                             O(∩_∩)O哈哈~
                          </td>
                        </tr>
                      </table>          
                     </div>        
                     <div style="border:1 solid #93D746;" >
                      <table width="98%">
                              <tr> 
                             <td  width="50%" align="left">          
                            3333
                          </td>
                          <td  width="50%" align="right">          
                             <img id="img3_off" src="<%=basePath %>images/kp_off.gif" style="display: " onclick="clic('3','1','2')">
                             <img id="img3_on" src="<%=basePath %>images/kp_on.gif" style="display:none " onclick="clic('3','1','2')">
                          </td>
                        </tr>
                      </table>          
                     </div>         
                     <div id="div3" style="border:1 solid #93D746;height:300px;display:none ">
                     <table width="100%">
                              <tr> 
                             <td  width="100%">          
                             (*^__^*) 嘻嘻……
                          </td>
                        </tr>
                      </table>          
                    
                     </div>
                    </td>
                </tr>             
               </table>               
            </body>
           
          </html>

          用到的圖標下載
          posted on 2009-07-21 16:11 weesun一米陽光 閱讀(208) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 湟中县| 辽阳县| 元氏县| 铜鼓县| 旺苍县| 靖边县| 泸溪县| 商南县| 齐齐哈尔市| 铅山县| 黔西县| 称多县| 石城县| 汕尾市| 湄潭县| 梧州市| 囊谦县| 贵州省| 广水市| 伊吾县| 万全县| 西乡县| 札达县| 山东省| 大连市| 饶平县| 惠安县| 集安市| 故城县| 灵山县| 汽车| 玉门市| 霞浦县| 丹巴县| 锡林浩特市| 高邑县| 靖宇县| 博爱县| 郯城县| 玉林市| 丁青县|