Results 1 to 2 of 2

Thread: How do I use this jquery plugin?

  1. #1
    Join Date
    Mar 2011

    How do I use this jquery plugin?

    This is probably the worst question ever uttered onto this forum, but I have really no javascript nor jquery experience. I just want to use this code on my site, and be on my way. The code is timeago and can be found here: http://timeago.yarp.com/

    The steps to use the timeago plugin seems really simple. Unfortunately, I am a pretty simple man, and do not know how to use it.

    Can someone babywalk me through this? I just go to the second part (domready) before I was in utter confusion, with google not helping.

    Please, all feedback will be useful. Thanks!

  2. #2
    Join Date
    Feb 2011
    1) download the latest jquery javascript file from http://jquery.com/, and the timeago script from that site.
    2) paste it in the head of your document:
    HTML Code:
    <script src="jquery.min.js" type="text/javascript"></script>
    <script src="jquery.timeago.js" type="text/javascript"></script>
    3)open a new <script>, and add the script:
    HTML Code:
    jQuery(document).ready(function() {
    4) make an abbr with a timeago class.
    HTML Code:
    <abbr class="timeago" title="2008-07-17T09:24:17Z">
    and the rest is in that link.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center