Get the Flash Player to see the slideshow.
Home » Site News

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! :) :D :$ :p :( ;) :k :@ :# :x :o

No related posts.

Previous Post:
Next Post:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

6 Comments »

  • 冬冬 said:

    I put chet’s cd “you know where” already, go get it when you have time la~ :)

  • HAL9209 said:

    Thank you 冬冬!! you are awesome! :)

  • phydeaux3 said:

    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.

  • HAL9209 said:

    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! :)

  • phydeaux3 said:

    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. :-)

  • HAL9209 said:

    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!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.