My complete code
//HEADER
$if($strcmp(%_playlist_number%,1),
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> '$crlf()
'<html>'$crlf()
' <head>'$crlf()
' <title>Foobar 0.8 - Music List</title>'$crlf()
' <style TYPE="text/css">'$crlf()
' <!-- '$crlf()
' body'$crlf()
' {'$crlf()
' margin: 10px 0px 0px 0px;'$crlf()
' padding: 0;'$crlf()
' font-family: verdana, arial, sans-serif;'$crlf()
' font-size: small;'$crlf()
' color: #ccc;'$crlf()
' background-color: #000000;'$crlf()
' text-align: left;'$crlf()
' }'$crlf()
' #Album'$crlf()
' {'$crlf()
' margin: auto;'$crlf()
' padding: 0px;'$crlf()
' border-bottom: 0px;'$crlf()
' border-top: 2px solid #ccc;'$crlf()
' border-left: 2px solid #ccc;'$crlf()
' border-right: 2px solid #ccc;'$crlf()
' background: #666;'$crlf()
' width: 615px;'$crlf()
' }'$crlf()
' #title'$crlf()
' {'$crlf()
' font-weight: bold;'$crlf()
' border-bottom: 2px solid #ccc;'$crlf()
' margin: 0px;'$crlf()
' background: #4C5255;'$crlf()
' }'$crlf()
' #Album ul '$crlf()
' {'$crlf()
' border: 0;'$crlf()
' margin: 0;'$crlf()
' padding: 0;'$crlf()
' text-align: left;'$crlf()
' clear: left;'$crlf()
' }'$crlf()
' #Album ul li '$crlf()
' {'$crlf()
' display: block;'$crlf()
' text-align: left;'$crlf()
' padding: 0;'$crlf()
' padding-left: 10px;'$crlf()
' }'$crlf()
' -->'$crlf()
' </style>'$crlf()
' <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">'$crlf()
' <meta http-equiv="expires" content="-1">'$crlf()
' <meta http-equiv= "pragma" content="no-cache">'$crlf()
' <meta name="robots" content="all">'$crlf()
' </head>'$crlf()$crlf()
'<body>'$crlf()
'<div id="Album">' $crlf()
' <ul>' $crlf()
//BODY
$crlf(),)
$if($strcmp($num(%TRACKNUMBER%,2),01),
' </ul>'
'</div>' $crlf()
'<div id="Album">' $crlf()
' <ul>' $crlf()
' <li id="title">'
)
$if($strcmp($num(%TRACKNUMBER%,2),01),
$if(%artist%,%artist%,'unknown artist') ' - '
$if(%album%,%album%,'unknown album')
'</li>' $crlf()
,)
' <li>'$num(%TRACKNUMBER%,2). %TITLE%' - ' %_length%'</li>'
//FOOTER
$if($strcmp(%_playlist_number%,%_playlist_total%),$crlf()
' </ul>'$crlf()
'</div>'$crlf()
'</body>'$crlf()
'</html>'$crlf()
,)
The output is similar to the following
http://members.ii.net/~u4996a/music.html
Keep in mind that it only really deals with full albums and they must be tagged properly (track # etc). Doesn't handle compilations very well.
Thanks for the help.