View Full Version : Xanga Dates.
xLa_GaSoLiNax 06-04-2005, 03:26 PM I have a code made especially to change the names of like Monday, Tuesday, June, July, etc. The only problem is it doesn't work. I've tried to put it in all the sections, Web Stats, Custom Header, etc, but it still doesn't work.
Here's the code:
<!-- begin code provided by createblog.com --><br />
<br />
<script type="text/javascript"><br />
// Edits The Date Text.<br />
// For use at Xanga only.<br />
<br />
function replaceWordsDates()<br />
{<br />
// ***add the Months or Days you wish to replace below<br />
var oldWordsDates = new Array(<br />
"January",<br />
"February",<br />
"March",<br />
"April",<br />
"May",<br />
"June",<br />
"July",<br />
"August",<br />
"September",<br />
"October",<br />
"November",<br />
"December",<br />
"Monday",<br />
"Tuesday",<br />
"Wednesday",<br />
"Thursday",<br />
"Friday",<br />
"Saturday",<br />
"Sunday"<br />
);<br />
<br />
// *** add the replacing Months or Days below<br />
var newWordsDates = new Array(<br />
"jan.",<br />
"feb.",<br />
"mar.",<br />
"apr.",<br />
"mayo",<br />
"junio",<br />
"julio",<br />
"aug." ,<br />
"sept." ,<br />
"oct." ,<br />
"nov." ,<br />
"dec." ,<br />
"primero," ,<br />
"toosday,” ,<br />
"yadsendew," ,<br />
"jueves," ,<br />
"tgif," ,<br />
"the weekends almost over," ,<br />
"i feel myself getting older," ,<br />
);<br />
<br />
allDivData = document.getElementsByTagName('div');<br />
<br />
var collections = new Array(allDivData);<br />
<br />
for (var k = 0; k < collections.length; ++k )<br />
{<br />
for (var i = 0; i < collections[k].length; ++i )<br />
{ <br />
if (collections[k][i].innerHTML.indexOf('DIV') == -1)<br />
{<br />
for ( var n = 0; n < oldWordsDates.length; ++n )<br />
{<br />
var indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n]) <br />
while (indx != -1)<br />
{ <br />
var replacement = '';<br />
indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n]);<br />
replacement = collections[k][i].innerHTML.replace(oldWordsDates[n], newWordsDates[n]);<br />
collections[k][i].innerHTML = replacement;<br />
break; <br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<br />
replaceWordsDates();<br />
</script><br />
<br />
<!-- end code provided by createblog.com -->
Exist3ntial_Me 06-04-2005, 03:50 PM Alright, im not exactly sure if this code will work for dates but you may try it anyway. Where it says subscriptions, blogrings, etc, change those to the 'actual' days of the week, add more if you need to. Below that list of days, put what you wish for those to be called in your own slang and all that nonsense. The actual days and new days must be in sink with eachother. This code is meant for use of what is already on there. But it might aswell change the dates and whatnot.
<script type="text/javascript">
// This script replaces any given word or text fragment with
// whatever you want: new words and fragments, or even HTML!
function replaceWords()
{
var oldWords = new Array(
"Subscriptions",
"My Blogrings",
"eprop",
"comment",
"Posting Calendar",
"email it",
"Get Involved!"
);
var newWords = new Array(
"the elite",
"cliques",
"prop",
"whisper",
"reminisce",
"make a wish",
"interact"
);
allTableData = document.getElementsByTagName('td');
allTableHeaders = document.getElementsByTagName('th');
var collections = new Array(allTableData,allTableHeaders);
for (var k = 0; k < collections.length; ++k )
{
for (var i = 0; i < collections[k].length; ++i )
{
if (collections[k][i].innerHTML.indexOf('TABLE') == -1)
{
for ( var n = 0; n < oldWords.length; ++n )
{
var indx = collections[k][i].innerHTML.indexOf(oldWords[n])
while (indx != -1)
{
var replacement = '';
indx = collections[k][i].innerHTML.indexOf(oldWords[n]);
replacement =
collections[k][i].innerHTML.replace(oldWords[n],
newWords[n]);
collections[k][i].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWords();
</script>
JiNgLeBeLLz77 06-04-2005, 06:13 PM you need to take out all the <br/> tags in the code.
I have a code made especially to change the names of like Monday, Tuesday, June, July, etc. The only problem is it doesn't work. I've tried to put it in all the sections, Web Stats, Custom Header, etc, but it still doesn't work.
Here's the code:
<!-- begin code provided by createblog.com --><br />
<br />
<script type="text/javascript"><br />
// Edits The Date Text.<br />
// For use at Xanga only.<br />
<br />
function replaceWordsDates()<br />
{<br />
// ***add the Months or Days you wish to replace below<br />
var oldWordsDates = new Array(<br />
"January",<br />
"February",<br />
"March",<br />
"April",<br />
"May",<br />
"June",<br />
"July",<br />
"August",<br />
"September",<br />
"October",<br />
"November",<br />
"December",<br />
"Monday",<br />
"Tuesday",<br />
"Wednesday",<br />
"Thursday",<br />
"Friday",<br />
"Saturday",<br />
"Sunday"<br />
);<br />
<br />
// *** add the replacing Months or Days below<br />
var newWordsDates = new Array(<br />
"jan.",<br />
"feb.",<br />
"mar.",<br />
"apr.",<br />
"mayo",<br />
"junio",<br />
"julio",<br />
"aug." ,<br />
"sept." ,<br />
"oct." ,<br />
"nov." ,<br />
"dec." ,<br />
"primero," ,<br />
"toosday,” ,<br />
"yadsendew," ,<br />
"jueves," ,<br />
"tgif," ,<br />
"the weekends almost over," ,<br />
"i feel myself getting older," ,<br />
);<br />
<br />
allDivData = document.getElementsByTagName('div');<br />
<br />
var collections = new Array(allDivData);<br />
<br />
for (var k = 0; k < collections.length; ++k )<br />
{<br />
for (var i = 0; i < collections[k].length; ++i )<br />
{ <br />
if (collections[k][i].innerHTML.indexOf('DIV') == -1)<br />
{<br />
for ( var n = 0; n < oldWordsDates.length; ++n )<br />
{<br />
var indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n]) <br />
while (indx != -1)<br />
{ <br />
var replacement = '';<br />
indx = collections[k][i].innerHTML.indexOf(oldWordsDates[n]);<br />
replacement = collections[k][i].innerHTML.replace(oldWordsDates[n], newWordsDates[n]);<br />
collections[k][i].innerHTML = replacement;<br />
break; <br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<br />
replaceWordsDates();<br />
</script><br />
<br />
<!-- end code provided by createblog.com -->
xLa_GaSoLiNax 06-07-2005, 05:59 PM hmm i've tried that Exist3ntial_Me, but thanks anyway.
I tried that and it still doesn't work.
Where am I supposed to put the code...Webstats?
neroticly*urs 06-09-2005, 09:09 AM this is what i used
<script type="text/javascript">
//
// ?003 Geekette, http://www.xanga.com/ur_music_sucks_hard
// 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]);
collections[k][i].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWordsDates();
</script>
put it in ur web stats & just change the existing word/s to what you want in the list after " // *** add the replacing Months or Days below"
|