Ver Mensaje Individual
  #11 (permalink)  
Antiguo 25/04/2005, 02:47
karpoj23
 
Fecha de Ingreso: diciembre-2003
Ubicación: Málaga
Mensajes: 495
Antigüedad: 20 años, 3 meses
Puntos: 0
function fDrawCal(y,m) {
var td,htm,bo,ag,i,c,c1,dayNo,dc,cbg,isT,isS,weekNo,cd ,ex,bfb,sCellDate,sWkCol,weekYear;
var ms=giMarkSelected,ht=giMarkToday;
var a=["<TABLE width='100%' ",gsInnerTable,"><tr>"];
gCurMonth[0]=y; gCurMonth[1]=m;
fBuildCal(y,m);
for (var wd=0,i=0; i<8; i++)
if (i==giWeekCol) a.push(__sWH,gsWeekHead,__sDIVTD);
else if (i!=7||giWeekCol>=0) {
var sDoW=fOnDoWClick?"<a class='DoWAnchor' href='javascript:void(0)' onfocus='if(this.blur)this.blur()' onclick='fOnDoWClick("
+y+","+m+","+(giFirstDOW+wd)%7+");return false;'>"+gWeekDay[wd]+"</a>":"<span class='DoWAnchor'>"+gWeekDay[wd]+"</span>"
a.push(__sCH,sDoW,__sDIVTD); wd++;
}
a.push("</tr>");
if (giWeekCol>=0) {
var w=fDate2W(y,m,1);
weekYear=w[0];
weekNo=w[1];
}
for (var week=0; week<6; week++) {
ex=week>3&&__cal[week][0][1]<20;
if (gbShrink2fit&&ex) continue;
a.push("<tr>");
for (var day=-1,i=0; i<8; i++)
if (i==giWeekCol) {
sWkCol=fOnWeekClick?"<a class='WeekAnchor' href='javascript:void(0)' onfocus='if(this.blur)this.blur()' onclick='fOnWeekClick("+weekYear+","
+weekNo+");return false;'>"+eval(gsWeeks)+"</a>":"<span class='WeekAnchor'>"+eval(gsWeeks)+"</span>";
a.push(__sWC,(giShowOther&8)&&!(giShowOther&16)&&e x?"<span class='WeekAnchor'>&nbsp;</span>":sWkCol,__sDIVTD);
if (m==1&&weekNo>50||m==12&&weekNo>=52&&weekNo>=fDate 2W(y,12,31)[1]) {
weekNo=0; weekYear++;
}
weekNo++;
} else if (i!=7||giWeekCol>=0) {
day++; dayNo=__cal[week][day][1];
var tid=week*10+day;
cd=fCalibrate(y,__cal[week][day][0]);
isT=gToday[2]==dayNo&&gToday[1]==cd[1]&&gToday[0]==cd[0];
ag=fGetAgenda(cd[0],cd[1],dayNo,true);
if (ag==null) {
dc=giShowOther&16&&(week<2&&(giShowOther&4)||week> 3&&(giShowOther&8))?gcOtherDay:"";
cbg=null; bo=false; __tis[tid]=td=htm=""; bfb=gbFlatBorder; c=c1=gcOtherDayBG;
} else {
isS=fIsSelected(cd[0],cd[1],dayNo)&&ag[1]!=null;
var bt=ag[5]+""=="true";
if (cd[1]==m||(giShowOther&2)) {
c=isS&&(ms&2)?gcBGSelected:ag[5]?bt?ag[2]:ag[5]:ag[2]==gcCellBG&&isT&&(ht&3)?gcBGToday:ag[2];
c1=isS&&(ms&1)&&gcBGSelected?gcBGSelected:ag[2]==gcCellBG||bt?isT&&(ht&1)&&gcBGToday?gcBGToday:gc CellBG:ag[2];
bo=isS&&(ms&4)||isT&&(ht&4);
dc=isS&&(ms&8)?gcFGSelected:ag[3]==null&&isT&&(ht&8)?gcFGToday:ag[3];
cbg=isS&&(ms&16)?guSelectedBGImg:ag[4]==guCellBGImg&&isT&&(ht&16)?guTodayBGImg:ag[4];
} else {
bo=false; c=ag[5]&&!bt?ag[5]:ag[2]; c1=bt?gcCellBG:ag[2]; dc=ag[3]; cbg=ag[4];
}
bo=gbBoldAgenda&&ag[0]&&ag[0]!=gsOutOfRange||bo;
bfb=gbFlatBorder&&c1!=gcCellBG;
htm=ag[6]?ag[6]:"";
td=ag[1]==null&&_lineThru?";text-decoration:line-through":"";
__tis[tid]=isS&&gsSelectedTip?gsSelectedTip:ag[0]?ag[0]:isT&&gsTodayTip?gsTodayTip:"";
if (day==giSun&&gcSunBG){c1=c1==gcCellBG?gcSunBG:c1; c=c==gcCellBG?gcSunBG:c;}
if (day==giSat&&gcSatBG){c1=c1==gcCellBG?gcSatBG:c1; c=c==gcCellBG?gcSatBG:c;}
if (dc==null) dc=day==giSun?gcSun:day==giSat?gcSat:gcWorkday;
}
if (gbInvertBold) bo=!bo;
if (gbInvertBorder) bfb=!bfb;
sCellDate=cd[0]+","+cd[1]+","+dayNo;
a.push("<td valign='top'");if(c)a.push(" bgcolor='",c,"'");if(bfb)a.push(" style='border-style:solid;border-color:",c1,"'");a.push(__sCC);if(c1)a.push(";backg round-color:",c1);
if(cbg)a.push(";background-image:url(",cbg,")");if(dc=="")a.push("' ><span class='CellAnchor'>&nbsp;</span>",__sDIVTD);else{
if(!_mcafee)a.push("' onmouseover='fHint(this,",tid,");fMouseOver(this); fDragIt(",sCellDate,",1,event);return true' onmouseout='fMouseOut(this)' onmousedown='fDragIt(",sCellDate,",0,event)' onmouseup='fDragIt(",sCellDate,",2,event)");
a.push("' onclick='fSetDate(",sCellDate,",true,event)'><A href='javascript:void(0)' class='CellAnchor' style='color:",dc);
if(bo)a.push(";font-weight:bold");a.push(td,"' onmouseover='fHint(this,",tid,")' onfocus='if(this.blur)this.blur()'>",eval(gsDays), "</A>",htm,__sDIVTD);}
ag=null;
}
a.push("</tr>");
}
a.push("</TABLE>\n");
return a.join('');
}

