Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- instanceProto.onCreate = function()
- {
- this.elem = document.createElement("iframe");
- this.elem.src=this.properties[1];
- this.elem.id=this.uid;
- var widthfactor = this.width > 0 ? 1 : -1;
- var heightfactor = this.height > 0 ? 1 : -1;
- this.elem.setAttribute("id",this.properties[3]);
- this.elem.style.cssText = this.properties[2];
- this.elem.style.cssText= this.elem.style.cssText +"-webkit-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
- +"deg);"+
- "-moz-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
- +"deg);"+
- "-o-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
- +"deg);"+
- "-ms-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
- +"deg);";
- this.elem.width = Math.round(this.elem.width);
- this.elem.height = Math.round(this.elem.height);
- this.elem.x = Math.round(this.elem.x);
- this.elem.y = Math.round(this.elem.y);
- jQuery(this.elem).appendTo("body");
- if (this.properties[0] === 0)
- {
- jQuery(this.elem).hide();
- this.visible = false;
- }
- if(this.properties[4] == 0)
- this.elem.scrolling = "auto";
- if(this.properties[4] == 1)
- this.elem.scrolling = "yes";
- if(this.properties[4] == 2)
- this.elem.scrolling = "no";
- var onchangetrigger = (function (self) {
- return function() {
- self.runtime.trigger(cr.plugins_.HTML_iFrame.prototype.cnds.OnTextChanged, self);
- };
- })(this);
- this.elem.onclick = (function (self) {
- return function() {
- self.runtime.trigger(cr.plugins_.HTML_iFrame.prototype.cnds.OnClicked, self);
- };
- })(this);
- this.elem.ondblclick = (function (self) {
- return function() {
- self.runtime.trigger(cr.plugins_.HTML_iFrame.prototype.cnds.OnDoubleClicked, self);
- };
- })(this);
- /*this.elem.onload = (function (self) {
- return function() {
- self.runtime.trigger(cr.plugins_.HTML_iFrame_Pode.prototype.cnds.OnLoaded, self);
- };
- })(this);*/
- /**/
- this.updatePosition();
- this.runtime.tickMe(this);
- this.currentURL = this.properties[1];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement