比较了两个....第1个功能比较多....第2个效果比较炫....
http://jquery.com/demo/thickbox/
http://www.doknowevil.net/litebox/
最后选中了第2个 先做到google 本来是打算做一个url list 随便用到哪个画面都可以.....不过发现比较难......
提示.....点图片的上面和下面能关闭....左右不行......第1个可以.....如果不在乎效果可以试试.....
先把附件解到html下......结构Proxomitron\html\litebox\js\litebox-1.0.js (直接用上面LINK里的原版的话 要自己改点东西 可以比对一下看我是改的哪里)
然后规则是
Code: Select all
[Patterns]
Name = "Images: Litebox add code 09.06.09 [ddandyy]"
Active = TRUE
URL = "$TST(hCT=*html)images.google."
Bounds = "<a\s*>"
Limit = 1024
Match = "*/imgres\?imgurl\=\1\&imgrefurl\=\2\&*"
Replace = "<a href="\1" rel="lightbox[example]">"
Name = "Images: Litebox JS and CSS 09.06.09 [ddandyy]"
Active = TRUE
Multi = TRUE
URL = "$TST(hCT=*html)images.google."
Limit = 10
Match = "</body>"
Replace = "<link rel="stylesheet" href="http://local.ptron/litebox/css/lightbox.css" type="text/css" media="screen" />"
"<script type="text/javascript" src="http://local.ptron/litebox/js/prototype.lite.js"></script>"
"<script type="text/javascript" src="http://local.ptron/litebox/js/moo.fx.js"></script>"
"<script type="text/javascript" src="http://local.ptron/litebox/js/litebox-1.0.js"></script>"
"</body>$STOP()"