//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
//#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