//
// ?003 EasterEgg, http://www.xanga.com/easteregg
//
// For use at Xanga only.
//
// This script replaces any given word or text fragment with
// whatever you want: new words and fragments, or even HTML!
//
// Actually it's pretty simple: add the words or fragments you
// wish to replace to the array "oldWords" (each word placed
// between double quotation marks, and separated by colons as you
// can see below) and add their replacements to the array "newWords",
// at the same position as the original words in "oldWords".
// The example is pretty self-explaining.
//
// The script is case sensitive, meaning that if you add "something"
// to "oldWords" array it will not recognize "SOMETHING", or "SoMetHInG".
//
// You can adjust the existing arrays in this code as you see fit,
// as long as both arrays keep the same size (same amount of words
// in both arrays), otherwise a script error will occur.
//
// Copy this entire code and paste in the webstats box at your
// Look and Feel page.
//
// You're free to use this script as long as this comment remains intact,
// and as long you won't use it to cripple the comments of your visitors;
// after all, no one likes his/her words getting twisted...
//
function replaceWords()
{
// ***add the words or fragments you wish to replace below
var oldWords = new Array(
"Sites I Read",
"Publish Comments",
"eprops",
"eProps",
"comments",
"Comments",
"view entire profile",
"sign my guestbook",
"My Blogrings");
// *** add the replacing words or fragments below
var newWords = new Array(
"SexXi Sites..!?",
"poobliSh",
"holla",
"holla",
"WhoA!",
"WhoA!",
"More Ob Mee",
"ScriBbleS",
"--Da rinqs--");
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();
//
// *** Smiley Script Reloaded xVersionx ***
//
// (c)2003 by SeGae, http://www.xanga.com/SeGae3
//
// You can use this code freely, as long as the entire script remains intact.
//
// WHAT'S NEW?
// - Reloaded xVersionx updated in AuG.6th.03
// - cross browser: it runs in IE, Netscape, Mozilla and Opera
// - ready for the upcoming (beta tested) changes at Xanga
// - clickable smileys, even for non-IE users, displayed in buttons
// - customizable number of smileys displayed in three row
// - customizable smiley button size
// - easily adjustable: only two arrays to maintain
// - preloading images for faster performance
// - necessary adjustments made because of recent changes at Xanga
// - made suitable for Mac users!
// - runs only at the comment page for increased performance
// - added new 28 more smileys by emorized, lilangelcat102
// - fixed problem which changed =) to a 2nd emoticon on the comment page of weblog. Now, it will only appear on the comment
// HOW TO USE:
// For use at Xanga only. Copy this entire code (including the script tags)
// and paste in the Website Stats box at your Look and Feel page. Make sure
// the previous version of this script (if any) is completely removed first.
//
// The script contains two arrays: "textSmileys" and "realSmileys". The items
// present in the array "textSmileys" will be automatically replaced with the
// corresponding images in the array "realSmileys". You can modify the arrays
// as you see fit, as long as both arrays keep the exact same number of items.
//
// For example, suppose you want to add some smiley to the script... that would mean
// in "textSmileys" you would add a shorthand like ":some_smiley:" or {somesmiley},
// and in "realSmileys" you would add it's url: "http://www.dude.com/some_smiley.gif".
//
// SETTINGS:
// - "maxNumberOfSmileysPerRow": number of smileys that will be displayed in one row.
// Smileys above that number will automatically be added to a new line. 10 by default.
// - "buttonSize": size of the smiley buttons in pixels. 30 px by default.
//
// AVAILABILITY:
// The script has been tested in the latest versions of IE, Netscape,
// Mozilla and Opera (Windows 98).
//
function typeSmiley(sSmiley)
{
if (document.getElementsByTagName('textarea')[0].getAttribute('name') == 'bdescr')
var editor = document.getElementsByTagName('textarea')[0];
else
{
var allTextAreas = document.getElementsByTagName('textarea');
for (i = 0; i < allTextAreas.length; ++i)
{
if (allTextAreas[i].getAttribute('name') == 'bdescr')
{
var editor = allTextAreas[i];
break;
}
}
}
editor.value = editor.value + sSmiley;
}
function replaceTextSmileys()
{
// ***add textual emoticons to the array below
var textSmileys = new Array(
":)",
"==)",
":(",
";)",
":p",
":D",
":cool:",
"{v}",
"{x}",
":eprop:",
":rolleyes:",
":eek:",
":MaD:",
":MaD2:",
":pissed:",
":confused:",
":frusty:",
":worried:",
":star:",
":bighug:",
":yawnee:",
":indifferent:",
":GrUmPy:",
":yikes:",
":irked:",
":sick:",
":cool guy:",
":dopey:",
":tease:",
":innocenT:",
":sLy:",
":CoLd:",
":AnGeL:",
":AnGeL2:",
":happys:",
":big O_O:",
":ChOmP",
":SonAr:",
":ProPeLler:",
":Queasy :",
":shutup:",
": huggerz :",
": depressed :",
": winkerz :",
": =P :",
": giggles :",
": coolbeans :",
": zZzZz :",
": heart :",
": LOL :",
": eeks! :",
": arghh ! :",
": sillyface :",
": jumpy :",
": worried :",
": yes ! :",
": mmuuaahh ! :",
":cry:",
":sweat:",
":wha:",
":hehe:",
":huh:",
":haha:",
":angry:",
":biggrin:",
":cry2:",
":drool:",
":drunk:",
":idea:",
":scream:",
":shrug:",
":dragon:",
":heehee:",
":uhh:");
// *** add the url's from the corresponding images below
var realSmileys = new Array(
"http://www.xanga.com/Images/smiley1.gif",
"http://images.bravenet.com/brpics/smilie/2_smile.gif",
"http://www.xanga.com/Images/smiley2.gif",
"http://www.xanga.com/Images/smiley3.gif",
"http://www.xanga.com/Images/smiley4.gif",
"http://www.xanga.com/Images/smiley5.gif",
"http://home.wanadoo.nl/spiderfan/smileys/cool.gif",
"http://www.xanga.com/images/heart.gif",
"http://www.xanga.com/images/kiss.gif",
"http://www.xanga.com/images/eprop.gif",
"http://home.wanadoo.nl/easteregg/smileys/rolleyes.gif",
"http://home.wanadoo.nl/spiderfan/smileys/eek.gif",
"http://home.wanadoo.nl/spiderfan/smileys/mad.gif",
"http://images.bravenet.com/brpics/smilie/7_mad.gif",
"http://images.bravenet.com/brpics/smilie/16_angry.gif",
"http://home.wanadoo.nl/spiderfan/smileys/confused.gif",
"http://home.wanadoo.nl/spiderfan/smileys/frusty.gif",
"http://home.wanadoo.nl/spiderfan/smileys/worried.gif",
"http://home.wanadoo.nl/spiderfan/smileys/yellowtinystar.gif",
"http://home.wanadoo.nl/spiderfan/smileys/bighug.gif",
"http://home.wanadoo.nl/spiderfan/smileys/yawnee.gif",
"http://images.bravenet.com/brpics/smilie/8_grim.gif",
"http://images.bravenet.com/brpics/smilie/20_grumpy.gif",
"http://images.bravenet.com/brpics/smilie/22_yikes.gif",
"http://images.bravenet.com/brpics/smilie/21_irked.gif",
"http://images.bravenet.com/brpics/smilie/18_crazy.gif",
"http://images.bravenet.com/brpics/smilie/25_coolguy.gif",
"http://images.bravenet.com/brpics/smilie/dopey.gif",
"http://images.bravenet.com/brpics/smilie/6_tongue.gif",
"http://images.bravenet.com/brpics/smilie/innocent.gif",
"http://images.bravenet.com/brpics/smilie/sly.gif",
"http://images.bravenet.com/brpics/smilie/cold.gif",
"http://images.bravenet.com/brpics/smilie/angel.gif",
"http://images.bravenet.com/brpics/smilie/30_angel.gif",
"http://images.bravenet.com/brpics/smilie/silly.gif",
"http://images.bravenet.com/brpics/smilie/bigeyes.gif",
"http://images.bravenet.com/brpics/smilie/chomp.gif",
"http://images.bravenet.com/brpics/smilie/sonar.gif",
"http://images.bravenet.com/brpics/smilie/propeller.gif",
"http://images.bravenet.com/brpics/smilie/19_indifferent.gif",
"http://home.wanadoo.nl/spiderfan/smileys/shutup.gif",
"http://home.jam.rr.com/flammable/emotionicons/emot-hug.gif",
"http://home.jam.rr.com/flammable/emotionicons/emot-fail.gif",
"http://home.jam.rr.com/flammable/emotionicons/wink.gif",
"http://home.jam.rr.com/flammable/emotionicons/tongue.gif",
"http://home.jam.rr.com/flammable/emotionicons/emot-giggle.gif",
"http://home.jam.rr.com/flammable/emotionicons/cool.gif",
"http://home.jam.rr.com/flammable/emotionicons/Zzzz.gif",
"http://home.jam.rr.com/flammable/emotionicons/heartpump.gif",
"http://home.jam.rr.com/flammable/emotionicons/emot-LOL.gif",
"http://home.jam.rr.com/flammable/emotionicons/emot-eek.gif",
"http://home.jam.rr.com/flammable/emotionicons/hammer.gif",
"http://home.jam.rr.com/flammable/emotionicons/new_silly.gif",
"http://home.jam.rr.com/flammable/emotionicons/emot-woot.gif",
"http://home.jam.rr.com/flammable/emotionicons/emot-rolleyes.gif",
"http://home.jam.rr.com/flammable/emotionicons/yes.gif",
"http://home.jam.rr.com/flammable/emotionicons/kiss.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/cry.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/sweat.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/wha2.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/hehe.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/confused.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/agree.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/angry.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/biggrin2.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/cry3.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/drool.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/drunk.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/idea.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/scream.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/shrug.gif",
"http://ew2.lysator.liu.se/loth/h/u/huelsmeyer/yi_ya_drag.jpg.index.jpeg",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/tongue3.gif",
"http://www.bjunkyard.com/page_forums/iB_html/non-cgi/emoticons/wha.gif");
// *** number of smileys that will be displayed per row
var maxNumberOfSmileysPerRow = 15;
// *** button size in pixels
var buttonSize = 30;
// preloading images
var preloadedImages = new Array(realSmileys.length);
for (i = 0; i < preloadedImages.length; ++i)
{
preloadedImages[i] = new Image();
preloadedImages[i].src = realSmileys[i];
}
var allTableData = document.getElementsByTagName('td');
var indx;
var smiley;
var replacement;
for (var i = 0 ; i < allTableData.length ; ++i )
{
for ( var n = 0 ; n < textSmileys.length; ++n )
{
if ((allTableData[i].innerHTML.toUpperCase().indexOf('TABLE') == -1) &&
(allTableData[i].innerHTML.indexOf('previewHTML()') == -1))
{
indx = allTableData[i].innerHTML.indexOf(textSmileys[n]);
if (indx != -1)
{
while (indx != -1)
{
replacement = '';
indx = allTableData[i].innerHTML.indexOf(textSmileys[n]);
smiley = ' '
replacement = allTableData[i].innerHTML.replace(textSmileys[n],smiley);
allTableData[i].innerHTML = replacement;
}
}
}
}
}
if (document.URL.indexOf('weblogs') != -1)
{
var smileyCollection = new Array(realSmileys.length);
var smileyBar = '';
if (document.getElementById('htmleditor'))
{
for (i = 0; i < smileyCollection.length; ++i)
{
smileyCollection[i] = '';
}
}
else
{
for (i = 0; i < smileyCollection.length; ++i)
{
smileyCollection[i] = '';
}
}
for (i = 0; i < smileyCollection.length; ++i)
{
if (i != 0)
if ( (i/maxNumberOfSmileysPerRow).toString().indexOf('.') == -1)
smileyBar = smileyBar + ' ';
smileyBar = smileyBar + smileyCollection[i];
}
// add SmileyBar
infoLink = '' +
'Smiley Script
';
smileyBarHtml = ' ^0^ usE EmOtiCoNz ' +
'AHhH! so maNy eMoTicOnz!! use them well ^^ pc -0-v ' +
infoLink + smileyBar + '
';
if (navigator.userAgent.indexOf('Mac') == -1)
{
if (document.getElementById('htmleditor'))
var obj1 = document.getElementById('htmleditor').parentNode;
else
{
if (document.getElementsByTagName('textarea')[0].getAttribute('name') == 'bdescr')
var obj1 = document.getElementsByTagName('textarea')[0].parentNode;
else
{
var allTextAreas = document.getElementsByTagName('textarea');
for (i = 0; i < allTextAreas.length; ++i)
{
if (allTextAreas[i].getAttribute('name') == 'bdescr')
{
var obj1 = allTextAreas[i].parentNode;
break;
}
}
}
}
var obj2 = document.createElement('span');
obj2.setAttribute('ID','idSmileyBar');
obj2.innerHTML = smileyBarHtml;
obj1.insertBefore(obj2,obj1.firstChild);
}
else
{
// alternative solution for the Mac
for (var i = 0 ; i < allTableData.length ; ++i )
{
if ((allTableData[i].innerHTML.toUpperCase().indexOf('TABLE') == -1) &&
(allTableData[i].innerHTML.indexOf('previewHTML()') == -1))
{
if (allTableData[i].innerHTML.toUpperCase().indexOf('(OPTIONAL)') != -1)
{
var temp = allTableData[i].innerHTML;
allTableData[i].innerHTML = temp + ' ' + smileyBarHtml;
break;
}
}
}
}
}
}
if (document.URL.indexOf('weblogs') != -1)
replaceTextSmileys();
// (c)2003 EasterEgg, http://www.xanga.com/easteregg
// A simple script to adjust the height of your Xanga's SIR-list
function adjustSirListHeight()
{
// *** define the height of your SIR-list in the line below
var sirListHeight = '250px';
var allTables = document.getElementsByTagName('tbody');
for (i=4; i < allTables.length; ++i)
{
if ((allTables[i].innerHTML.indexOf('Subscriptions/Subscr') != -1) &&
(allTables[i].innerHTML.toUpperCase().indexOf('
|