kwarr
04-03-2012, 05:38 PM
1) Script Title: Image Thumbnail Viewer II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
3) Describe problem: I have an existing website which uses Image Thumbnail Viewer to great effect to display jewellery http://melissajamesjewellery.com/limited.html. I want to add PayPal 'Add to cart' function, effectively turning the site into shop. The idea is that the customer clicks on the enlarged image to add it to the cart.
The PayPal code is a form with 5 lines of code (as below), so it won't fit in the rev=link:url option.
Is there some cunning way in which I can achieve this?
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MII..... ==-----END PKCS7-----">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
3) Describe problem: I have an existing website which uses Image Thumbnail Viewer to great effect to display jewellery http://melissajamesjewellery.com/limited.html. I want to add PayPal 'Add to cart' function, effectively turning the site into shop. The idea is that the customer clicks on the enlarged image to add it to the cart.
The PayPal code is a form with 5 lines of code (as below), so it won't fit in the rev=link:url option.
Is there some cunning way in which I can achieve this?
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MII..... ==-----END PKCS7-----">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>