Announcement

Collapse
No announcement yet.

clock code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • clock code

    Hi please can someone help me with this code

    i want this clock in my navbar on the left before the forum title and for it to be separated with a margin before the forum title


    here is the code

    Code:
    <SCRIPT LANGUAGE="JavaScript">var clocksize=40;</SCRIPT>
    <SCRIPT SRC="http://gheos.net/js/clock.js"></SCRIPT>
    i have added it below this code in the navbar template but the clock shows under the forum title but i want it before and to have a verticle line after it to seperate it from the forum title
    Code:
     
    <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>
    if i have posted in the wrong section sorry

    thanks in advance

  • #2
    A float might work. See this thread:

    http://www.vbulletin.com/forum/showthread.php?t=130084

    That code floats right. Just change the right to left.

    Comment


    • #3
      hi first of all thank you for helping

      i have done this

      Code:
       
      <span style="float:$stylevar[left]">
         <SCRIPT LANGUAGE="JavaScript">var clocksize=40;</SCRIPT>
      <SCRIPT SRC="http://gheos.net/js/clock.js"></SCRIPT>
        </span>
      and added under this code

      Code:
       
      <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>
      but it still is showing under the writing wht have i done wrong please

      Comment


      • #4
        also did this

        Code:
         
        <td class="alt1" width="100%">
          <span style="float:$stylevar[left]">
           <SCRIPT LANGUAGE="JavaScript">var clocksize=40;</SCRIPT>
        <SCRIPT SRC="http://gheos.net/js/clock.js"></SCRIPT>
          </span>
          <if condition="is_array($navbits)">
        still showing uder the writing i want it to show to the left of the writing but the writing to still be centred and a line seperating it thanks

        Comment


        • #5
          You will have to mess with the HTML formatting. If you continue to have problems then the people in the HTML forum may be able to assist:

          http://www.vbulletin.com/forum/forumdisplay.php?f=12

          Comment


          • #6
            Originally posted by Jake Bunce View Post
            You will have to mess with the HTML formatting. If you continue to have problems then the people in the HTML forum may be able to assist:

            http://www.vbulletin.com/forum/forumdisplay.php?f=12
            ok thanks for your help i used the code on right of the navbar and now it look ok thank you for the float code

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X