ThickBox的一个小问题

六月 2, 2009

(0) 评论

将Jquery 升级为最新版后,发觉ThickBox的多图显示即Gallery相册功能受到影响.
其原因ThickBox用的是jquery 1.1.3.1版本, 与现在的选择器不同.
多图显示是以rel=’xx’来归类的.
旧的方法:[@rel]
新的方法:[rel]

修改方法:
thickbox.js

//约79行,将其替换
//TB_TempArray = $("a[@rel="+imageGroup+"]").get();
TB_TempArray = $("a[rel="+imageGroup+"]").get();

分类: Ajax

标签: , , , ,

顶部标签加了一个小效果

六月 1, 2009

(0) 评论

原来的太单调了,加了一个小效果

奉上代码(需要配上jquery,jquery-easing):

html:

<div id="menu_wrap">	
<div id="menu">    	
<ul>
	<li><a href="home.html">首页</a></li>
	<li><a href="portfolio.html">作品</a></li>	
	<li title="current page"><a href="gallery.html">相册</a></li>
	<li><a href="forum.html">论坛</a></li>	
</ul>        
</div>
</div>

查看全文>>

分类: Ajax

标签: ,

用tinymce替换extjs自带的htmleditor

四月 28, 2009

(0) 评论

extjs 自带的 htmleditor 功能比较少,不方便修改和扩展.而且有一些小BUG

Online demo

Sources

Usage example:

...
items: [
{
	xtype: "tinymce",
	tinymceSettings: {
		theme : "advanced",
		plugins: "safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : false,
		extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
		template_external_list_url : "example_template_list.js"
	}
}
]
...

分类: Ajax

标签: , ,

几个Jquery的slide show插件

四月 28, 2009

(0) 评论

分类: Ajax

标签: ,

Google 搜索提示

一月 23, 2007

(0) 评论

今天发现Google.cn加了新的功能,用起来不错

google_search_tip

以后找东西可以看一下,找些相关关键字可以得到更多结果

google_search_tip2

分类: Ajax

标签: , ,