Amazon.com associates, use this code to easily display best sellers based on whatever search terms you want The results are cached and refreshed every 12 hours, speeding the performance of your website. Once you've finished the main setup, adding custom best seller lists all over your website will be a snap!
Here's how to use the code on your server:
<div style="width:200;height:420px;overflow:auto;margin:5px;padding:5px;background:#cccccc;"> <span style="color:#003366;font-size:16pt;font-weight:bold;">Best sellers from</span><br> <a href="http://www.amazon.com/exec/obidos/redirect?tag=moulc&path=subst/home/home.html"><img src="http://www.yourwebsite.com/img/126X32-w-logo.gif" border="0"></a><br> <?php $q='web design'; $MaxItems=5; $amazonSearchType='popular'; $amazonThreshold=5; include '/path/to/Amazon2RSS-2.0.php'; ?> </div>
If you're displaying ads in a wide space, you'll want to force the images to "float" to make the output look better. To do that, first, add the following code to the "head" section of your webpage (or add the CSS code to your stylesheet):
<style type="text/css">
.floatimgleft img { float:left; margin-right:15px; }
</style>
Then, add class="floatimgleft" to the "div" tag at the start of your Amazon ads, so that it looks something like this (I've also removed the sizing settings from the previous example code):
<div class="floatimgleft" style="margin:5px;padding:5px;background:#cccccc;">
That's it! Something like the examples to the right will appear on your web page.
Don't Make Me Think: A Common Sense Approach to Web Usability, 2nd Edition (Paperback)
How to Make Your Own Free Website: And Your Free Blog Too (Kindle Edition)
How to Make Your Own Free Website: And Your Free Blog Too (Paperback)
Head First HTML with CSS & XHTML (Paperback)
CSS Mastery: Advanced Web Standards Solutions (Paperback)