I have clock java scripts [.png]

http://msig.info/web2.php#clock
(I'm resize all image to 12x31)

in /include/user/ have

- 0.png
- 1.png
- 2.png
- 3.png
- 4.png
- 5.png
- 6.png
- 7.png
- 8.png
- 9.png
- colon.png
- clock.js

clock.js

var clock = 0;

function UpdateClock() {
   if(clock) {
      clearTimeout(clock);
      clock = 0;
   }

   document.getElementById('clock').innerHTML = ReplaceNumbers(GetTime());
   
   clock = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
   clock = setTimeout("UpdateClock()", 500);
}

function GetTime(){

   var tDate = new Date();
   
   hour = ''+tDate.getHours();
   minutes = ''+tDate.getMinutes();
   seconds = ''+tDate.getSeconds();
   if(hour.length == 1){ hour = '0'+hour; }
   if(minutes.length == 1){ minutes = '0'+minutes; }
   if(seconds.length == 1){ seconds = '0'+seconds; }

   return hour+':'+minutes+':'+seconds;
}

function ReplaceNumbers(string){
   string = string.replace(/0/g,'<img src="0.png" alt="0"/>');
   string = string.replace(/1/g,'<img src="1.png" alt="1"/>');
   string = string.replace(/2/g,'<img src="2.png" alt="2"/>');
   string = string.replace(/3/g,'<img src="3.png" alt="3"/>');
   string = string.replace(/4/g,'<img src="4.png" alt="4"/>');
   string = string.replace(/5/g,'<img src="5.png" alt="5"/>');
   string = string.replace(/6/g,'<img src="6.png" alt="6"/>');
   string = string.replace(/7/g,'<img src="7.png" alt="7"/>');
   string = string.replace(/8/g,'<img src="8.png" alt="8"/>');
   string = string.replace(/9/g,'<img src="9.png" alt="9"/>');
   string = string.replace(/:/g,'<img src="colon.png" alt=":"/>');
   return string;
}

function KillClock() {
   if(clock) {
      clearTimeout(clock);
      clock = 0;
   }
}

- clock.php

clock.php

<HTML>
<HEAD>
<TITLE> clock </TITLE>
<script type="text/javascript" src="clock.js"></script>
</HEAD>
  <body onload="StartClock()" onunload="KillClock()">
<div class="block">
<h2><span>Clock</span></h2>
<div class="box">
   <div id="groups" class="inbox">
<center><p><div id="clock" name="clock">Loading Clock...</p> </center>
   </div>
   </div>
</div>
</BODY>
</HTML>

in /include/template/

- portal.tpl

portal.tpl

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 180px;
        float: left;
    }
 #right {
        width: 180px;
        float: right;
    }
    #main {
       
     margin-left: 190px;
     margin-right: 190px;
    }
</style>
<script type="text/javascript" src="clock.js"></script>
</head>
  <body onload="StartClock()" onunload="KillClock()">
 
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
 
<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>
  
<div id="left">    

<div class="block">
<h2><span>Navigation</span></h2>
<div class="box">

<pun_sidelinks>

</div>
</div>

<pun_include "login.php">
<pun_include "statistics.php">

<pun_include "clock.php">
<pun_include "groups.php">







</div>

<div id="right">    

<pun_include "recenttopics.php">

<pun_include "topforums.php">

<pun_include "topposters.php">

</div>

    <div id="main">
    
       
    
        <pun_main>
        
    </div>    


 
<div class="clearer"></div>
 
<pun_footer>
 
</div>
</div>
 
</body>
</html>

when I see in index portal page it not show png image clock but it show "Loading Clock..."

pls help me

sorry my bad english sorry sorry

sorry me disable -*- sorry sorry


thx..

problem with IE7 smilies not show ???

it not show pic but show

:) :| :( :D :o ;) :/

http://img141.imageshack.us/img141/1787/untitledfu4.jpg

can add button in mod easy bbcode ?

<input type="button" value=" B " name="B" onclick="insert_text('[b]','[/b]')" />

How to add

[mp3 url="path/file.mp3"]

in

"insert_text('[b]','[/b]')"

sorry my bad english

include/template/main.tpl

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<script>

var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ns4=document.layers?1:0
var posleft=1
var idoftrembleobject="trembletext"
var trembleobject

function starttremble() {
    if (ie || ns4 || ns6) {
        if (ie) {
            trembleobject=eval("document.all."+idoftrembleobject+".style")
        }
        if (ns6) {
            trembleobject=idoftrembleobject
        }
        
        dotremble()
    }
}
function dotremble() {
    posleft*=-1
    if (ie) {
        trembleobject.posLeft+=posleft  
    }
    if (ns6) {
        var newpos=parseInt(document.getElementById(trembleobject).style.left)+posleft
        document.getElementById(trembleobject).style.left=newpos
    }
    var timer=setTimeout("dotremble()",20)
}
onload=starttremble
</script>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>

