Calendar Icons v1.3
The Code
<style type="text/CSS"> .sideCalendar { border: #333333 1px solid; } .sideCalendarTools { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell.gif); height: 15px; font-size: 8pt; text-align: right; } .sideCalendarMonthTitleContainer { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell.gif); height: 10px; font-size: 7pt; } .sideCalendarMonthTitle, .sideCalendarMonthTitle a { font-weight: bold; padding: 5px; } .sideCalendarDaysofWeek { background: #000000; border: #333333 1px solid; border-collapse: collapse; } .sideCalendarDaysofMonth { background: #111111 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell.gif); min-width: 22px; font-size: 8pt; border: #333333 1px solid; padding: 2px;} .sideCalendarDaysOutsideThisMonth { background: #070707 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell-out.gif); color: #444444; } .sideCalendarEvent { background: #000022 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell-evt.gif); font-weight: bold; cursor: pointer; } .sideCalendarToday { background: #002200 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell-today.gif); color: #ffffff; font-weight:bold; } .sideCalendarTooltipTitle { color: #00f000; } .tooltip, .preview, .screenshot { cursor:pointer; } #tooltip, #tooltip2, #preview, #screenshot { color:#dddddd; background:#222222; border: 1px solid #333333; padding:5px; display:none; opacity: 0.9; filter: alpha(opacity=90); text-align:left; } .mainCalendar { border: #333333 1px solid; } .mainCalendarTools { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell.gif); height: 20px; font-size: 8pt; text-align: right; } .mainCalendarMonthTitleContainer { background:url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell.gif); height: 20px; font-size: 8pt; } .mainCalendarMonthTitle, .mainCalendarMonthTitle a { font-weight: bold; padding: 5px; } .mainCalendarDaysofWeek { background: #000000; border: #333333 1px solid; border-collapse: collapse; } .mainCalendarDaysofMonth { background: #111111 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell-big.gif) top center repeat-x; min-width:50px; font-size:10pt; border:#333333 1px solid; padding:2px; } .mainCalendarDaysOutsideThisMonth { background: #070707 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell-out-big.gif) top center repeat-x; color: #444444; } .mainCalendarEvent { background: #080c21 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell-evt-big.gif) top center repeat-x; } .mainCalendarToday { background: #002200 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/cell-today-big.gif) top center repeat-x; color: #ffffff; font-weight:bold; } .mainCalendar .MoGridRow { background: #004566; min-height: 40px; } .mainCalendar .NormGridRow { background: transparent; min-height: 40px } .mainCalendar .AltGridRow { background: #000011; min-height: 40px } </style> <script src="http://www.axiomfiles.com/Files/258012/calendarstyle1-3.js" type="text/javascript"></script> <div style="display:none;" id="tempvar"/> <script type="text/javascript"> 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|Uld","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/ulduar.gif"]); events.push(["ToC|TotC|of Crusader|he Crusader","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Crusader.gif"]); events.push(["TGC|ToGC|Grand Crusader","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/GrandCrusader.gif"]); events.push(["Ony|Onyxia","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/onx.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"]); var myCalendarPage = 'http://guildportal.com/Guild.aspx?GuildID=258012&TabID=2168226&PageName=Calendar'; var viewMySignUps = "My Sign-ups"; var replaceTools = true; var myEvents = 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/myEvents.png'; var addEvent = 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/addEvent.png'; $(document).ready(function() { // Main Calendar $(".CenterContentZone").find("#tblMonthlyCalendarTable").find(".smallRound").each(function() { addIcons($(this),"right","24","24"); }); // Events Box $("a").each(function() { if ($(this).attr("title").match("details of this event on the Calendar")) { addIcons($(this).parent(),"right","24","24"); } }); // Calendar Styling styleCalendar ("side",27); styleCalendar ("main",100); updateLinks(); }); </script>
Customizing
.mainCalendarWeek, .mainCalendarNextWeek, .mainCalendarNav {display:none;}
var myCalendarPage = 'http://guildportal.com/Guild.aspx?GuildID=258012&TabID=2168226&PageName=Calendar';
events.push(["Event|event","ICON URL"]);
var viewMySignUps = "My Sign-ups";
var replaceTools = true; var myEvents = 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/myEvents.png'; var addEvent = 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/addEvent.png';
Groovy stuff man.
Is it possible to create a more simple calendar? I would love to use your calendar atm for our site but it loses the locked background tranparent effect that we have. I like the idea of placing cell icons and backgrounds for events and uniform matching grid to the site. Replacing html urls sources is easy.
Have a peak in case you are trying to understand what I mean...
http://www.guildportal.com/Guild.aspx?GuildID=306909&TabID=2796166&PageName=Events
<script src="http://www.axiomfiles.com/Files/258012/calendarstyle1-3.js" type="text/javascript"></script>
$(".CenterContentZone").find("#tblMonthlyCalendarTable").find(".NormGridRow,.AltGridRow").each(function() {
$(".CenterContentZone").find("#tblMonthlyCalendarTable").find(".smallRound").each(function() {