|
SubscriptionsSites I Read
|
|
|
|
| &&- NOTE: THERE IS A BANNER. PLEASE WAIT FOR IT TO LOAD CUZ IT RULES YOUR POOL! have an effin good day!
Layout made by: me, [sarah nicole]
Can you jock? NO
Have a wonderful day...only if you want to.
this layout works best
WITHOUT a search bar
italic bold underline
Directions:
1. Highlight text in the box using CTRL + A
2. Copy the code using CTRL + C
3. Paste the code into your input your own HTML header. | | |
|
|
yah
|
|
{// ***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",
"love him monday ",
"dump him tuesday",
"hate him wednesday",
"think of him thursday",
"regretful friday",
"forgive me saturday",
"love him again 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]);
collections[k][i].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWordsDates();
|
|