![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
On a web page I have a graphic for a Shopping Cart Submit button. |
|
input type="image" name="submit" src="images/addtocart1.gif" |
#3
| |||
| |||
|
|
KiwiBrian <briantoz (AT) ihug (DOT) co.nz> scripsit: On a web page I have a graphic for a Shopping Cart Submit button. You asked the same question in alt.html. If you want help in this group, please summarize the answers you got elsewhere and explain why they were not satisfactory. input type="image" name="submit" src="images/addtocart1.gif" You have a much more serious problem there than the visual rendering problem that you are now struggling with. What happens on a text-based user agent, or on a graphic browser with image loading disabled? |
#4
| |||
| |||
|
|
On a web page I have a graphic for a Shopping Cart Submit button. It is within a form and working fine. I would like to perform an image swap to an identical graphic of a different colour when I hover over the button. Can anyone show me how to do this, or point me to an implementation. My present code for the submit button is:- input type="image" name="submit" src="images/addtocart1.gif" This changes the cursor to a hand, and operates the button when clicked. I just want to add the image swap on hover. Must work identically on IE6 and Firefox. I have Googled for hours, and tried many options, all unsuccessfully so far. TIA for any advice Brian Tozer |
#5
| |||
| |||
|
|
KiwiBrian <briantoz (AT) ihug (DOT) co.nz> scripsit: On a web page I have a graphic for a Shopping Cart Submit button. You asked the same question in alt.html. If you want help in this group, please summarize the answers you got elsewhere and explain why they were not satisfactory. input type="image" name="submit" src="images/addtocart1.gif" You have a much more serious problem there than the visual rendering problem that you are now struggling with. What happens on a text-based user agent, or on a graphic browser with image loading disabled? |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#6
| |||
| |||
|
|
On a web page I have a graphic for a Shopping Cart Submit button. It is within a form and working fine. I would like to perform an image swap to an identical graphic of a different colour when I hover over the button. Can anyone show me how to do this, or point me to an implementation. My present code for the submit button is:- input type="image" name="submit" src="images/addtocart1.gif" This changes the cursor to a hand, and operates the button when clicked. I just want to add the image swap on hover. Must work identically on IE6 and Firefox. I have Googled for hours, and tried many options, all unsuccessfully so far. TIA for any advice Brian Tozer |
#7
| |||
| |||
|
|
The only way to do this in CSS _AND_ to have it work in IE6 is to replace your submit buttons with links. |
|
a class="addToCart" href="javascript:document.MyForm.submit();">Add To Cart</a |
#8
| |||
| |||
|
|
Martin Eyles <martin.eyles (AT) NOSPAMbytronic (DOT) com> scripsit: The only way to do this in CSS _AND_ to have it work in IE6 is to replace your submit buttons with links. Why should be done in CSS only? (Assuming you want to do it in the first place, which is a bad idea.) a class="addToCart" href="javascript:document.MyForm.submit();">Add To Cart</a Although you technically play with "CSS only" as far as the image swap is considered, your approach has made you replace the submit button by a link that does nothing when JavaScript is off, i.e. the form cannot be submitted without allowing JavaScript execution. Risking _essential functionality_ to achieve some visual effect _and_ to achieve it in "CSS only" is absurd in WWW authoring. If you don't want to use JavaScript for the image swap while making the functionality dependent on JavaScript in a more important issue, you should at least generate the above markup dynamically with JavaScript and insert a <noscript> element with a normal submit button as its content. |
![]() |
| Thread Tools | |
| Display Modes | |
| |