</body>
</html>

include/parser.php

Download parser.php Now
http://www.filefactory.com/file/e5f53d/

how to get topic in "Show recent posts" show on index forum

Show under

    Newest registered user: .............                                   Total number of registered users: 3
    Registered users online: 1                                              Total number of topics: 5
    Registered users today: 1                                               Total number of posts: 12
    Guests online: 0 


Before

    Show recent posts                                                         Powered by PunBB
    Show unanswered posts                                                © Copyright 2002–2005 Rickard Andersson
    Show your subscribed topics
    Show your posts



sorry my bad english

Have

<script>

var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ns4=document.layers?1:0
var posleft=1
var idoftrembleobject="trembletext"
var trembleobject

function starttremble() {...................

in view source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script>

var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ns4=document.layers?1:0
var posleft=1
var idoftrembleobject="trembletext"
var trembleobject

function starttremble() {
    if (ie || ns4 || ns6) {
        if (ie) {
            trembleobject=eval("document.all."+idoftrembleobject+".style")
        }
        if (ns6) {
            trembleobject=idoftrembleobject
        }
        
        dotremble()
    }
}
function dotremble() {
    posleft*=-1
    if (ie) {
        trembleobject.posLeft+=posleft  
    }
    if (ns6) {
        var newpos=parseInt(document.getElementById(trembleobject).style.left)+posleft
        document.getElementById(trembleobject).style.left=newpos
    }
    var timer=setTimeout("dotremble()",20)
}
onload=starttremble
</script>
<title>FLC Labs / ????? Shake Tag</title>

<link rel="stylesheet" type="text/css" href="style/VbStyle-Sand.css" />
<script type="text/javascript">
<!--
function process_form(the_form)
{
    var element_names = new Object()
    element_names["req_message"] = "Message"

    if (document.all || document.getElementById)
    {
        for (i = 0; i < the_form.length; ++i)
        {
            var elem = the_form.elements[i]
            if (elem.name && elem.name.substring(0, 4) == "req_")
            {
                if (elem.type && (elem.type=="text" || elem.type=="textarea" || elem.type=="password" || elem.type=="file") && elem.value=='')
                {
                    alert("\"" + element_names[elem.name] + "\" is a required field in this form.")
                    elem.focus()
                    return false
                }
            }
        }
    }

    return true
}
// -->
</script>
</head>
<body>

<div id="punwrap">

<div id="punviewtopic" class="pun">............................
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<script>

var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ns4=document.layers?1:0
var posleft=1
var idoftrembleobject="trembletext"
var trembleobject

function starttremble() {
    if (ie || ns4 || ns6) {
        if (ie) {
            trembleobject=eval("document.all."+idoftrembleobject+".style")
        }
        if (ns6) {
            trembleobject=idoftrembleobject
        }
        
        dotremble()
    }
}
function dotremble() {
    posleft*=-1
    if (ie) {
        trembleobject.posLeft+=posleft  
    }
    if (ns6) {
        var newpos=parseInt(document.getElementById(trembleobject).style.left)+posleft
        document.getElementById(trembleobject).style.left=newpos
    }
    var timer=setTimeout("dotremble()",20)
}
onload=starttremble
</script>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>

</body>
</html>

true ?

Thank You smile:)




it doesn't work.....no code error, nothing

sorry my bad english

see images smile

http://img443.imageshack.us/img443/1270/shake1jz8.jpg

text not shake /ahead space text

++++++++++++++++++++++++++++++++++++++++++++++++

http://img187.imageshack.us/img187/1650/shake2tw0.jpg

blank..... not have text


please help me smile

Requests SHAKE TEXT Tag

[shake]text blablabla[/shake]

can make this tag ?

example:

<script>

var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ns4=document.layers?1:0
var posleft=1
var idoftrembleobject="trembletext"
var trembleobject

function starttremble() {
    if (ie || ns4 || ns6) {
        if (ie) {
            trembleobject=eval("document.all."+idoftrembleobject+".style")
        }
        if (ns6) {
            trembleobject=idoftrembleobject
        }
        
        dotremble()
    }
}
function dotremble() {
    posleft*=-1
    if (ie) {
        trembleobject.posLeft+=posleft  
    }
    if (ns6) {
        var newpos=parseInt(document.getElementById(trembleobject).style.left)+posleft
        document.getElementById(trembleobject).style.left=newpos
    }
    var timer=setTimeout("dotremble()",20)
}
onload=starttremble
</script>

<div id="tremblebox" style="position:relative">
<span id="trembletext" style="position:absolute;left:280px;top:30px;">
<font size=2 color=black face=Verdana>Shake word on this.</font>
</span>
</div>

Save this code to .html

and see text test result

can make this tag ?




sorry my bad english smile

Hi !

where link to download ?

not have in download page [ http://punbb.org/downloads.php ]

and can use in PunBB 1.2.14 ???