`
hedahai119
  • 浏览: 104687 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表

js操作cookie

    博客分类:
  • js
//删除名称为name的Cookie function DeleteCookie (name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); } //清除COOKIE function ClearCookies() { ...
var ajaxObj; var btype=getOs(); function getOs() { if(navigator.userAgent.indexOf("MSIE")>0) { return "MSIE"; //IE浏览器 } if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ return "Firefox&quo ...
function alertWin(title, msg, w, h){ var titleheight = "22px";//提示窗口标题高度 var bordercolor = "#0051AA";//提示窗口的边框颜色 var titlecolor = "#FFFFFF";//提示窗口的标题颜色 var titlebgcolor = "#0051AA";//提示窗口的标题背景色 var bgcolor = "#FFFFFF";//提示内容的背景色 var ...
<style> .tableBorder7{width:800;solid; background-color: #000000;} TD{font-family: 宋体;font-size: 12px;line-height : 15px ;} th{background-color: #f7f7f7;color: #000000;font-size: 12px;font-weight:bold;} th.th1{background-color: #333333;} td.TableBody7{background-color: #B1EA45;} </st ...
首先是<html:select>的用法 <html:select property="comp_Version" styleClass="borderon"> <html:option value="0" >所有安装版本</html:option> <html:option value="1" >安装版本未知</html:option> <logic: ...

js弹出窗口回传值

    博客分类:
  • js
在父窗口的js代码: function alertWind(){ var userName = window.showModalDialog("alertUserAction.do?computerId="+computerId, null,"dialogWidth=300px;dialogHeight=400px;status=no;help=no;scrollbars=no"); //下面两句可以把 从子页面传回来的值 付到父页面上 document.getElementById("userName").value = ...
(1) Map map=new map(); map.put("a",""a"); <logic:iterate iterateid="id"name="map"> <bean:write name="id"property="key"/> <bean:write name="id"property="value"/> </logic:iterate> ...
Global site tag (gtag.js) - Google Analytics