Log In · Register

 
 
Closed TopicStart new topic
CODE FOR ENTRY DATE
x0namrahgurli0x
post Feb 21 2005, 12:08 PM
Post #1


Newbie
*

Group: Member
Posts: 1
Joined: Feb 2005
Member No: 103,184



//
// ?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"
);

// *** add the replacing Months or Days below
var newWordsDates = new Array(
"january",
"february",
"march",
"april",
"may",
"june",
"july",
"august",
"september",
"october",
"november",
"december",
"Think of me Monday ♥ ",
"Trust me Tuesday ♥",
"Wish for me Wednesday ♥",
"Hold my hand Thursday ♥",
"It's Friday, I'm in love. ♥♥",
"Dance with me Saturday♥",
"Kiss me Sunday♥"
);

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();



There's my code. when i post it into my website stats though, it goes all at the bottom. teh whole code. i need help changing it.
if u know how, post in here or aim:
x0namrahgurli0x

I NEED UR HELP! THANKS!!
 
BrooKie
post Feb 21 2005, 03:48 PM
Post #2


Sophomore
****

Group: Member
Posts: 233
Joined: Dec 2004
Member No: 72,625



you took out some of the stuff from the code that were suppose to stay there. like <script type="text/javascript"> at the top and </script> in the end. that's way the whole code appeared at the bottom of your site.
i did the whole code over for you


Copy and Paste into Website Stats
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: