随笔分类 -  JavaScript

梅花雨日历控件3.0
摘要:梅花雨日历控件3.0的JS源码以及说明文件下载http://www.meizz.com/web/download/Web_Calendar_30.rar出处:http://community.csdn.net/Expert/topic/3398/3398406.xml?temp=.9305078CSDN文档介绍http://dev.csdn.net/develop/article/15/15245... 阅读全文

posted @ 2010-05-26 21:21 Ben zhang 阅读(210) 评论(0) 推荐(0)

JS各种各样的拖动效果
摘要:<html> <head><title>拖动效果函数演示 by Longbill.cn</title> <style> body { font-size:12px; color:#333333; border : 0px solid blue; } div { position : absolute; background-co... 阅读全文

posted @ 2010-05-24 22:56 Ben zhang 阅读(190) 评论(0) 推荐(0)

javaScript技巧集合----事件方法对照
摘要:事件源对象 event.srcElement.tagName event.srcElement.type捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey事件返回值 event.retur... 阅读全文

posted @ 2010-05-24 22:55 Ben zhang 阅读(151) 评论(0) 推荐(0)

常用的JavaScript代码
摘要:(1).在打开的子窗口刷新父窗口的代码里如何写?window.opener.location.reload()(2).如何设定打开页面的大小<body onload="top.resizeTo(300,200);">打开页面的位置<body onload="top.moveBy(300,200);">(3).在页面中如何加入不是满铺的背景图片,拉动页面时背景图不动 <... 阅读全文

posted @ 2010-05-24 22:54 Ben zhang 阅读(208) 评论(0) 推荐(0)

JavaScript图片上传预览效果
摘要:片上传预览是一种在图片上传之前对图片进行本地预览的技术。使用户选择图片后能立即查看图片,而不需上传服务器,提高用户体验。但随着浏览器安全性的提高,要实现图片上传预览也越来越困难。不过群众的智慧是无限的,网上已经有很多变通或先进的方法来实现。例如ie7/ie8的滤镜预览法,firefox 3的getAsDataURL方法。但在opera、safari和chrome还是没有办法实现本地预览,只能通过后... 阅读全文

posted @ 2010-05-24 22:15 Ben zhang 阅读(266) 评论(0) 推荐(0)

图片自动播放器代码,下面有1,2,3,4 的那个
摘要:<html><body><script>/**************************************************名称: 图片轮播类创建时间: 2007-11-12示例: 页面中已经存在名为imgPlayer(或者别的ID也行)的节点. PImgPlayer.addItem( "test", "http://www.pomoho.co... 阅读全文

posted @ 2010-05-24 22:03 Ben zhang 阅读(261) 评论(0) 推荐(0)

导航