Javascript include
January 15th, 2007 by Amyloo
Here’s a generic widget you can put on your blog — or any other kind of web page — with a Javascript include. A Flash player with the current clue clip is built right in. When a new clip is added, it will appear on your site, too. You don’t have to do anything.
Paste this code wherever you want the widget to appear on your page:
<script language=”JavaScript” src=”http://www.amyloo.com/clipoftheweek/clipoftheweek.js”></script>
Leave a comment if you need advice on how to make it work in your sidebar. See an example.
You could put it in a post, too, if you don’t want it in your sidebar constantly. Since the width is set to 98%, it will spread out to fill the width of your posts column. Like this:
If you want to tuck it into a corner as shown at the top of this page, all you have to do is put a div tag around it. Something like this:
<div style=”float:left; width:180px; padding-right:25px; margin-bottom:15px;”><script language=”JavaScript” src=”http://www.amyloo.com/clipoftheweek/clipoftheweek.js”></script></div>
Leave a comment with a link if you’re using this, would you please? I’d love to see what it looks like on your blog.

Note: it doesn’t seem to work on my OPML Editor blog, within a post, so it probably won’t work in Radio either. It’s fine in the sidebar.
Boy, do I ever feel stupid. It just shows to go ya, if you don’t keep up, you’re a fool.
The javascript, which uses document.write, won’t work on XHTML pages.
Stand by while I absorb this http://ejohn.org/blog/xhtml-documentwrite-and-adsense/