资源简介
js源代码弹出框,可是页面,可是控件!精美至极,不限制浏览器,效果胜过C/S软件效果,源代码,可自行修改升级!!!!!!!!

代码片段和文件信息
#!/usr/bin/env python
“““
Used to combine the different parts of GreyBox.
- Python 2.4 required
- Java 1.4+ required
- Dojo‘s javascript compressor (http://dojotoolkit.org/docs/compressor_system.html). Place it under compression_lib/custom_rhino.jar
“““
import os sys shutil
from compression_lib import AJS_minify
if __name__ == ‘__main__‘:
args = sys.argv
if len(args) < 2:
print “““
Usage is:
python combiner.py [full|gallery|window]
Example usage:
python combiner.py full
The files will be store in greybox_dist/* depending on the dist. type
“““
sys.exit(0)
type = args[1]
output_dir = ‘greybox‘
##
# Config file list
#
js = []
css = []
static = []
append = lambda l x: l.append(‘greybox_source/%s‘ % x)
def appendbase():
append(js ‘base/base.js‘)
append(js ‘auto_deco.js‘)
append(css ‘base/base.css‘)
append(static ‘base/indicator.gif‘)
append(static ‘base/loader_frame.html‘)
def appendSet():
append(js ‘set/set.js‘)
append(css ‘set/set.css‘)
append(static ‘set/next.gif‘)
append(static ‘set/prev.gif‘)
def appendGallery():
append(js ‘gallery/gallery.js‘)
append(css ‘gallery/gallery.css‘)
append(static ‘gallery/g_close.gif‘)
def appendWindow():
append(js ‘window/window.js‘)
append(css ‘window/window.css‘)
append(static ‘window/header_bg.gif‘)
append(static ‘window/w_close.gif‘)
appendbase()
if type == ‘full‘:
appendGallery()
appendSet()
appendWindow()
elif type == ‘gallery‘:
appendGallery()
appendSet()
elif type == ‘window‘:
appendWindow()
else:
sys.exit(‘Uknown type‘)
print ‘Follwoing styles are used:‘
for style in css:
print ‘ %s‘ % style
print ‘Follwoing javascript is used:‘
for script in js:
print ‘ %s‘ % script
##
# Copy the files
#
try:
shutil.rmtree(output_dir)
except:
pass
os.mkdir(output_dir)
def concatFiles(f_list):
data = []
for f in f_list:
data.append(open(f ‘r‘).read())
return ‘\n\n‘.join(data)
def copyFiles(f_list):
for f in f_list:
shutil.copy(f output_dir)
copyFiles(static)
fp = open(‘%s/%s‘ % (output_dir ‘gb_styles.css‘) ‘w‘)
fp.write(concatFiles(css))
fp.close()
print ‘Compressed styles in %s‘ % (‘greybox/gb_styles.css‘)
##
# Concat js
#
fp = open(‘%s/%s‘ % (output_dir ‘gb_scripts_tmp.js‘) ‘w‘)
fp.write(concatFiles(js))
fp.close()
AJS_minify.AJS_SRC = ‘greybox_source/base/AJS.js‘
AJS_minify.AJS_MINI_SRC = ‘greybox/AJS_tmp.js‘
files = [‘greybox/gb_scripts_tmp.js‘ ‘greybox_source/base/AJS_fx.js‘ ‘static_files/help.js‘]
code_analyzer = AJS_minify.ExternalCodeAnalyzer(files)
composer = AJS_minify.AjsComposer(code_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-03-13 12:05 GreyBox_v5_5
文件 1511 2007-05-08 12:20 GreyBox_v5_5\about.html
目录 0 2006-11-23 01:17 GreyBox_v5_5\adobe_images
文件 165140 2006-11-23 01:16 GreyBox_v5_5\adobe_images\nav_buttons.psd
文件 4866 2006-12-27 19:12 GreyBox_v5_5\advance_usage.html
文件 3808 2007-05-08 12:43 GreyBox_v5_5\combiner.py
文件 2295 2007-05-08 12:48 GreyBox_v5_5\compressing_greybox.html
目录 0 2007-05-08 12:50 GreyBox_v5_5\compression_lib
文件 7126 2007-05-08 12:40 GreyBox_v5_5\compression_lib\AJS_minify.py
文件 2 2006-11-26 22:22 GreyBox_v5_5\compression_lib\__init__.py
文件 2920 2007-01-27 11:12 GreyBox_v5_5\examples.html
目录 0 2008-01-29 00:43 GreyBox_v5_5\greybox
文件 10652 2007-05-08 12:43 GreyBox_v5_5\greybox\AJS.js
文件 3156 2007-05-08 12:43 GreyBox_v5_5\greybox\AJS_fx.js
文件 11771 2007-05-08 12:43 GreyBox_v5_5\greybox\gb_sc
文件 2302 2007-05-08 12:43 GreyBox_v5_5\greybox\gb_st
文件 541 2007-05-08 12:43 GreyBox_v5_5\greybox\g_close.gif
文件 1188 2007-05-08 12:43 GreyBox_v5_5\greybox\header_bg.gif
文件 8238 2007-05-08 12:43 GreyBox_v5_5\greybox\indicator.gif
文件 2084 2007-05-08 12:43 GreyBox_v5_5\greybox\loader_fr
文件 528 2007-05-08 12:43 GreyBox_v5_5\greybox\next.gif
文件 525 2007-05-08 12:43 GreyBox_v5_5\greybox\prev.gif
..A.SH. 10752 2008-01-29 00:43 GreyBox_v5_5\greybox\Thumbs.db
文件 74 2007-05-08 12:43 GreyBox_v5_5\greybox\w_close.gif
目录 0 2007-01-29 20:29 GreyBox_v5_5\greybox_source
文件 2465 2006-11-28 00:18 GreyBox_v5_5\greybox_source\auto_deco.js
目录 0 2007-01-29 20:50 GreyBox_v5_5\greybox_source\ba
文件 39025 2007-01-29 14:16 GreyBox_v5_5\greybox_source\ba
文件 5317 2007-01-28 13:34 GreyBox_v5_5\greybox_source\ba
文件 473 2006-12-19 13:47 GreyBox_v5_5\greybox_source\ba
............此处省略34个文件信息
- 上一篇:nginx 10w并发优化项
- 下一篇:SPI FLASH 仿真模型
相关资源
- jQuery ajax实现简单登录验证
- Ajax定时读取数据库(源代码发布)
- 仿126 网易 163 邮箱 界面
- AJAX下载
- 基于ajax的web聊天室
- Json.net
- 清华大学计算机系网络课程之模式识
- Ajax访问dataSnap Rest服务器
- AjaxControlToolkit4.5
- 用ajax实现新闻发布系统
- 校友信息管理系统,毕业论文
- easyui+ajax+json+servlet实现用户登录注册
- AJax基础教程.pdf
- OA办公系统源代码+数据库
- e拍在线拍卖系统完整源代码及数据库
- 当当网----全部代码
- 基于AJAX方式实现的STM32H7_WebServer网页
- ajax异步获取数据库数据绘制Echarts图表
- AjaxControlToolKit Ajax扩展控件
- 尚硅谷佟刚ajax视频配套源码
- jqGrid dialog
- 北大青鸟.项目案例—使用Ajax技术改进
- dtree+ajax异步加载树
- treetable + ajax 后台取数据的demo
- SSM前后台分离项目
- 网上购物商城ajax开发技术
- SSM电子商城毕业设计适合学习SSM框架
- souyun搜云、ajax\\sgk社工库源码
- 尚硅谷Ajax视频全部源码
- extjs漂亮简洁的登录界面
评论
共有 条评论