i need help!! hide date or rename |
![]() ![]() |
i need help!! hide date or rename |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 5 Joined: Feb 2004 Member No: 5,033 ![]() |
how do i hide the date on each entry or replace the date words with my own words??
|
|
|
*lookitskim* |
![]()
Post
#2
|
Guest ![]() |
CODE <!-- begin code provided by createblog.com --> <script type="text/javascript"> // // ©2003 EASTEREGG, HTTP://WWW.XANGA.COM/EASTEREGG // CHANGES DATE TEXT // FOR USE AT XANGA ONLY. // RAWRS =P // 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", "2004" ); // *** ADD THE REPLACING MONTHS OR DAYS BELOW var newWordsDates = new Array( "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec", "Madness Monday", "Trippy Tuesday", "Waq @ss Wednesday", "Tired Thursday", "Thank GOD it's Friday", "Sleepless Saturday", "Sleepy Sunday", "04" ); 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> <!-- end code provided by createblog.com --> as for hiding it... i would just make the font color and the background color the same... that way u won't be able to see it. |
|
|
![]()
Post
#3
|
|
Newbie ![]() Group: Member Posts: 5 Joined: Feb 2004 Member No: 5,033 ![]() |
how do u exactly work that code. can u give me an example because i copy and paste that exact code and nothing changed. sorry im dum.
|
|
|
*lookitskim* |
![]()
Post
#4
|
Guest ![]() |
u put that code in ur web stats... and the part where it says ADD REPLACING MONTHS... u can change that to anything u want... that's all there is to it
|
|
|
![]() ![]() |