Benötigt jQuery (getestet mit 1.3.2).
var strStyleSwitches = ''; $('link[rel=alternate stylesheet]').each(function() { var strCSSTitle = $(this).attr('title'); var strCSSID = strCSSTitle.replace(/\ /, '-').toLowerCase(); strStyleSwitches += "\n" + '<li id="switch-' + strCSSID + '"><a href="#switch-' + strCSSID + '">' + strCSSTitle + '</a></li>'; }); if(strStyleSwitches != '') { $('body').append('<div id="bottom" class="posFixed posFixedFooter">' + '<div id="bottom-decoration"></div>' + '<div id="bottom-content"><ul><li>Anzeige:</li>'+strStyleSwitches+'</ul></div></div>'); }