ajax div實(shí)現(xiàn)漂亮的彈出框_第1頁
ajax div實(shí)現(xiàn)漂亮的彈出框_第2頁
ajax div實(shí)現(xiàn)漂亮的彈出框_第3頁
ajax div實(shí)現(xiàn)漂亮的彈出框_第4頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、2009-12-13 15:28后臺(tái)jsp處理程序:<% page contentType="text/html; charset=GBK" %><% page import="com.sxmcc.framework.core.*"%><% page import="java.util.*,com.dhcc.workflow.database.Dber,java.sql.*"%><%    /* time:2009-12-13   &

2、#160; * author yulw     */%><%-工單被起草次數(shù)統(tǒng)計(jì) -%><%    String flowID = (String)request.getParameter("flowID");    String sql = "select count(*) from flow_instance_names where flow_id='"+flowID+"'" 

3、60;  ResultSet rs = Dber.executeQuery(sql,"查詢工單被起草次數(shù)");    int count = 0;    while(rs.next()        count = rs.getInt(1);        System.out.println("該工單總共被起草了"+count+"次。"

4、);    response.setContentType("text/xml; charset=UTF-8");    response.setHeader("Cache-Control", "no-cache");    out.println("<root><count>"+count+"</count></root>");%>前臺(tái)jsp中的aja

5、x處理:if(xmlHttp.readyState=4)         if(xmlHttp.status = 200)                 var xmlDoc = xmlHttp.responseXML.documentElement;         

6、;       if(xmlDoc = null)                         alert("xmlDoc is null!");           

7、;      else                         var count = xmlDoc.getElementsByTagName("count")0.childNodes0.nodeValue;      &

8、#160;                  document.getElementById("tongji").innerHTML = '該工單總共被起草了'+count+'次。'                 &

9、#160;       前臺(tái)jsp頁面必備的頁面元素:<!- 彈出窗專用 begin-><div id="massage_boxbb">     <div class="massage">           <div class="header" onmousedown=MDown(massag

10、e_boxbb)>                <div style="display:inline; width:150px; position:absolute">工單被點(diǎn)擊次數(shù)統(tǒng)計(jì)</div>                

11、0;    <span onClick="massage_boxbb.style.visibility='hidden' maskaa.style.visibility='hidden'" style="float:right; display:inline; cursor:hand"><font size='4'>×</font></span>      &#

12、160;         </div>                <ul style="margin-right:25">                 

13、60;     <li><span id='tongji'></span></li>                </ul>               <center><s

14、pan onClick="massage_boxbb.style.visibility='hidden' maskaa.style.visibility='hidden'" style="float:center; display:inline; cursor:hand"><input type="button" value="關(guān)閉" /></span></center>    </div></

15、div><div id="maskaa"></div><!- 彈出窗專用 end->前臺(tái)jsp中的彈出窗移動(dòng)js:<!-實(shí)現(xiàn)層移動(dòng)-><script language="javascript">var Obj=''document.onmouseup=MUpdocument.onmousemove=MMovefunction MDown(Object)Obj=Object.iddocument.all(Obj).setCapture()pX=event.x-document

16、.all(Obj).style.pixelLeft;pY=event.y-document.all(Obj).style.pixelTop;function MMove()if(Obj!='')    document.all(Obj).style.left=event.x-pX;    document.all(Obj).style.top=event.y-pY;function MUp()if(Obj!='')    document.all(Obj).releaseC

17、apture();    Obj=''</script>層樣式:直接放在head里<style type="text/css">   a color:#000; font-size:12px;text-decoration:none   a:hover color:#900; text-decoration:underline   bodyoverflow:hidden   #massage_boxbb position:ab

18、solute; left:expression(body.clientWidth-350)/2); top:expression(body.clientHeight-200)/2); width:220px; height:120px;filter:dropshadow(color=#666666,offx=3,offy=3,positive=2); z-index:2; visibility:hidden   #maskaa position:absolute; top:0; left:0; width:expression(body.scrollWidth); height:expression(body.scrollHeight);filter:ALPHA(opacity=60); z-index:1; visibility:hidden   .massagebord

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論