I edited the PHP on the WP-Amazon Plugin for WordPress. I wanted to achieve two things. One, when adding an image, I wanted the text to follow it. Two, I wanted to have it display the name of the product in the title attribute of the link, that is, when one hovers over the link, I wanted the title to display, rather then the default of "View product details at Amazon".

Here is the new improved code:

PHP:
  1. function generateHTMLCode(format,prodname,url,imgurl) {
  2.     if (format=='link') {
  3.         html = '<a href="'+url+'" title="Amazon.com - '+prodname+'">'+prodname+'</a>';
  4.     } else {
  5.         html = '<a href="'+url+'" title="Amazon.com - '+prodname+'"><img src="'+imgurl+'" alt="'+prodname+'" /></a><br />'
  6.         +'<a href="'+url+'" title="Amazon.com - '+prodname+'">'+prodname+'</a>';
  7.     }
  8.     htmlCode = document.getElementById("htmlcode")
  9.     htmlCode.value = html;
  10. }

Here is the old code so one can find it. It should be around line 190 or so (for version 1.3.2 anyhow)

PHP:
  1. function generateHTMLCode(format,prodname,url,imgurl) {
  2.         if (format=='link') {
  3.                 html = '<a href="'+url+'" title="View product details at Amazon">'+prodname+'</a>';
  4.         } else {
  5.                 html = '<a href="'+url+'" title="View product details at Amazon"><img src="'+imgurl+'" alt="'+prodname+'" /></a>';
  6.         }
  7.         htmlCode = document.getElementById("htmlcode")
  8.         htmlCode.value = html;
  9. }

I am still looking for a way to change the link to a more basic link, so Amazon's new Product Preview will work properly. However, for some reason I can't figure out where it is making the full link...