Gallary_JS

//SCRIPT_START
//#include "atom.js"
function _gallary( arrPhotoPath , doc)
{
    this.arrPhotoPath = arrPhotoPath;
    this.doc = doc?doc:document;
    this.ndGallary = this.doc.createElement('div');
    SysTool.addProperty(this.ndGallary.style,["border@1px solid rgb(128,128,128)","backgroundColor@rgb(231,24,105)","width@120px","height@80px"]);
    this.ndImgContainer = this.doc.createElement('div');
    this.ndStartPauseButton = this.doc.createElement('div');
    this.ndStopButton = this.doc.createElement('div');
    this.ndPrevButton = this.doc.createElement('div');
    this.ndNextButton = this.doc.createElement('div');
    this.ndCustomButton = this.doc.createElement('div');
    try
    {
       if(!SysTool.isArray(arrPhotoPath))
         throw "Runtime Error: _gallary(arrPhotoPath) /n arrPhotoPath is not an Array.";
    }
    catch(eMain)
    {
        alert(eMain);
        return;
    }
    this.GetGallaryNode = function()
    {
           return this.ndGallary;
    }
    this.SetButtons = function( arrButtons )
    {
        var arrOneBtn = new Array();
        var strExE = '';
        var ndTmp;
        for( var i=0; i<arrButtons.length; i++ )
        {
              var arrTmp = new Array();
             arrOneBtn = arrButtons[i];
             strExE = "this.nd"+arrOneBtn[0];
             for( var i=1; i<arrOneBtn.length; i++ )
                    arrTmp.push(arrOneBtn[i]);
             SysTool.addProperty(ndTmp, arrTmp);
        }
    }
}
//SCRIPT_END
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值