Making faces
5 May 2007
791 views
6 Comments
My blog is now emoticon-able! (auto convert, all you need is to type it in just like when u do in IM) How fun is that!
:$ :p
:k :@ :#
No related posts.
My blog is now emoticon-able! (auto convert, all you need is to type it in just like when u do in IM) How fun is that!
:$ :p
:k :@ :#
No related posts.
I put chet’s cd “you know where” already, go get it when you have time la~
Thank you 冬冬!! you are awesome!
Nice, but I think the ‘smileys’ are what’s killing the calendar when they load. Leave it up and I’ll take a look deeper later and let you know for sure.
phydeaux3: Thanks! I was wondering it must be a conflict with something else in my blog! I just couldn’t figure out if it’s the smileys or the tag cloud or the lightbox script. Now that we know it’s the smileys. Let me know if u find a solution. I really appreciate your help! thanks again!
Ok, I think I see the problem.
Whenever you do a replace on the text on the page, it will kill any javascript events added to that text.
So scripts like the smiley stuff needs to be targetted to only the sections that need it, like the post body, comments body sections. Otherwise it will kill other things when it runs.
I’m not sure where you got that version of the smileys, but it has an additional section that is killing the calendar. The first part of the script is only acting on the posts/comments..which is good. But near the end, it has another section that targets anything with the class of “widget-content” (basically any widgets) starting with this line
var d = document.getElementsByClassName(‘widget-content’);
That’s the section that is killing the calendar. And it’s probably unnecessary. Would sections that are sidebar widgets etc really need the smiley script to act on them?
Anyway, either remove that whole bit that acts on the widget-content…of if you haven’t seen it that version looks like it may be a modified one of Aditya’s
Blogger Smilies
I’m pretty sure Aditya’s only targets the correct areas, and probably should work without modification with the calendar.
Hmmm. I think I see where you got it from. It looks like they took aditya’s script and “Improved” it.
I would go with Aditya’s version. He knows what he is doing.
phydeaux3: I deleted the section you mentioned and the calendar is back to normal! Thanks so much for taking the time to look through my code! thanks!
Leave your response!
Lobster Roll
Lobster Rolls in NYC!!!
Lost Exhibit
Want to experience Lost in real life? You can't miss this exhibit!!!....
Rest in Peace
Goodbye Steve.
Scott Pilgrim vs the World
The most fun I had in the theater in a long long time, this is epic epicness!
One month with iPad 2
My thoughts on the iPad after one month...
Walking Dead
The most anticipated series of the season for me...
Macaroon discovery
A tasty discovery...
Williamsburg Waterfront Sculpture Exhibition
Arts in the Williamsburg Waterfront...
Big Bang Doctor
Season 5 finale wraps up an amazing season of Doctor Who...
Listening Right Now...
Recent Albums
Categories
Archives
Calendar
Subscribe
Blogroll
Tag Cloud
Follow me on Twitter
Recent Comments
Most Commented
Most Viewed