309
| <![CDATA[<script type="text/javascript">
function showcalendar(id,calendarlink)
{
var xmlHttp;
try{
xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
}
catch (e){
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
}
catch (e){
try{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){
alert("No AJAX!?");
return false;
}
}
}
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){
document.getElementById(id).innerHTML=xmlHttp.responseText;
}
}
xmlHttp.open("GET",calendarlink,true);
xmlHttp.send(null);
}
function showTitlesList(ev,text)
{
getCursorXY(ev);
// alteracao para o FNE nao exibir o balao com o titulo do evento - evandro saraiva
// document.getElementById('spiderCalendarTitlesList_205').innerHTML = '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td id="sc1"> ;</td></tr><tr><td id="sc2">'+text+'</td></tr><tr><td id="sc3"> ;</td></tr>';
document.getElementById('spiderCalendarTitlesList_205').style.left=(tempX-33) + "px";
document.getElementById('spiderCalendarTitlesList_205').style.top=(tempY+15) + "px";
document.getElementById('spiderCalendarTitlesList_205').style.display = "block";
}
var tempX = 0;
var tempY = 0;
function getCursorXY(e)
{
e = e || window.event;
if (e.pageX || e.pageY)
{
tempX = e.pageX-(document.documentElement.scrollLeft ||document.body.scrollLeft);
tempY = e.pageY-(document.documentElement.scrollTop ||document.body.scrollTop);
}
else
{
tempX = e.clientX - document.documentElement.clientLeft;
tempY = e.clientY - document.documentElement.clientTop;
}
}
function hideTitlesList()
{
if(document.getElementById('spiderCalendarTitlesList_205')) document.getElementById('spiderCalendarTitlesList_205').style.display = "none";
}
var oldFunctionOnLoad = null;
var oldFunctionOnScroll = null;
var siteRoot = '';
var module_id = '';
function AddToOnload205()
{
if(oldFunctionOnLoad && al2){al2=false; oldFunctionOnLoad(); }
var spiderCalendarTitlesListElement = document.createElement('div');
var spiderCalendarTitlesListId = document.createAttribute('id');
spiderCalendarTitlesListId.nodeValue = 'spiderCalendarTitlesList_205';
spiderCalendarTitlesListElement.setAttributeNode(spiderCalendarTitlesListId);
document.body.appendChild(spiderCalendarTitlesListElement);
if (document.images)
{
img1 = new Image();
img1.src = siteRoot+'/modules/mod_spidercalendar/images/TitleListBg1.png';
img2 = new Image();
img2.src = siteRoot+'/modules/mod_spidercalendar/images/TitleListBg2.png';
img3 = new Image();
img3.src = siteRoot+'/modules/mod_spidercalendar/images/TitleListBg3.png';
}
}
function AddToScroll205()
{
if(oldFunctionOnScroll && al1){al1=false; oldFunctionOnScroll(); }
hideTitlesList();
}
function loadBody205(sRoot)
{ siteRoot=sRoot;
al1=true;
al2=true;
oldFunctionOnLoad = window.onload;
oldFunctionOnScroll = window.onscroll;
window.onload = AddToOnload205;
window.onscroll = AddToScroll205;
}
function do_nothing()
{
}
showcalendar( 'calendar_205','/component/spidercalendar/?view=AJAXcalendar&calendar=1&module_id=205&format=row&Itemid=642&date205=2023-09');
loadBody205('');
</script>]]>
|