Changeset 15076 for extensions/LLGBO2/js
- Timestamp:
- May 17, 2012, 8:38:07 PM (12 years ago)
- Location:
- extensions/LLGBO2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/js/jquery_llgboframeresize.js
r14421 r15076 1 1 // LLGBO frame resize 2 jQuery(document).ready(function($){ 3 $("#theMainImage").load(function(){ 4 var FrmHeight = parseInt(this.height); 5 var FrmWidth = parseInt(this.width); 6 var FrmLastBorder = 0; 7 var gboid = document.getElementById("gbo") 8 if (gboid) 9 {for ( i=1; i<32; i=i+2 ) 10 {var tgname = "llgboframe"+(i); 11 var FrmS = document.getElementById(tgname); 12 if (FrmS) 13 { 14 FrmHeight = FrmHeight + (FrmLastBorder * 2); 15 FrmWidth= FrmWidth + (FrmLastBorder * 2); 16 FrmS.style.height = FrmHeight+"px"; 17 FrmS.style.width = FrmWidth+"px"; 18 FrmLastBorder = parseInt(FrmS.style.borderWidth); 19 } 20 } 21 FrmHeight = FrmHeight + (FrmLastBorder * 2); 22 FrmWidth = FrmWidth + (FrmLastBorder * 2); 23 gboid.style.height = FrmHeight+"px"; 24 gboid.style.width = FrmWidth+"px"; 2 jQuery(document).ready(function(jQuery){ 3 jQuery("#theMainImage").load(function(){LlgboFr_Resize();}); 4 jQuery(window).resize(function(){ LlgboFr_Resize(); }); 5 }); 6 var LlgboFr_Resize = function () { 7 var MainImg = jQuery("img#theMainImage").get(0); 8 var nFrH = parseInt(MainImg.height); 9 var nFrW = parseInt(MainImg.width); 10 var FrLstBdr = 0, i = 0; 11 var elGbo = jQuery("div#llgbo"); 12 if (elGbo.get(0)) { 13 for ( i=1; i<32; i=i+2 ) 14 {var Fr = jQuery("div#llgboframe"+(i)); 15 var frbdr = 0; 16 if (Fr.get(0)) { 17 frbdr = parseInt(Fr.css('border-left-width')); 18 nFrH = nFrH + FrLstBdr ; 19 nFrW = nFrW + FrLstBdr ; 20 Fr.css("height", (nFrH) + "px"); 21 Fr.css("width", (nFrW) + "px");} 22 FrLstBdr = (frbdr * 2); 25 23 } 26 }); 27 }); 28 24 elGbo.css("width", (nFrW + FrLstBdr) + "px"); 25 elGbo.css("height", (nFrH + FrLstBdr) + "px"); 26 } 27 } -
extensions/LLGBO2/js/jquery_llgbotip.js
r14421 r15076 1 jQuery(document).ready(function( $){1 jQuery(document).ready(function(jQuery){ 2 2 /* CONFIG */ 3 3 // these 2 variables determine popup's gap from the cursor … … 11 11 12 12 /* END CONFIG */ 13 $("#theMainImage").mouseover(function(){13 jQuery("#theMainImage").mouseover(function(){ 14 14 // tooltip IMG title remove 15 15 MainTitle = this.title; 16 16 this.title =""; 17 17 }); 18 $("#theMainImage").mouseout(function(){18 jQuery("#theMainImage").mouseout(function(){ 19 19 // tooltip IMG title restaure 20 20 this.title = MainTitle ; 21 21 }); 22 22 23 $("area,a").mouseover(function(e){24 MainTitle = $("#theMainImage").attr("title");25 $("#theMainImage").attr("title",""); // for IE23 jQuery("area,a").mouseover(function(e){ 24 MainTitle = jQuery("#theMainImage").attr("title"); 25 jQuery("#theMainImage").attr("title",""); // for IE 26 26 this.t = this.title; 27 27 // llgbo conf … … 41 41 this.tt += "<p id="+pid+">"+ val[i]+"</p>";} 42 42 } 43 $("body").append("<div id='toolTip'>"+this.tt+"</div>");43 jQuery("body").append("<div id='toolTip'>"+this.tt+"</div>"); 44 44 45 MyTT = $("#toolTip");45 MyTT = jQuery("#toolTip"); 46 46 if (this.id == "Rules") 47 47 { MyTT.css( {'border-color' : '#c92'});} 48 48 if (this.id == "RulesEx") 49 49 { MyTT.css( {'border-color' : '#d3fed2'}) 50 $("#toolTip #title").css( {'color' : '#d3fed2'}); }50 jQuery("#toolTip #title").css( {'color' : '#d3fed2'}); } 51 51 52 52 updateXY(e); … … 56 56 }); 57 57 58 $("area,a").mouseout(function(e){58 jQuery("area,a").mouseout(function(e){ 59 59 if (this.activate =='ok') // mouseout without mouseover we keep the right title 60 60 { this.title = this.t; 61 $("#toolTip")61 jQuery("#toolTip") 62 62 .fadeOut("slow") 63 63 .remove(); 64 $("#theMainImage").attr("title",MainTitle); // for IE64 jQuery("#theMainImage").attr("title",MainTitle); // for IE 65 65 } 66 66 }); 67 $("area,a").mousemove(function(e){67 jQuery("area,a").mousemove(function(e){ 68 68 updateXY(e); 69 69 }); 70 70 var updateXY = function(e) { 71 71 var xLeft,xCord; 72 MyTT = $("#toolTip");72 MyTT = jQuery("#toolTip"); 73 73 var wT = MyTT.width() + 6 /* border */+ xGap; 74 74 var hT = MyTT.height() + 6 /* border */+ yGap;
Note: See TracChangeset
for help on using the changeset viewer.