Thread:Mousekat/@comment-5216463-20120620221658/@comment-3420714-20120620223659

Sure thing. First, you need to create page on your wiki called MediaWiki:Common.js/DisplayClock. Next, you need to copy and paste the following text into that page:

// ============================================================ // DisplayClock // ============================================================ var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)"); $('#showdate').empty.append(' ' + UTCDate.substring(5) + ' '); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 5000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 5000);    $('#displayTimer').css({'font-size': "12px"}); }); //

Then, save the page.

After this is done, create a page called MediaWiki:Common.js on you wiki (if it does not already exist). Copy and paste the following text into that page:

//Displays a clock on the global nav bar importScript("MediaWiki:Common.js/DisplayClock.js");

Then save the page, and your done. Should you encounter any problems, don't hesitate to leave me a new message, or reply to this one. Hope you enjoy your stay here!