Analog clock in navbar

MobileHacks

New Member
This will add an anolog clock to the right of the navbar

The Analog Clock shows in realtime, what time it is in your region.

More info and screenshot visit

Put a FREE Analog Clock on your homepage

Find in Navbar
PHP:
[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="alt1" width="100%">
        <if condition="is_array($navbits)">
            <table cellpadding="0" cellspacing="0" border="0">
            <tr valign="bottom">
Replace with
PHP:
[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="alt1" width="100%"><span style="float:$stylevar[align=right]">
            <SCRIPT LANGUAGE="JavaScript">var clocksize=40;</SCRIPT>
<SCRIPT SRC="http://gheos.net/js/clock.js"></SCRIPT>
        </span>
        
        <if condition="is_array($navbits)">
            <table cellpadding="0" cellspacing="0" border="0">
            <tr valign="bottom">
Note you can change the size of the clock ie clocksize=40
 
navbits is part of navbar.. its the bits of the navbar that get "processed" or whatever you wanna call it... and yours may not be exactly like that code depending on if you changed anything or have custom skin.. try searching your templates for $navbits ...

personally, i would leave out this line:
PHP:
[cellspacing]" border="0" width="100%" align="center">
<tr>

and do it this way:


find:
PHP:
    <td class="alt1" width="100%">
        <if condition="is_array($navbits)">
            <table cellpadding="0" cellspacing="0" border="0">
            <tr valign="bottom">



replace with:
PHP:
    <td class="alt1" width="100%"><span style="float:$stylevar[align=right]">
            <SCRIPT LANGUAGE="JavaScript">var clocksize=40;</SCRIPT>
<SCRIPT SRC="http://gheos.net/js/clock.js"></SCRIPT>
        </span>
        
        <if condition="is_array($navbits)">
            <table cellpadding="0" cellspacing="0" border="0">
            <tr valign="bottom">

its right at the very top of the navbar template..

admincp-->style manager-->Navigation / Breadcrumb Templates-->navbar


now, if you have an edited/custom theme/style goin on, then it might be a little harder to locate the right spot to put it.. i would start with looking for that "is_array($navbits)" part...

but thats just my take on it... maybe im completely wrong.. hmmmm..... it has happened before........ once! .. lol jk

hope that helps...... im no Hoxxy or mobilehacks or anyone else for that matter... lol!

good luck m8!
 
Back
Top