![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端 Javascript jQuery
iteye_16256
这个作者很懒,什么都没留下…
展开
-
按下回车表示确定提交
<body onkeydown="if (event.keyCode==13) {document.all.button2.click()}"> 下面的五种方法都可以帮你解决这种问题1.<script language=javascript>function document.onkeydown(){ if (event.keyCode ==...原创 2010-08-12 16:46:02 · 96 阅读 · 0 评论 -
js urlencode , encodeURIComponent
js 对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。 例如:<script l...原创 2011-02-24 11:36:48 · 104 阅读 · 0 评论 -
给Dreamweaver安装jQuery插件
给Dreamweaver安装jQuery插件 http://ywj-316.iteye.com/blog/722948 查看原创 2010-08-08 11:23:45 · 130 阅读 · 0 评论 -
javascript 框架的跳转
(1)window.frames.right.location.href="Default.aspx";(2)window.open("Default.aspx","right");(3)<script>window.parent.location.href='/HR/index.html';</script>原创 2010-08-04 22:24:26 · 72 阅读 · 0 评论 -
js 屏蔽复制
Background 内容原创 2010-07-26 21:46:54 · 107 阅读 · 0 评论 -
js获得select选中的值 JQuery获得select选中的值
用JQuery写的:Jquery获得select下拉选项option的值:<script type"text/javascript">$(document).ready(function() {$("#selProv").change(function(){alert( $("#selProv option:selected").text() );}...原创 2011-01-05 14:43:36 · 111 阅读 · 0 评论 -
js 图片轮换 图片浏览
现在吗,在下边原创 2010-11-01 16:29:23 · 74 阅读 · 0 评论 -
js 读取Request 值
function Request2(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); ...原创 2011-05-20 17:32:59 · 158 阅读 · 0 评论 -
超级好用的弹出层
红色的地方都是可变的,也可以自己换边框的图片,总是就是超级好用啊,主要是兼容性好啊 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http...原创 2010-10-12 19:16:59 · 114 阅读 · 0 评论 -
jQuery的时间控件 js时间控件
20:16 2010-9-13本人今天查询火车票无意间看到了个时间控件感觉很好就弄了下来呵呵,感谢那些写这东东的人这个控件要求html页面不是utf-8的否则会出现乱码,呵呵demo下载在下面...原创 2010-09-13 20:44:12 · 79 阅读 · 0 评论 -
html 两窗体传值
首先a页面<html><head><title>无标题文档</title><script type="text/javascript">function aa (){//window.window.showModelDialog('bb.html',window,'width=400,height=...原创 2010-09-07 09:59:04 · 100 阅读 · 0 评论 -
jQuery 省市联动
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>..原创 2010-08-26 09:46:06 · 97 阅读 · 0 评论 -
javascript window.open()弹出窗口参数详解
<script type="text/javascript"><!--window.open ('test.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')/...原创 2010-08-17 19:58:51 · 137 阅读 · 0 评论 -
jQuery 实现checkbox的全选,全部选
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>&原创 2010-08-17 15:58:29 · 77 阅读 · 0 评论 -
javascript 兼容ie和火狐 safari 的回车事件扑捉
判断是否是ie: var isIE = 0/*@cc_on+1@*/; <script type="text/javascript"> <!-- if(document.addEventListener){//如果是Firefox document.addEventListener("keypress",fireFoxHa...原创 2010-08-13 10:29:15 · 106 阅读 · 0 评论 -
jQuery 回车提交
$(window).keyup(function(event){ if(event.keyCode == 13) { $("#1009100").click(); } }); 1.$("#input_id").keydown(function(event){ event.keyCode==13 &am...原创 2010-08-13 09:51:10 · 76 阅读 · 0 评论 -
FLASH和DIV的优先级
广告,两个动画,FLASH总挡住DIV,用这个办法把它优先级放到最下边.FLASH优先级比DIV高, 所以会挡住DIV的.在<object>里加入这个参数,将FLASH置于底层,<param name="wmode" value="Opaque">wmode的三个值"Window" 在 Web 页上用影片自己的矩形窗口来播放应用程序,并且始终位于最顶层。"Opa...原创 2012-06-15 17:13:00 · 204 阅读 · 0 评论