| Programming PHP | PERL | ASP| ColdFusion| C++ Chat with other forum members about programming. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
This is the situation:There's a textbox and a button.When I click the button, the textbox should move to the right. When I click it again, the textbox should animate and move to the left.-=That's it=-I'm using Visual Studio 2008. C#
|
|
|||
You don't need C#, which runs on the server. You need to use JavaScript, which runs on the client.Put the textbox in a DIV. Button 1 calls a javascript function that gets a reference to the DIV, and on a timer calls recursively itself with new coordinates for the DIV until the end of page is reached. Button 2 calls a function that does the same, but the new coordinates are in the other direction.You could even have 1 function that has direction as a parameter. This is DHTML (which can be complicated), but basic DHTML.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 07:18 AM.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Ad Management by RedTyger





Linear Mode
