Daniel of Artistic Opinions has written a little script for putting the current IK promotion on your website automatically. You can see it in action on his site.
This is a great little script for keeping a coupon on your site.
He says ‘Everyone is welcome to use it, no charge
’
Here are his instructions on how to use it:
To use it, there’s a two-step process. First, you’ll insert the following code where you want the promotion box to appear:
<script src=”http://www.artopinions.com/script/ik-promo-rotation.js” type=”text/javascript”></script>
<noscript>
<div style=”text-align: center;”><strong>20% off</strong> museum and framed art!<br />Use Imagekind coupon code: <strong>museum20</strong> when checking out.<br />Expires 12/31/07</div>
</noscript>
Then, set your style. You can make the box look however you want by using the built-in CSS class “promospace”. If you’re unsure how to style using CSS, post here and I’ll give a brief rundown
It works like this – during the times that IK runs a special promotion (like now), I will be updating the script with the details of the deal. The script is controlled by a date function, so the special promotion will only ever show during the proper dates. When there is no special promotion going on, a default coupon code will display (the museum20 code).
 He also adds:
Regarding the CSS, I should have explained it up front, but it was getting late and I took a shortcut
I’ll lay out three basic options, and folks can research CSS a bit for more ideas. Let’s center the text of the promo, make the background of the box black, and the text white. In your <head> section of your HTML page, you can add the following code:
<style type=”text/css”>
<!–
.promospace {
background: #000000;
color: #ffffff;
text-align: center;
}
//–>
</style>
If you have your own CSS stylesheet, you can just add the lines from .promospace { down to } in that file.
—-
You can see the script at work on my Nifty Piks blog .