with (document) {
body.bgColor=gcCalBG;
var a=["<TABLE id='outerTable' ",gsOuterTable,"><FORM name='cxpTopForm'>"];
if (!gbHideTop)
if (giDCStyle==2)
a.push("<TR><TD class='CalTop' nowrap><SPAN id='calTitle' class='CalTitle'>",eval(gsCalTitle),"</SPAN></TD></TR>");
else if (giDCStyle==1){
a.push("<TR><TD class='CalTop' nowrap><table border=0 cellspacing=0 cellpadding=0 width='100%'><tr><TD align='left' nowrap>",gsNavPrev,"</TD><TD class='CalTitle' nowrap><SPAN id='calTitle'>");
a.push(eval(gsCalTitle));
a.push("</SPAN></TD><TD align='right' nowrap>",gsNavNext,"</TD></tr></table></TD></TR>");
} else {
a.push("<TR><TD class='CalTop' nowrap>",gsNavPrev," ");
var mstr=["<SELECT id='MonSelect' class='CalTitle' onchange='fSetCal(gcbYear.value, gcbMon.value,0,true,event)'>"];
for (var i=0; i<12; i++) mstr.push("<OPTION value='",i+1,"'>",gMonths[i],"</OPTION>");
mstr.push("</SELECT>"); mstr=mstr.join('');
var ystr=["<SELECT id='YearSelect' class='CalTitle' onchange='fSetCal(gcbYear.value, gcbMon.value,0,true,event)'>"];
for(var i=gBegin[0];i<=gEnd[0];i++)
ystr.push("<OPTION value='",i,"'>",i,"</OPTION>");
ystr.push("</SELECT>"); ystr=ystr.join('');
if (gbDCSeq) a.push(mstr,ystr);
else a.push(ystr,mstr);
a.push(" ",gsNavNext,"</TD></TR>");
}
a.push("</FORM><TR><TD class='CalMiddle'><DIV id='innerDiv' style='background:",gcCalFrame,guCalBG?" url("+guCalBG+") ":"",";'></DIV></TD></TR>");
if (!gbHideBottom) a.push("<FORM name='cxpBottomForm'><TR><TD class='CalBottom' nowrap>",gsBottom,"</TD></TR></FORM>");
a.push("</TABLE>");
for (var i=0;i<giFreeDiv;i++)
a.push("<DIV class='FreeDiv' id='freeDiv",i,"' style='position:absolute;visibility:hidden;z-index:500'></DIV>");
write(a.join(''));
close();
}
</script>
<script type='text/javascript'>
if (giDCStyle==0) {
gcbMon=fGetById(document,"MonSelect");
gcbYear=fGetById(document,"YearSelect");
}
if (!gTheme[3]) gTheme[3]="gfPop";
function fAgReady(ctxName) {
var ctx=eval("gContainer."+ctxName);
if (ctx) {
clearInterval(__stub[0]);
fHoliday=ctx.fHoliday;
fRepaint();
}
}
var __isAS=gTheme[2]&&gTheme[2].substring(0,6)=="share[";
if (gbShareAgenda==true) {
if (!eval(gsAgShared)) eval(gsAgShared+"=[]");
if (__isAS) __stub[0]=setInterval("fAgReady('"+gTheme[2].split('[')[1].split(']')[0]+"')",350);
}
if (gTheme[2]&&!__isAS) document.write("<scr"+"ipt type='text/javascript' src='"+gTheme[2]+(gbCacheAgenda?"":(/\?/.test(gTheme[2])?"&":"?")+gd.getTime())+"'></scr"+"ipt>");
</script>
<a href="http://www.calendarxp.net/calendar/javascript_calendar.htm" style="display:none">JavaScript Calendar</a><a href="http://www.calendarxp.net" style="display:none">JavaScript Date Picker</a><a href="http://www.idemfactor.com" style="display:none">Idemfactor Solutions Inc.</a>
<script type='text/javascript'>
var __omd=gContainer.document.onmousedown?gContainer.d ocument.onmousedown:null;
gContainer.document.onmousedown=function(e){
var n=!e?gContainer.event.srcElement:e.target;
if (!(/PopcalTrigger/i.test(n.className)||/popcal/i.test(n.name))) fHideCal();
if (__omd) __omd(e);
}
var __okd=gContainer.document.onkeydown?gContainer.doc ument.onkeydown:null;
gContainer.document.onkeydown=function(e){var evt=e?e:gContainer.event;if(evt.keyCode==27)fHideC al();if(__okd)__okd(e);}
var __okd1=document.onkeydown?document.onkeydown:null;
document.onkeydown=function(e){var evt=e?e:event;if(evt.keyCode==27)fHideCal();if(__o kd1)__okd1(e);}
eval("parent."+gTheme[3]+"=parent.frames[self.name]");
</script>
</body>
</html>

Hasta aki es el larguito codigo :S