Yes you can! Just include the javascript file from the zip and call it from your webpage.
An example:
jQuery(document).ready( function() { var _config = { username: 'YOURUSERNAME', // last.fm username count: 10, // number of images to show period: '3month', // period to get last.fm data from refresh: 1, // when to get new data from last.fm (in minutes) offset: 1 // difference between your timezone and GMT. }; lastFmRecords.init(_config);The period option can be set to recenttracks, 7day, 3month, 6month, 12month, overall, topalbums and lovedtracks.
You also need some styling to get things nice and shiny:
#lastfmrecords { padding: 0px; padding-bottom: 10px; }
/* thx to http://cssglobe.com/lab/overflow_thumbs/ */ #lastfmrecords ol, #lastfmrecords li { margin: 0; padding: 0; list-style: none; } #lastfmrecords li { float: left; margin: 0px 5px 5px 0px; } #lastfmrecords a { display: block; float: left; width: 100px; height: 100px; line-height: 100px; overflow: hidden; position: relative; z-index: 1; } #lastfmrecords a img { float: left; position: absolute; margin: auto; min-height: 100px; }
/* mouse over */ #lastfmrecords a:hover { overflow:visible; z-index:1000; border:none; } #lastfmrecords a:hover img { border: 1px solid #999; background: #fff; padding: 3px; margin-top: -20px; margin-left: -20px; min-height: 120px; }




