Log In · Register

 
Smilies in Entries help...
xxhellhathnofury...
post Apr 8 2005, 11:56 PM
Post #1


Yay, Me!
***

Group: Member
Posts: 71
Joined: Jan 2005
Member No: 87,837



I tried to override my default entry smiles with this code:

<!-- begin code provided by createblog.com -->
<script language=javascript>
var oldsmileys = new Array(

'http://www.xanga.com/Images/happy.gif',
'http://www.xanga.com/Images/sad.gif',
'http://www.xanga.com/Images/winky.gif',
'http://www.xanga.com/Images/silly.gif',
'http://www.xanga.com/Images/laughing.gif',
'http://www.xanga.com/Images/angry.gif',
'http://www.xanga.com/Images/censored.gif',
'http://www.xanga.com/Images/bitter.gif',
'http://www.xanga.com/Images/confused.gif',
'http://www.xanga.com/Images/clueless.gif',
'http://www.xanga.com/Images/wtf.gif',
'http://www.xanga.com/Images/shocked.gif',
'http://www.xanga.com/Images/stunned.gif',
'http://www.xanga.com/Images/surprised.gif',
'http://www.xanga.com/Images/whatevah.gif',
'http://www.xanga.com/Images/bummed.gif',
'http://www.xanga.com/Images/pleased.gif',
'http://www.xanga.com/Images/cool.gif',
'http://www.xanga.com/Images/blush.gif',
'http://www.xanga.com/Images/shy.gif',
'http://www.xanga.com/Images/kiss2.gif',
'http://www.xanga.com/Images/smooch.gif',
'http://www.xanga.com/Images/heart2.gif',
'http://www.xanga.com/Images/heart2.gif
);

var newsmileys = new Array(
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Happy.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Sad.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Wink.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Silly.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Laughing.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Angry.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Censored.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Bitter.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Confused.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Clueless.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/WTF.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Shocked.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Stunned.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Surprised.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Whatevah.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Bummed.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Pleased.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Cool.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Blush.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Shy.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Kiss2.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Smooch.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/Heart2.gif',
'http://i2.photobucket.com/albums/y5/xxhellhathnofuryxx/Emoticons/BigMouth.gif'
);

for (var i = 0; i < document.images.length; i++) {
for (var s = 0; s < oldsmileys.length; s++){
if (document.images[i].src == oldsmileys[s]){
newsmiley = document.createElement('img');
newsmiley.src = newsmileys[s];
document.images[i].parentNode.replaceChild(newsmiley, document.images[i]);
break;
}
}
}
</script>
<!-- end code provided by createblog.com -->


And it just won't work...I put alot of effort into it andI cannot get it to work!

I went by this thingy>> http://www.createblog.com/forums/index.php...1098&hl=smilies

Please help me! cry.gif
PS. Sorry about the codebox> It wasn't working for me...
 

Posts in this topic


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