Changeset 15076 for extensions/LLGBO2/js


Ignore:
Timestamp:
May 17, 2012, 8:38:07 PM (12 years ago)
Author:
gbo
Message:

2.4.B Compliance with Theme Stripped and plugin Piwishak

Location:
extensions/LLGBO2/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/js/jquery_llgboframeresize.js

    r14421 r15076  
    11// 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";
     2jQuery(document).ready(function(jQuery){
     3        jQuery("#theMainImage").load(function(){LlgboFr_Resize();});   
     4        jQuery(window).resize(function(){ LlgboFr_Resize(); });
     5});
     6var 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);
    2523                        }
    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($){ 
     1jQuery(document).ready(function(jQuery){ 
    22        /* CONFIG */           
    33                // these 2 variables determine popup's gap from the cursor             
     
    1111       
    1212        /* END CONFIG */       
    13         $("#theMainImage").mouseover(function(){
     13        jQuery("#theMainImage").mouseover(function(){
    1414  //  tooltip IMG title remove   
    1515                MainTitle = this.title;
    1616                this.title ="";
    1717                });     
    18         $("#theMainImage").mouseout(function(){
     18        jQuery("#theMainImage").mouseout(function(){
    1919  //   tooltip IMG  title restaure       
    2020                this.title = MainTitle ;
    2121                });     
    2222               
    23         $("area,a").mouseover(function(e){     
    24                         MainTitle = $("#theMainImage").attr("title");
    25                 $("#theMainImage").attr("title",""); // for IE
     23        jQuery("area,a").mouseover(function(e){
     24                        MainTitle = jQuery("#theMainImage").attr("title");
     25                jQuery("#theMainImage").attr("title",""); // for IE
    2626                this.t = this.title;
    2727                 // llgbo conf
     
    4141                                        this.tt += "<p id="+pid+">"+ val[i]+"</p>";}
    4242                                        }               
    43                         $("body").append("<div id='toolTip'>"+this.tt+"</div>");
     43                        jQuery("body").append("<div id='toolTip'>"+this.tt+"</div>");
    4444               
    45                     MyTT = $("#toolTip");
     45                    MyTT = jQuery("#toolTip");
    4646                        if (this.id == "Rules")
    4747                                        { MyTT.css( {'border-color' : '#c92'});}
    4848                    if (this.id == "RulesEx")
    4949                                { MyTT.css( {'border-color' : '#d3fed2'})
    50                                 $("#toolTip #title").css( {'color' : '#d3fed2'}); }
     50                                jQuery("#toolTip #title").css( {'color' : '#d3fed2'}); }
    5151               
    5252                        updateXY(e);
     
    5656                                });                     
    5757 
    58         $("area,a").mouseout(function(e){       
     58        jQuery("area,a").mouseout(function(e){ 
    5959                if (this.activate =='ok') // mouseout without mouseover we keep the right title
    6060                        { this.title = this.t;   
    61                                 $("#toolTip")
     61                                jQuery("#toolTip")
    6262                                .fadeOut("slow")
    6363                                .remove();
    64                                  $("#theMainImage").attr("title",MainTitle); // for IE
     64                                 jQuery("#theMainImage").attr("title",MainTitle); // for IE
    6565                                 }
    6666 });   
    67         $("area,a").mousemove(function(e){
     67        jQuery("area,a").mousemove(function(e){
    6868                updateXY(e);
    6969        });     
    7070            var updateXY = function(e) {
    7171                        var xLeft,xCord;
    72             MyTT = $("#toolTip");
     72            MyTT = jQuery("#toolTip");
    7373                        var wT = MyTT.width() + 6 /* border */+ xGap;
    7474                        var hT = MyTT.height() + 6 /* border */+ yGap;
Note: See TracChangeset for help on using the changeset viewer.