![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
I'm desiging a site and need the user to push a button and have an image change
my logic is: the image src is a varibale that when the button is pushed the variable is incremented what is wrong with my code. The sub nxt_OnClick() is not working <% Dim x x=1 nxt_OnClick(x) sub nxt_OnClick(y) y = y + 1 response.write y end sub %> <html> <body> <form name = "f1" > <input type= "button" name= "nxt" id= "nxt" value= "nxt" > </form> </body> </html> |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
May be u need to specify 2 things!
The action of the form which leads to the generation of the dynamic page (asp) and shows the value of y and redirect from that page back to the form page may be the onclick event of the button should direct to the page...
__________________
Visit: http://www.somaiya.edu |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
interesting...never thought of that
but i dont want the page to be refreshed .... its a property management site and the user is gonna have to be able to scroll through various photos |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|