Recent Topics

1 Nov 18, 2007 16:37    

My b2evolution Version: 1.10.x

Hi,

I'm trying to add the Amazon Omakase Widget to my wife's blog -- www.stylefool.com -- and when I view the page in IE, I get an error, and Firefox doesn't display anything.

The code that Amazon says to add is:

<script type="text/javascript">
<!-- amazon_ad_tag = "stylefcom-20"; amazon_ad_width = "160"; amazon_ad_height = "600"; amazon_ad_exclude = "oprah;dr+phil;tyra"; amazon_ad_include = "baking;fashion;chef;cookbook;wedding"; amazon_ad_categories = "hijkg";//-->
</script>
<script type="text/javascript" src="http://www.assoc-amazon.com/s/ads.js"></script>

I added it to the left sidebar -- the Amazon code is under the Blogher network code, which does work.

Any suggestions / fixes to the javascript to make it work?

Thanks,

Rocketdude

2 Nov 18, 2007 20:01

Found the problem:

I needed a carriage return after "<!--"

And before the "//-->"

So the working code looks like:

<script type="text/javascript">
<!--
amazon_ad_tag = "stylefcom-20"; amazon_ad_width = "160"; amazon_ad_height = "600"; amazon_ad_exclude = "oprah;dr+phil;tyra"; amazon_ad_include = "baking;fashion;chef;cookbook;wedding"; amazon_ad_categories = "hijkg";
//-->
</script>
<script type="text/javascript" src="http://www.assoc-amazon.com/s/ads.js"></script>


Form is loading...