View Full Version : Rollover button with Paypal buy button

02-13-2007, 08:09 AM

I using a buy button with paypal and I've managed to get it to use my own custom button which works just as I want it to but I can't get it to have a rollover state.

I'm using this code from Paypal which points to my up state button but is there anyway I can references a rollover state for this button?

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="http://www.creativeauto.co.uk/images/buy_btn_up.jpg" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="sales@creativeauto.co.uk">
<input type="hidden" name="item_name" value="Dixie Horn">
<input type="hidden" name="item_number" value="0002">
<input type="hidden" name="amount" value="1.15">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="return" value="http://www.creativeauto.co.uk/paymentsuccess.html">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="bn" value="PP-ShopCartBF">

What does that img alt do? I've tried entering some code in here but it didn't work but I may have done it wrong.

If anyone can help me with this I would be very grateful as this is spoiling the look of this site.



02-13-2007, 08:55 AM
select the button

then in the TAG panel in dreamweaver choose behaviours

then select Swap Image

locate the image you want to swap

What does that img alt do

Its an accessibility thing... For people that have text to speech browsers. The alt is read indicating to the user its discription.

02-13-2007, 01:19 PM
as dj says, for anyone that can't view images, braille browsers, speech browsers, text browsers, dialup users with images turned off, search engines, etc. Using it is mandatory in HTML.

02-16-2007, 09:15 AM
thanks lads.

I did try this and it didn't seem to work but I'll try again.