waysun一路陽光

          不輕易服輸,不輕言放棄.--心是夢(mèng)的舞臺(tái),心有多大,舞臺(tái)有多大。踏踏實(shí)實(shí)做事,認(rèn)認(rèn)真真做人。

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 ::  :: 管理 ::
            167 隨筆 :: 1 文章 :: 64 評(píng)論 :: 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>

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

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 阿拉善右旗| 金乡县| 盐山县| 河间市| 织金县| 且末县| 高台县| 台州市| 磐石市| 五台县| 古交市| 青川县| 英德市| 永吉县| 哈密市| 泰安市| 洪洞县| 卓尼县| 醴陵市| 玛多县| 江油市| 民和| 眉山市| 拜泉县| 汉源县| 林甸县| 新安县| 吉木萨尔县| 分宜县| 滦平县| 鄂尔多斯市| 卫辉市| 蒙山县| 简阳市| 剑河县| 原阳县| 玉环县| 安福县| 正镶白旗| 南京市| 特克斯县|