inherit
40157
tyrantlytamale 627939549 tjhtmlmaniac
0
Sept 3, 2023 15:17:02 GMT -8
Tylr
The stale taste of recycled air.
2,964
April 2005
tyrantlytamale
|
Post by Tylr on Jan 31, 2006 16:00:07 GMT -8
This code adds all your events this month to the news fader, as a link to your event. You'll need to have an event in the month and the news fader enabled for it to work. (Duh?) If you are not using the default calendar image you'll need to edit the green part to the end of its URL. <script language="JavaScript"> <!-- // Addy all eventsy toity the newsy fadery by Ty // Keepith the headerity in tactity var news = new Array("","") if (!location.href.match(/action/)) { var aetd = document.getElementsByTagName('td') for (i=0; i<aetd.length; i++) { if (aetd.innerHTML.match('Events This Month') && aetd.className=='catbg' && aetd.colSpan==2) { var news = aetd.parentNode.nextSibling.getElementsByTagName('td')[2].innerHTML.split(', '); } } if (navigator.appName.match('Microsoft')) { news[0] = news[0].split(/=1>/i)[1] } if (navigator.appName.match('Netscape')) { news[0] = news[0].split(/="1">/i)[1] } var tnum = fContent.length for (t=0; t<news.length; t++){ if (news[t]){ fContent[tnum++] = news[t] } } } // --> </script> #edit: Main footer... #edit 2/22/06: Made fully CB (it was marked CB previous) #edit 3/3/06: Fixed no events bug in IE. #edit 3/24/06: No longer checks for calendar icon. Code now usable as-is.
|
|