You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
320 B
JavaScript
18 lines
320 B
JavaScript
7 years ago
|
function ImageBox(config){
|
||
|
|
||
|
var self = this;
|
||
|
self.id = config.id;
|
||
|
|
||
|
// Create DOM
|
||
|
self.dom = new Image();
|
||
|
self.dom.className = "object";
|
||
|
self.dom.src = config.src;
|
||
|
|
||
|
// Customize
|
||
|
_configText(config, self.dom);
|
||
|
|
||
|
// Add & Remove
|
||
|
self.add = function(){ _add(self); };
|
||
|
self.remove = function(){ _remove(self); };
|
||
|
|
||
|
}
|