`
siruoxian
  • 浏览: 231483 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
一、window.open()支持环境: JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+二、基本语法:window.open(pageURL,name,parameters) 其中:pageURL 为子窗口路径 name 为子窗口句柄 parameters 为窗口参数(各参数用逗号分隔) 三、示例:<SCRIPT> <!-- window.open ('page.html','newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=n ...
document.frames('subFrame').setCurrentAttachmentList(); 替换成  document.getElementById('subFrame').contentWindow.setCurrentAttachmentList(); 其中subFrame为iframe setCurrentAttachmentList();为自定义函数
<SCRIPT LANGUAGE="JavaScript"><!--function ResizeToFit(){ var imgWidth; var imgHeight; if (document.imgLarge && document.imgLarge.complete) { imgWidth = document.imgLarge.width + 20; imgHeight = document.imgLarge.height + 115; window.resizeTo(imgWidth,imgHeight); }}//--&g ...
Event.observe(element, eventName, handler[, useCapture = false]) 在 DOM 元素上注册事件处理程序。 重要提示 首先,如果你曾经使用过 HTML 事件属性(如 <body onload="return myFunction()">)或 DOM Level-0 的事件属性(如 window.onload = myFunct ...
把window.close()换成top.close(),就可以了,很好用哦。
function getEvent(){   if(document.all)   {return window.event;//如果是ie   }   func=getEvent.caller;   while(func!=null)   {   var arg0=func.arguments[0];   if(arg0)   {  if((arg0.constructor==Event || arg0.constructor ==MouseEvent)   ||(typeof(arg0)=="object" && arg0.preventDefault & ...
<div style="overflow:hidden">显示的内容</div>
在firefox下使用css中的cursor:hand;并不能实现我们想要的效果,把cursor:hand 替换成cursor:pointer;就可以实现我们想要的效果了;
提示:上传数据时用的文本编辑器,所以用  <s:property value="newsContent" /> 这样的方法输出,会连同html标签一起输出出来,但这并不是我想要的结果,我的要求是把样式输出出来,解决方法如下: (我是一个初学者,把自己的一点小小总结写在这里,希望能对和我遇到同样问题的人,有一点帮助)   <s:iterator value="list" id="model" status="index">      <div class="newsdiv& ...
JS部分   $(function () { $(".newscontent").each(function () {  var content = $.trim($(this).text());  var contentlength = $.trim($(this).text()).length; if (contentlength > 2000) {   content = $(this).text(content.substring(0, 2000) + "...");  }  $(".newscontent").val ...
<table class="labeltable_middle_table" width="100%"              height="100%" cellpadding="0" cellspacing="0" border="0">              <s:iterator value="customerMessageInfo" id="model"               status=&quo ...
第一种情况: <script type="text/javascript"> function unChecked(){ document.getElementById("allinfo").checked=false; } </script>     <input type="radio" name="productNews.productStatus"  value="所有信息"         checked="checked" ...
<form action="affairDynamic!newsQuery" method="post"             id="newsForm">            <table class="labeltable_middle_table" width="100%"              height="100%" cellpadding="0&quo ...
Global site tag (gtag.js) - Google Analytics