reset and begin
7/06/2009

Code count time

<pre><script type="text/javascript">

var x=10,y=10;

var timeout;

function loadsrc()

{

var objhi;

objhi=document.getElementById('obj1');


objhi.style.position="relative"; // move

objhi.style.top=100+y+"px";// up +1

y++;


var d = new Date();

var mes=d.getSeconds();

var h=d.getHours();

var minute=d.getMinutes();

var thang=d.getMonth();

var nam=d.getYear();

window.status="gio"+h+"phut"+minute+"giay"+mes+"thang:"+thang+nam;

timeout=setTimeout(loadsrc,100);// for with functionsetTimeout

}

html

<img id="obj1" src="co.jpg" height="100" width="100" /></img>

<a onclick="loadsrc()">chay</a>

<a onclick="dungsrc()">dung</a>

</pre>


Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .