
jquery
lmss82
这个作者很懒,什么都没留下…
展开
-
jQuery FCKEditor Plugin的使用。
Usage Method 1: replacing ALL textareas in a page with THE SAME settings $(function(){ $(textarea).fck({path: /path/to/fck/directory/}); }); Method 2: replacing SOME textare原创 2009-03-17 13:14:00 · 962 阅读 · 0 评论 -
解决一个页面有两个FCKeditor时,无法使用FCKeditorAPI.GetInstance问题
添加以下代码:var __fckEditorInstance_ = new Array(); function FCKeditor_OnComplete( editorInstance ) { __fckEditorInstance_[editorInstance.Name] = editorInstance; } func转载 2009-03-17 14:17:00 · 3432 阅读 · 3 评论 -
thickbox 和jquery form 一起使用出现的问题。
通过thickbox产生一个登陆框,有非常棒的效果。随之产生一个问题无法使用jquery from,因为无法绑定事件,登陆框是异步加载的。 后来发现thickbox加载完后会执行一个函数tb_init,所以我在tb_init函数里加了一个函数addHandlers,到此问题解决。function tb_init(domChunk){ addHandlers(); $(dom原创 2009-03-17 20:17:00 · 866 阅读 · 0 评论 -
在页面加载时使用thickbox的遮罩效果。
类似的效果在58分类信息上见到过,当你想发布信息但没有登陆时,它提示你登陆并弹出一个半透明的登陆框。 半透明的登陆用thickbox很容易就可以做到,但如何让它弹出来呢? 第一步:par="0" href="tip.html?id=&height=130&width=400&modal=true"> 第二步 判断是否登陆,如果没有登陆就执行tb_show("",url原创 2009-03-17 20:28:00 · 1110 阅读 · 0 评论 -
用Google提供的JQUERY库文件。
可以提高加载速度,文件位于Google的 CDN上。 or example:http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js">> $(document).ready(function() { // This is more like it! });原创 2010-02-25 11:47:00 · 555 阅读 · 0 评论 -
Code Playground
Code Playground http://code.google.com/apis/ajax/playground/?exp=libraries#jquery 在这里可以方便调试和编写JS.原创 2010-02-25 11:49:00 · 1009 阅读 · 0 评论