| Xanga - Smiley Sets Add custom smiley sets to your comment page to spice up the comments left by your visitors! This is very fun and unique for your xanga. |
 |
|
 |
12-10-2004, 06:32 AM
|
#1 (permalink)
|
|
Junior Member
dorischu is offline
Join Date: Oct 2004
Posts: 26
|
How to Use:
-Copy code
-Go into look and feel
-Paste into website stats
This is the version 2 that i would like to share with you all.
Code:
<!-- Smiley Script : Blogring.net -->
<script type="text/javascript">
// *** Smiley Script V 3.0 ***
// Original author: EasterEgg (http://www.xanga.com/easteregg)
//
// You can use this code freely, as long as the entire script remains
// intact, including the copyright notice.
//
//
// VERSION HISTORY
//
// 1.0 (February 11, 2003)
// - initial release
//
// 2.0 (May 12, 2003)
// - 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 one row
// - customizable smiley button size
// - easily adjustable: only two arrays to maintain
//
// 2.1 (May 12, 2003)
// - preloading images for faster performance
// - XP Bugfix
//
// 2.2 (May 17, 2003)
// - necessary adjustments made because of recent changes at Xanga
// - made suitable for Mac users!
// - runs only at the comment page for increased performance
//
// 3.0 (Nov 5, 2005)
// - script was broken, due to changes at Xanga. Fixed.
// - script overall revised, some obsolete code removed.
//
// 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).
//
//Smiley credits
/* Smiley Script Version 2 , Qty: 30**
by dorischu, <a href='http://www.xanga.com/dorischu' target='_blank'>http://www.xanga.com/dorischu</a>
You can use this code freely, as long as the entire script remains intact. */
//find more smileys at blogring.net
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 replaceBRTextSmileys()
{
* // ***add textual emoticons to the array below
* var BRtextSmileys = new Array(
": FAN :",
": FORTUNATE :",
": JUMP :",
": FLYAWAY :",
": COOK :",
": BASKETBALL :",
": DONCARE :",
": DOWN :",
": CONFUSE :",
": PRETEND :",
": SICK :",
": TURN :",
": INLOVE :",
": TOGETHER :",
": OOPZ :",
": BLUR :",
": WRITE :",
": MAGIC :",
": DANCE :",
": HELLO :",
": SHOUT :",
": NINJA :",
": WHAT :",
": SING :",
": CRY :",
": EAT :",
": REQUEST :",
": EXERCISE :",
": COOL :",
": VOLLEYBALL :");
* // *** add the url's from the corresponding images below
* var BRrealSmileys = new Array(
"http://img95.exs.cx/img95/8647/dorisv2icon014we.gif",
"http://img95.exs.cx/img95/2552/dorisv2icon024gb.gif",
"http://img95.exs.cx/img95/6858/dorisv2icon034zb.gif",
"http://img95.exs.cx/img95/5586/dorisv2icon040pd.gif",
"http://img95.exs.cx/img95/2054/dorisv2icon053li.gif",
"http://img95.exs.cx/img95/5277/dorisv2icon061oe.gif",
"http://img95.exs.cx/img95/5920/dorisv2icon070ed.gif",
"http://img95.exs.cx/img95/5734/dorisv2icon085in.gif",
"http://img95.exs.cx/img95/2990/dorisv2icon099um.gif",
"http://img95.exs.cx/img95/2921/dorisv2icon105dp.gif",
"http://img95.exs.cx/img95/797/dorisv2icon116lb.gif",
"http://img95.exs.cx/img95/8482/dorisv2icon122ur.gif",
"http://img95.exs.cx/img95/7555/dorisv2icon130zu.gif",
"http://img95.exs.cx/img95/4602/dorisv2icon147ho.gif",
"http://img95.exs.cx/img95/8603/dorisv2icon152mk.gif",
"http://img95.exs.cx/img95/1218/dorisv2icon167yo.gif",
"http://img95.exs.cx/img95/1102/dorisv2icon174zt.gif",
"http://img95.exs.cx/img95/997/dorisv2icon181ww.gif",
"http://img95.exs.cx/img95/2491/dorisv2icon197ej.gif",
"http://img95.exs.cx/img95/4961/dorisv2icon203zy.gif",
"http://img95.exs.cx/img95/4276/dorisv2icon218ie.gif",
"http://img95.exs.cx/img95/9930/dorisv2icon225tu.gif",
"http://img95.exs.cx/img95/488/dorisv2icon235ki.gif",
"http://img95.exs.cx/img95/9583/dorisv2icon244xg.gif",
"http://img95.exs.cx/img95/365/dorisv2icon257gg.gif",
"http://img95.exs.cx/img95/3997/dorisv2icon267fs.gif",
"http://img95.exs.cx/img95/2973/dorisv2icon277vp.gif",
"http://img95.exs.cx/img95/6582/dorisv2icon286am.gif",
"http://img95.exs.cx/img95/796/dorisv2icon295zu.gif",
"http://img95.exs.cx/img95/3546/dorisv2icon303vc.gif");
* // *** number of smileys that will be displayed per row
* var maxNumberOfSmileysPerRow = 6;
* // *** button size in pixels
* var buttonSize = 40;
* // preloading images
* var preloadedImages = new Array(BRrealSmileys.length);
* for (i = 0; i < preloadedImages.length; ++i)
* {
* * * preloadedImages[i] = new Image();
* * * preloadedImages[i].src = BRrealSmileys[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 < BRtextSmileys.length; ++n )
* * * {
* * * * * if ((allTableData[i].innerHTML.toUpperCase().indexOf('TABLE') == -1) &&
* * * * * * * (allTableData[i].innerHTML.indexOf('previewHTML()') == -1))
* * * * * {
* * * * * * * indx = allTableData[i].innerHTML.indexOf(BRtextSmileys[n]);
* * * * * * * if (indx != -1)
* * * * * * * {
* * * * * * * * * while (indx != -1)
* * * * * * * * * { *
* * * * * * * * * * * replacement = '';
* * * * * * * * * * * indx = allTableData[i].innerHTML.indexOf(BRtextSmileys[n]);
* * * * * * * * * * * smiley = '<img src=\"' + BRrealSmileys[n] + '">'
* * * * * * * * * * * replacement = allTableData[i].innerHTML.replace(BRtextSmileys[n],smiley);
* * * * * * * * * * * allTableData[i].innerHTML = replacement; * * * * * * * * *
* * * * * * * * * } * * * * * * * * *
* * * * * * * }
* * * * * }
* * *
* * * }
* }
*
* if (document.getElementById('idSmileyBar'))
* {
* * * var smileyCollection = new Array(BRrealSmileys.length);
* * * var smileyBar = '';
* * *
* * * if (document.getElementById('htmleditor'))
* * * {
* * * * * for (i = 0; i < smileyCollection.length; ++i)
* * * * * {
* * * * * * * smileyCollection[i] = '<button type="button" value="" ' +
* * * * * * * * * 'style="width:' + buttonSize + 'px; height:' +
* * * * * * * * * buttonSize + 'px;" onclick="javascript:insertHTML(\' ' +
* * * * * * * * * BRtextSmileys[i] + '\'); return false;">' +
* * * * * * * * * '<img src=\"' + BRrealSmileys[i] + '" alt="' + BRtextSmileys[i] +
* * * * * * * * * '"></button>';
* * * * * }
* * * }
* * * else
* * * {
* * * * *for (i = 0; i < smileyCollection.length; ++i)
* * * * * {
* * * * * * * smileyCollection[i] = '<button type="button" value="" ' +
* * * * * * * * * 'style="width:' + buttonSize + 'px; height:' +
* * * * * * * * * buttonSize + 'px;" onclick="javascript:typeSmiley(\' ' +
* * * * * * * * * BRtextSmileys[i] + '\'); return false;">' +
* * * * * * * * * '<img src=\"' + BRrealSmileys[i] + '" alt="' + BRtextSmileys[i] +
* * * * * * * * * '"></button>';
* * * * * }
* * * }
* * * *
* * * for (i = 0; i < smileyCollection.length; ++i)
* * * { *
* * * * *if (i != 0)
* * * * * * *if ( (i/maxNumberOfSmileysPerRow).toString().indexOf('.') == -1)
* * * * * * * * *smileyBar = smileyBar + '<BR>';
* * * * *smileyBar = smileyBar + smileyCollection[i];
* * * }
* * * // add SmileyBar
* * * infoLink = '<a href="http://www.xanga.com/dorischu"' +
'target=blank><font style="font-size: xx-small; font-weight: normal;">' +
'Smiley Script Version 2</font><a/><br /><br />';
smileyBarHtml = '<br /><b>^dorischu smilies version 2^</b><br /><font style="font-size: xx-small">' +
'Click to include in your comment!</font> ' +
* * * * * infoLink + smileyBar + '<br><br>';
* * * obj2 = document.getElementById('idSmileyBar');
* * * obj2.innerHTML = smileyBarHtml;
* }
}
if (document.getElementById('idSmileyBar'))
* replaceBRTextSmileys(); *
</script>
<!-- Smiley Script : Blogring.net -->
|
|
|
|
12-10-2004, 07:13 AM
|
#2 (permalink)
|
|
I got 1,500 posts!
hanaaaa is offline
Join Date: Jul 2004
Posts: 3,597
|
i love your smileys <3
keep them up!
|
|
|
|
12-10-2004, 11:01 AM
|
#3 (permalink)
|
|
I got 1,500 posts!
sociallydsoryntd is offline
Join Date: Mar 2004
Location: CA, USA
Posts: 5,526
|
Aww that's soo cute. I'm gonna use them. :]
|
|
|
|
12-10-2004, 05:27 PM
|
#4 (permalink)
|
|
I got 1,500 posts!
xLiLyy x3 is offline
Join Date: Jul 2004
Location: california
Posts: 1,678
|
lol, that's so cute, but im not gonna use them tho..it's wont match my theme..nice job anyway..
|
|
|
|
12-10-2004, 11:35 PM
|
#5 (permalink)
|
|
Senior Member
FiendishBlue is offline
Join Date: Jul 2004
Location: Chicago
Posts: 547
|
Aww, very cute ^^ Hah..awesome job!
|
|
|
|
01-28-2005, 06:12 AM
|
#6 (permalink)
|
|
I got 1,500 posts!
s n o w w h i t e is offline
Join Date: Aug 2004
Posts: 5,545
|
omg these are my fave smilys yet! i love the pink these are GREAT
|
|
|
|
01-30-2005, 05:22 PM
|
#7 (permalink)
|
|
Premium Member
*Ohhlivia :D is offline
Join Date: Jan 2005
Posts: 1,109
|
oh my gohs! thats so cute! i love it!
__________________
<center>
Formly known as Xo_lilbabiiangl_oX
Now I am <span style=\'color:red\'>*Ohhlivia </span></center>
|
|
|
|
03-14-2005, 01:54 AM
|
#8 (permalink)
|
|
Junior Member
NaTa_R is offline
Join Date: Sep 2004
Posts: 3
|
super lindo!!!!!!
cute!!!
|
|
|
|
03-23-2005, 07:30 PM
|
#9 (permalink)
|
|
Junior Member
lilaznvi3tgherl is offline
Join Date: Feb 2005
Posts: 8
|
thatz so cute!!!keep up the GOOD work!!!
|
|
|
|
04-03-2005, 04:39 PM
|
#10 (permalink)
|
|
Junior Member
punkassbabygurl is offline
Join Date: Aug 2004
Location: scotland
Posts: 12
|
awwww omg they r so amazingly adorable!!! hehe ill definatley use them...good job!!!!
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 09:22 AM. |
|
|
|