Changing Position of Textbox
-
How can I change the position of a Textbox via javascript. Any help regarding this . Thankx in advance.
-
How can I change the position of a Textbox via javascript. Any help regarding this . Thankx in advance.
You'd change the style of the textbox in order to move it, by changing it's padding, or floating it, etc. Basically, you move it using CSS.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
You'd change the style of the textbox in order to move it, by changing it's padding, or floating it, etc. Basically, you move it using CSS.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Thank u very much, Can u give me an example.
-
Thank u very much, Can u give me an example.
var t=0; function controlMover(obj) { ; obj=(typeof obj=="object")?obj:document.getElementById(obj); var _top=parseInt(obj.style.top)+1; var _left=parseInt(obj.style.left)+1; obj.style.top=_top+"px"; obj.style.left=_left+"px"; if(_left==500) { clearTimeout(t); } else { t= setTimeout("controlMover('"+obj.id+"')",10); } } CHECK THIS OUT :)
Ravi Kant Srivastava (System Analyst) HandsOn Technology & Engineering Gurgaon (India) e-mail:ravikant@hte.co.in
-
var t=0; function controlMover(obj) { ; obj=(typeof obj=="object")?obj:document.getElementById(obj); var _top=parseInt(obj.style.top)+1; var _left=parseInt(obj.style.left)+1; obj.style.top=_top+"px"; obj.style.left=_left+"px"; if(_left==500) { clearTimeout(t); } else { t= setTimeout("controlMover('"+obj.id+"')",10); } } CHECK THIS OUT :)
Ravi Kant Srivastava (System Analyst) HandsOn Technology & Engineering Gurgaon (India) e-mail:ravikant@hte.co.in
Thank u very much its realy helpful.