lkHOT widget
October 26th, 2006
You can now add lkHOT headlines to your blog or website. Please give it a try and let me know if it works.
Note: Code has been updated for xhtml compliance, see below
Background:
I was looking for a nice way to enable anyone to use the output of lkHOT. It already outputs RSS, but not everyone can easily add that to their site. So, I decided to write a script to parse the RSS output to JavaScript
The javascript basically prints out the links only, without any formatting(bracketed by LI’s). You can format it via your stylesheet, and hopefully it will automatically pick up the default formatting and nicely match up with your site.
Please help me by trying this out. Even if you don’t intend to use it on your site, just try it out, let me know if it works. I want to know if it works in different sites and browsers.
About:
This code gives six headlines, which link directly to the source websites (not lkhot) and a link to lkhot at the bottom, which the visitor can click for even more links.
The headlines automatically update as new links are added to lkHOT.
Example:
(See an example in this sidebar, under lkHOT)
Code:
<script type=”text/javascript” src=”http://www.lkhot.com/javafeeds/lkhot-all.php” mce_src=”http://www.lkhot.com/javafeeds/lkhot-all.php”>
</script>
Note: The UL here has a class lkHOT. You can format that by formatting UL’s (and/or) in your stylesheet.
Suggestions/bug reports?
Please post suggestions or bug reports as comments on this thread, or email to bugs - [at] - lkhot dot com
Note:
Links at lkHOT are SFW and checked by me so you can (generally) use them on your site safely. Are the links boring? You can fix this by submitting your own favorite links!
Tip:
The links have descriptions if you hover over them..
Entry Filed under: IT
Leave a Comment
Trackback this post | Subscribe to the comments via RSS Feed