Saturday, August 11, 2007

Getting Amazon Ads working how I want them

I've been learning some JavaScript and PHP so that I can make the Amazon book ads display how I want them on CodeGearGuru. Basically I want only books that I choose to be displayed (books that I've read and think are good or would like to read). Once I've worked out a nice elegant solution for this I'll make a movie on it, but it's still quite messy. Currently I'm using the ads in three places:
  1. A link in the top left corner, when you move the mouse over it, additional information is displayed.
  2. An enhanced ad in the bottom left corner.
  3. A cluster of enhanced ads at the bottom of movies (only #20 currently has it).
Of course there is also the Google ads displayed on the right. I've updated the colours on this so that blends in better with the site.
My next step is to include more books in my accepted list, and work out how to wrap up the current PHP code into a Joomla module or component.