Advertisement
Guest User

C2ejecta_issues_THS_1

a guest
Sep 10th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. instanceProto.onCreate = function()
  2.     {
  3.         this.elem = document.createElement("iframe");
  4.         this.elem.src=this.properties[1];
  5.         this.elem.id=this.uid;
  6.         var widthfactor = this.width > 0 ? 1 : -1;
  7.         var heightfactor = this.height > 0 ? 1 : -1;
  8.         this.elem.setAttribute("id",this.properties[3]);
  9.         this.elem.style.cssText = this.properties[2];
  10.         this.elem.style.cssText= this.elem.style.cssText +"-webkit-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
  11.                                         +"deg);"+
  12.                                     "-moz-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
  13.                                         +"deg);"+
  14.                                     "-o-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
  15.                                         +"deg);"+
  16.                                     "-ms-transform:rotate("+ this.angle * widthfactor * heightfactor*180/3.1416
  17.                                         +"deg);";
  18.         this.elem.width = Math.round(this.elem.width);
  19.         this.elem.height = Math.round(this.elem.height);
  20.         this.elem.x = Math.round(this.elem.x);
  21.         this.elem.y = Math.round(this.elem.y);
  22.         jQuery(this.elem).appendTo("body");
  23.         if (this.properties[0] === 0)
  24.         {
  25.             jQuery(this.elem).hide();
  26.             this.visible = false;
  27.         }
  28.         if(this.properties[4] == 0)
  29.             this.elem.scrolling = "auto";
  30.         if(this.properties[4] == 1)
  31.             this.elem.scrolling = "yes";
  32.         if(this.properties[4] == 2)
  33.             this.elem.scrolling = "no";
  34.         var onchangetrigger = (function (self) {
  35.             return function() {
  36.                 self.runtime.trigger(cr.plugins_.HTML_iFrame.prototype.cnds.OnTextChanged, self);
  37.             };
  38.         })(this);
  39.         this.elem.onclick = (function (self) {
  40.             return function() {
  41.                 self.runtime.trigger(cr.plugins_.HTML_iFrame.prototype.cnds.OnClicked, self);
  42.             };
  43.         })(this);
  44.         this.elem.ondblclick = (function (self) {
  45.             return function() {
  46.                 self.runtime.trigger(cr.plugins_.HTML_iFrame.prototype.cnds.OnDoubleClicked, self);
  47.             };
  48.         })(this);
  49.         /*this.elem.onload = (function (self) {
  50.             return function() {
  51.                     self.runtime.trigger(cr.plugins_.HTML_iFrame_Pode.prototype.cnds.OnLoaded, self);
  52.             };
  53.         })(this);*/
  54.         /**/
  55.         this.updatePosition();
  56.         this.runtime.tickMe(this);
  57.         this.currentURL = this.properties[1];
  58.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement