date changer, my code won't work |
![]() ![]() |
date changer, my code won't work |
Nov 22 2004, 05:29 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Member Posts: 20 Joined: Oct 2004 Member No: 55,127 |
hey my code for the date changer doesnt work. can anyone fix it for me? thanks!!! |
|
|
|
| *mona lisa* |
Nov 22 2004, 06:10 PM
Post
#2
|
|
Guest |
this was my old one so just change the words and it works s you might as well use this: |
|
|
|
Dec 18 2004, 01:46 PM
Post
#3
|
|
|
Member ![]() ![]() Group: Member Posts: 13 Joined: Dec 2004 Member No: 72,294 |
i used this code but it did not change the date.. my xanga is this My Webpage
CODE <!-- begin code provided by createblog.com --> <!-- begin code provided by createblog.com --> <script type="text/javascript"> //function replaceWords() { // ***add the words or fragments you wish to replace below var oldWords = new Array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"); // *** add the replacing words or fragments below var newWords = new Array( "_01_", "_02_", "_03_", "_04_", "_05_", "_06_", "_07_", "_08_", "_09_", "_10_", "_11_", "_12_", "mondaii", "tuesdaii", "wednesdaii", "thursdaii", "fridaii", "saturdai", "sundaii"); 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> <!-- end code provided by createblog.com --> <!-- end code provided by createblog.com --> could it be where i am putting the code .. where does it go . |
|
|
|
Dec 18 2004, 01:54 PM
Post
#4
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
try both website stats and custom header.
I think it's website stats though. |
|
|
|
![]() ![]() |