Author |
Topic  |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
Posted - 10 June 2001 : 13:47:18
|
I have an image that is used to submit a form. this form sometimes takes a couple minutes to get submited so i would like to make the image disappear when the form is submit. does anyone know the javascript for this? i know how to do it with a submit button.
brad
oh yea here is the html code i use for my image right now...
<a href="/exhibitparts/store/checkout/place_order.asp" onMouseOver="over('NextStep','/exhibitparts/images/next_step_red.gif');" onMouseOut="out('NextStep','/exhibitparts/images/next_step_blue.gif');"><img SRC="/exhibitparts/images/next_step_blue.gif" BORDER="0" HSPACE="0" VSPACE="0" ALT="Next Step" name="NextStep"></a>
Brad |
|
tilttek
Junior Member
 
Canada
333 Posts |
Posted - 11 June 2001 : 09:26:39
|
quote:
I have an image that is used to submit a form. this form sometimes takes a couple minutes to get submited so i would like to make the image disappear when the form is submit. does anyone know the javascript for this? i know how to do it with a submit button. <a href="/exhibitparts/store/checkout/place_order.asp" onMouseOver="over('NextStep','/exhibitparts/images/next_step_red.gif');" onMouseOut="out('NextStep','/exhibitparts/images/next_step_blue.gif');"><img SRC="/exhibitparts/images/next_step_blue.gif" BORDER="0" HSPACE="0" VSPACE="0" ALT="Next Step" name="NextStep"></a>
There is many way... Something like:
<a href... onClick="out('NextStep','/exhibitparts/images/next_step_invisible.gif');">
or
for IE... For NS 4.7 and 6 I have to look <a href... onClick="document.all.Tags("IMG")("NextStep").style.display = "None";">
Philippe Gamache http://www.tilttek.com http://www.lapageamelkor.com |
 |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
Posted - 11 June 2001 : 11:12:52
|
i was thinking about this, and tried it, but what happens is that it deletes the image, then when the mouse goes off the image, it puts the image back into the page.
if you want, i can make a sample html page for you to see exactly how it works with all the html, javascript, and everything
quote:
There is many way... Something like:
<a href... onClick="out('NextStep','/exhibitparts/images/next_step_invisible.gif');">
Brad |
 |
|
tilttek
Junior Member
 
Canada
333 Posts |
Posted - 11 June 2001 : 11:59:36
|
quote:
if you want, i can make a sample html page for you to see exactly how it works with all the html, javascript, and everything
Could be nice... Will try it tonight.
Philippe Gamache http://www.tilttek.com http://www.lapageamelkor.com |
 |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
|
|
Topic  |
|