monkigurl77
08-28-2004, 11:42 PM
When you make a post it says the date. Is there anyway to change the name of the day like: Monday to moanday? or something like that? thanx for the help :star:
|
View Full Version : The Days monkigurl77 08-28-2004, 11:42 PM When you make a post it says the date. Is there anyway to change the name of the day like: Monday to moanday? or something like that? thanx for the help :star: oincubusx 08-28-2004, 11:59 PM mmmmmhm.... use this... <script> // // Change the Dates // 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" "2004" "2005" "2006" "1" "2" "3" "4" "5" "6" "7" "8" "9" "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( "JAN.", "FEB.", "MAR.", "APR.", "MAY", "JUN", "JUL.", "AUG", "SEP.", "OCT", "HEAVEN SENT", "DEC.", "MONDAii", "TUESDAii", "WEDNESDAii", "THURSDAii", "TGiF", "SATURDAii", "HOLi DAY" ".o4" ".o5" ".o6" ".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> monkigurl77 08-29-2004, 12:05 AM where should I put it? oincubusx 08-29-2004, 12:06 AM webstats... sry bout that.. lol monkigurl77 08-29-2004, 12:10 AM I can't seen to get it to work for me but thanx! oincubusx 08-29-2004, 12:14 AM i have one that is deffinately working... i use it so i should work it is: <script type="text/javascript"> // // xpbabo1004 // Changes date text // For use at Xanga only. // // dont jock ^^^^^ // 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", "31, ", "30, ", "29, ", "28, ", "27, ", "26, ", "25, ", "24, ", "23, ", "22, ", "21, ", "20, ", "19, ", "18, ", "17, ", "16, ", "15, ", "14, ", "13, ", "12, ", "11, ", "10, ", "09, ", "08, ", "07, ", "06, ", "05, ", "04, ", "03, ", "02, ", "01, ", "2003", "2004", "2005", "," ); // *** add the replacing Months or Days below var newWordsDates = new Array( "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "m", "t", "w", "t", "f", "s", "s", "31", "30", "29", "28", "27", "26", "25", "24", "23", "22", "21", "20", "19", "18", "17", "16", "15", "14", "13", "12", "11", "10", "9", "8", "7", "6", "5", "4", "3", "2", "1", "03", "04", "05", "" ); 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> monkigurl77 08-29-2004, 01:56 AM Works great! Thanx so much! :) oincubusx 08-29-2004, 02:12 AM yw |