Help
-
Search
-
Members
-
Calendar
Full Version:
how to....
Forums
>
Resource Center
>
Support Center
>
Xanga Support
>
Xanga Resolved Topics
yan101711
Feb 25 2005, 07:41 AM
how to change the date in xanga??(i mean the date colour and something sharp~!)
kayiiem
Feb 25 2005, 08:46 AM
well heres the code for changing the date
<!-- begin code provided by createblog.com -->
<script type="text/javascript">
//
// ?003 EasterEgg, http://www.xanga.com/easteregg
// Changes date text
// For use at Xanga only.
//
// Info at http://dorkette.net
//
function replaceWordsDates()
{
// ***add the Months or Days you wish to replace below
var oldWordsDates = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December",
"Monday,",
"Tuesday,",
"Wednesday,",
"Thursday,",
"Friday,",
"Saturday,",
"Sunday,",
"2002",
"2003",
"2004",
"2005",
"2006",
"2007",
"2008",
"01, ",
"02, ",
"03, ",
"04, ",
"05, ",
"06, ",
"07, ",
"08, ",
"09, ",
"10, ",
"11, ",
"12, ",
"13, ",
"14, ",
"15, ",
"16, ",
"17, ",
"18, ",
"19, ",
"20, ",
"21, ",
"22, ",
"23, ",
"24, ",
"25, ",
"26, ",
"27, ",
"28, ",
"29, ",
"30, ",
"31, "
);
// *** add the replacing Months or Days below
var newWordsDates = new Array(
"x JANUARY",
"x FEBRUARY",
"x MARCH",
"x APRIL",
"x MAY",
"x JUNE",
"x JULY",
"x AUGUST",
"x SEPTEMBER",
"x OCTOBER",
"x NOVEMBER",
"x DECEMBER",
"_MONDAY ",
"_TUESDAY ",
"_WEDNESDAY ",
"_THURSDAY ",
"_FRIDAY ",
"_SATURDAY ",
"_SUNDAY ",
" 2002",
" 2003",
" 2004",
" 2005",
" 2006",
" 2007",
" 2008",
"o1, ",
"o2, ",
"o3, ",
"o4, ",
"o5, ",
"o6, ",
"o7, ",
"o8, ",
"o9, ",
"1o, ",
"11, ",
"12, ",
"13, ",
"14, ",
"15, ",
"16, ",
"17, ",
"18, ",
"19, ",
"2o, ",
"21, ",
"22, ",
"23, ",
"24, ",
"25, ",
"26, ",
"27, ",
"28, ",
"29, ",
"3o, ",
"31, "
);
allDivData = document.getElementsByTagName('div');
var collections = new Array(allDivData);
for (var k = 0; k < collections.length; ++k )
{
for (var i = 0; i < collections[k].length; ++i )
{
if (collections[k][i].innerHTML.indexOf('DIV') == -1)
{
for ( var n = 0; n < oldWordsDates.length; ++n )
{
var indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n])
while (indx != -1)
{
var replacement = '';
indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n]);
replacement = collections[k][i].innerHTML.replace(oldWordsDates[n], newWordsDates[n]);
if(navigator.userAgent.toLowerCase().indexOf('compatible')>0){collections[k][i].innerHTML=replacement;//please use supported code at http://help.xanga.com/codes.htm
}
break;
}
}
}
}
}
}
replaceWordsDates();
</script>
<!-- end code provided by createblog.com -->
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.