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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.