随笔分类 -  javascript&jquery&plugins

摘要:【ddSlick】http://designwithpc.com/Plugins/ddSlickHow to use with JSON dataInclude the plugin javascript file along with jquery: Create an empty placeholder for the custom drop down: eg:Get the drop down options (JSON Data) to be binded to plugin://Dropdown plugin datavar ddData = [ { tex... 阅读全文
posted @ 2013-11-05 09:08 xmily 阅读(979) 评论(1) 推荐(0)
摘要:引用 :http://js8.in/558.htmlonbeforeunload是window的一个事件,目前Firefox,IE都支持,主要用来提示用户是否真的要离开该页面,通常在一些比较重要的数据提交之前,防止用户误操作导致数据丢失。典型的应用如gmail中,在写邮件的时候,如果刷新页面或者关闭页面,会出现提示。但是在IE下点击一些a标签时,也会触发onbeforeunload事件。并且href中写javascript:void(0)也不行,而在Firefox中不会出现类似的情况。于是查资料对onbeforeunload事件重新认识了一下:a标签触发事件的顺序onclick、onbefor 阅读全文
posted @ 2013-06-13 11:22 xmily 阅读(204) 评论(0) 推荐(0)
摘要:1、默认配置下ckeditor切换到源代码模式时,代码会按ckeditor默认的设置进行格式化,可以用下面的方法来按你的要求进行格式化:CKEDITOR.on('instanceReady', function(ev) { with (ev.editor.dataProcessor.writer) { setRules("p", { indent: true, breakBeforeOpen: true, breakAfterOpen: true, breakBeforeClose: true, breakAfterClose: true }); setRu 阅读全文
posted @ 2013-06-10 02:23 xmily 阅读(2770) 评论(0) 推荐(0)
摘要:http://www.ckplayer.com/ 阅读全文
posted @ 2013-06-08 17:40 xmily 阅读(229) 评论(0) 推荐(0)