<script type="text/javascript"> $(document).ready(function() { var events = new Array(); var imageAlign = "right"; var imageHeight = "22"; var imageWidth = "22"; events.push(["Karazhan|Kara","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Kar.gif"]); events.push(["Zul'Aman|ZA","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/ZA.gif"]); events.push(["Gruul","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/GL.gif"]); events.push(["Mag|Magtheridon","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Mag.gif"]); events.push(["Tempest|Eye|TK","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/TK.gif"]); events.push(["Serpentshrine|SSC","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/SSC.gif"]); events.push(["Hyjal|MH","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/MH.gif"]); events.push(["Kazzak|DLK","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/DLK.gif"]); events.push(["Doomwalker|DW","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/DW.gif"]); events.push(["Black|BT","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/BT.gif"]); events.push(["Sunwell|SW|SP","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/SP.gif"]); events.push(["Naxx","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Nax2.gif"]); events.push(["VoA|Archavon","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/VoA.gif"]); events.push(["CoA|OS|Obsidian|Sartharion","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/OS.gif"]); events.push(["EoE|Malygos","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/EoE.gif"]); events.push(["Ulduar","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/ulduar.gif"]); events.push(["ToC|of Crusader|he Crusader","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Crusader.gif"]); events.push(["TGC|Grand Crusader","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/GrandCrusader.gif"]); events.push(["birthday|Birthday","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/birthday.gif"]); events.push(["quest|Quest","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/quest.gif"]); events.push(["Unk|unk","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/unknown.gif"]); $("#tblMonthlyCalendarTable").find(".NormGridRow,.AltGridRow").each(function() { for (var j=0; j < events.length; j++ ) { if ($(this).html().match(events[j][0])) { var temp = "<img align='" + imageAlign + "' src='" + events[j][1]; temp += "'width='" + imageWidth + "' height='" + imageHeight + "'>"; $(this).html(temp + $(this).html()); } } }); }); </script>
<style type="text/css"> .sideCalendarTooltip {color:#ffcc00;} .sideCalendarMonthTitleContainer { height:10px; font-size:7pt; } .sideCalendarMonthTitle { background: #2d2d2d; color:#daca92; font-weight:bold; padding: 5px; border:0px; } .sideCalendarMonthTitle a:link { text-decoration:none; color:#daca92;} .iconWrap { height:16px; width:16px; } </style> <script type="text/javascript"> $(document).ready(function() { var events = new Array(); events.push(["Karazhan|Kara","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Kar.gif"]); events.push(["Zul'Aman|ZA","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/ZA.gif"]); events.push(["Gruul","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/GL.gif"]); events.push(["Mag|Magtheridon","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Mag.gif"]); events.push(["Tempest|Eye|TK","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/TK.gif"]); events.push(["Serpentshrine|SSC","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/SSC.gif"]); events.push(["Hyjal|MH","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/MH.gif"]); events.push(["Kazzak|DLK","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/DLK.gif"]); events.push(["Doomwalker|DW","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/DW.gif"]); events.push(["Black|BT","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/BT.gif"]); events.push(["Sunwell|SW|SP","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/SP.gif"]); events.push(["Naxx","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Nax2.gif"]); events.push(["VoA|Archavon","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/VoA.gif"]); events.push(["CoA|OS|Obsidian|Sartharion","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/OS.gif"]); events.push(["EoE|Malygos","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/EoE.gif"]); events.push(["Ulduar","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/ulduar.gif"]); events.push(["ToC|of Crusader|he Crusader","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Crusader.gif"]); events.push(["TGC|Grand Crusader","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/GrandCrusader.gif"]); events.push(["birthday|Birthday","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/birthday.gif"]); events.push(["Fun event|fun event","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/fun.gif"]); events.push(["quest|Quest","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/quest.gif"]); events.push(["Unk|unk","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/unknown.gif"]); /* ***************************** Don't change anything below this line! ***************************** */ // Main Calendar $(".CenterContentZone").find("#tblMonthlyCalendarTable").find(".NormGridRow,.AltGridRow").each(function() { addIcons($(this),"right",22,22); }); // Events Box $("a").each(function() { if ($(this).attr("title").match("details of this event on the Calendar")) { addIcons($(this).parent(),"right",22,22); } }); // Side Calendar (Mini) $(".LeftContentZone,.RightContentZone").find("#monthlyCalendarCalendarColumn").find("table:eq(0)").each(function() { try { $(this).find(".NormGridRow,.AltGridRow").each(function() { var evtTitle = "<div class='sideCalendarTooltip'>" + $(this).find("a").text().replace("'","'") + "</div>"; var divTitle = evtTitle + $(this).attr("title").replace("(","<br>("); $(this).attr("title","").mouseover(function(){ddrivetip(divTitle,'','240')}).mouseout(function(){hideddrivetip();}); $(this).html(evtTitle); // replace date contents with just the event, for addIcons function addIcons($(this),"right",16,16); $(this).removeClass("NormGridRow").removeClass("AltGridRow").unbind().addClass("iconWrap").children("div").remove(); $(this).css("border-width","0px").css("padding","0px 5px").css("margin","0px"); }); $(this).attr("title",""); $(this).find(".ContentBoxTitle").css("height","10px").css("font-size","7pt"); $(this).find("tr:gt(2)").find("td").css("min-width","22px").css("height","30px").css("font-size","8pt").css("align","center"); $(this).find("a:contains('Prev Month')").html("<"); $(this).find("a:contains('Next Month')").html(">"); $(this).find("table.ContentBoxTitle").each(function() { $(this).parent().addClass("sideCalendarMonthTitleContainer").css("color","").css("background-color",""); $(this).removeClass("ContentBoxTitle").css("color","").css("font-weight",""); $(this).find("td").addClass("sideCalendarMonthTitle").removeClass("ContentBoxTitle").css("color","").css("background-color",""); $(this).find("a").css("color",""); }) } catch(e) {} }); function addIcons (box,imgAlign,imgWidth,imgHeight) { for (var j=0; j < events.length; j++ ) { if (box.html().match(events[j][0])) { var temp = "<img align='" + imgAlign + "' src='" + events[j][1]; temp += "'width='" + imgWidth + "' height='" + imgHeight + "'>"; box.html(temp + box.html()); } } return true; } }); </script>
var eventsBoxTitle = "Events";