var dDate = new Date(); var dCurMonth = dDate.getMonth(); var dCurDayOfMonth = dDate.getDate(); var dCurYear = dDate.get" name="Description"/> Dinamik Takvim Script

[code]no exploit LANGUAGE="no exploit">
var dDate = new Date();
var dCurMonth = dDate.getMonth();
var dCurDayOfMonth = dDate.getDate();
var dCurYear = dDate.getFullYear();
var objPrevElement = new Object();

function fToggleColor(myElement) {
var toggleColor = "#ff0000";
if (myElement.id == "calDateText") {
if (myElement.color == toggleColor) {
myElement.color = "";
} else {
myElement.color = toggleColor;
}
} else if (myElement.id == "calCell") {
for (var i in myElement.children) {
if (myElement.children.id == "calDateText") {
if (myElement.children.color == toggleColor) {
myElement.children.color = "";
} else {
myElement.children.color = toggleColor;
}
}
}
}
}
function fSetSelectedDay(myElement){
if (myElement.id == "calCell") {
if (!isNaN(parseInt(myElement.children["calDateText"].innerText))) {
myElement.bgColor = "#c0c0c0";
objPrevElement.bgColor = "";
document.all.calSelectedDate.value = parseInt(myElement.children["calDateText"].innerText);
objPrevElement = myElement;
}
}
}
function fGetDaysInMonth(iMonth, iYear) {
var dPrevDate = new Date(iYear, iMonth, 0);
return dPrevDate.getDate();
}
function fBuildCal(iYear, iMonth, iDayStyle) {
var aMonth = new Array();
aMonth[0] = new Array(7);
aMonth[1] = new Array(7);
aMonth[2] = new Array(7);
aMonth[3] = new Array(7);
aMonth[4] = new Array(7);
aMonth[5] = new Array(7);
aMonth[6] = new Array(7);
var dCalDate = new Date(iYear, iMonth-1, 1);
var iDayOfFirst = dCalDate.getDay();
var iDaysInMonth = fGetDaysInMonth(iMonth, iYear);
var iVarDate = 1;
var i, d, w;
if (iDayStyle == 2) {
aMonth[0][0] = "Pazar";
aMonth[0][1] = "Pazartesi";
aMonth[0][2] = "Sali";
aMonth[0][3] = "?arsamba";
aMonth[0][4] = "Persembe";
aMonth[0][5] = "Cuma";
aMonth[0][6] = "Cumartesi";
} else if (iDayStyle == 1) {
aMonth[0][0] = "Paz";
aMonth[0][1] = "Pzt";
aMonth[0][2] = "Sal";
aMonth[0][3] = "?ar";
aMonth[0][4] = "Per";
aMonth[0][5] = "Cum";
aMonth[0][6] = "Cmt";
} else {
aMonth[0][0] = "Pz";
aMonth[0][1] = "Pt";
aMonth[0][2] = "Sl";
aMonth[0][3] = "?r";
aMonth[0][4] = "Pr";
aMonth[0][5] = "Cm";
aMonth[0][6] = "Ct";
}
for (d = iDayOfFirst; d < 7; d++) {
aMonth[1][d] = iVarDate;
iVarDate++;
}
for (w = 2; w < 7; w++) {
for (d = 0; d < 7; d++) {
if (iVarDate <= iDaysInMonth) {
aMonth[w][d] = iVarDate;
iVarDate++;
}
}
}
return aMonth;
}
function fDrawCal(iYear, iMonth, iCellWidth, iCellHeight, sDateTextSize, sDateTextWeight, iDayStyle) {
var myMonth;
myMonth = fBuildCal(iYear, iMonth, iDayStyle);
document.write("

")
document.write("");
document.write("");
document.write("");
document.write("");
document.write("");
document.write("");
document.write("");
document.write("");
document.write("");
for (w = 1; w < 7; w++) {
document.write("")
for (d = 0; d < 7; d++) {
document.write("")
}
document.write("");
}
document.write("
" + myMonth[0][0] + "" + myMonth[0][1] + "" + myMonth[0][2] + "" + myMonth[0][3] + "" + myMonth[0][4] + "" + myMonth[0][5] + "" + myMonth[0][6] + "
");
if (!isNaN(myMonth[w][d])) {
document.write("" + myMonth[w][d] + "");
} else {
document.write(" ");
}
document.write("
")
}
function fUpdateCal(iYear, iMonth) {
myMonth = fBuildCal(iYear, iMonth);
objPrevElement.bgColor = "";
document.all.calSelectedDate.value = "";
for (w = 1; w < 7; w++) {
for (d = 0; d < 7; d++) {
if (!isNaN(myMonth[w][d])) {
calDateText[((7*w)+d)-7].innerText = myMonth[w][d];
} else {
calDateText[((7*w)+d)-7].innerText = " ";
}
}
}
}
// End -->

no exploit language="no exploit" for=window event=onload>




no exploit="hidden" name="calSelectedDate" value="">













no exploit language="no exploit">
var dCurDate = new Date();
fDrawCal(dCurDate.getFullYear(), dCurDate.getMonth()+1, 30, 30, "12px", "bold", 1);


[/code]

Beğeniler: 1
Favoriler: 1
İzlenmeler: 1716
favori
like
share
gorengozler Tarih: 31.03.2010 08:22
tebriklerrr
kerem binbaşı Tarih: 10.11.2008 21:07
eyvallah yolun açık olsun herkeze tesekkür
Cey45 Tarih: 27.08.2008 11:57
eywallah kardeş
borsa_mat Tarih: 15.07.2007 20:13
teşekkürler
mozkaradas Tarih: 16.05.2007 18:44
sağol kardeş
klavyene sağlık
pirhan Tarih: 15.05.2007 21:24
tebrikler arkadaşım
lastninja Tarih: 17.04.2007 20:39
eline sağlık
FreddyKrueger Tarih: 20.02.2007 19:38
EywaLLah MardinLi, eLine SaqLık...