资源简介

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_scripts.js

     文件       2302  2007-05-08 12:43  GreyBox_v5_5\greybox\gb_styles.css

     文件        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_frame.html

     文件        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\base

     文件      39025  2007-01-29 14:16  GreyBox_v5_5\greybox_source\base\AJS.js

     文件       5317  2007-01-28 13:34  GreyBox_v5_5\greybox_source\base\AJS_fx.js

     文件        473  2006-12-19 13:47  GreyBox_v5_5\greybox_source\base\base.css

............此处省略34个文件信息

评论

共有 条评论