Log In · Register

 
How do i create a custom Blog header??, /with xanga reg.
XangaNewb
post Jan 31 2004, 12:36 PM
Post #1


Newbie
*

Group: Member
Posts: 1
Joined: Jan 2004
Member No: 2,304



Heres what i mean...
 
 
Start new topic
Replies (1 - 1)
midnite
post Jan 31 2004, 05:37 PM
Post #2


mmm... coffee ;]
***

Group: Member
Posts: 65
Joined: Jan 2004
Member No: 1,845



QUOTE
<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"
);

    // *** ADD THE REPLACING MONTHS OR DAYS BELOW
    var newWordsDates = new Array(
        "enero",
        "febrero",
        "marzo",
        "abril",
        "mayo",
        "junio",
        "julio",
        "agosto",
        "septiembre",
        "octubre",
        "noviembre",
        "diciembre",
        "lunes",
        "martes",
        "miércoles",
        "jueves",
        "viernes",
        "sabádo",
        "domingo"
);

    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>
this one is to change the word for the dates you can add to it

QUOTE
<style type="text/css">
div.blogheader, .caption {
font-family:arial;
text-transform:lowercase;
font-size:21px;
line-height:14px;
font-weight:bold;
color:#FF0000;
text-align: left;
}
</style>
this edits the format of the date. you change and add things to it
 

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