Changeset 15076 for extensions/LLGBO2/js/jquery_llgbotip.js
- Timestamp:
- May 17, 2012, 8:38:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.