How to add radio to any site


30 jan. 2007, 5h50m

Hey, so here's some HTML you can add to a site to get the radio on it.

Note: you'll need to specify the station you want the radio to play. There are two places this information goes in the HTML, both are marked below as "[STATION_GOES_HERE]". Replace that with the appropriate information.

Here are some examples of appropriate information:

<script type="text/javascript" src=""></script>;
<script type="text/javascript" src=""></script>;
<script type="text/javascript">
function notifyOpener()
if(self.opener && !self.opener.radioPopup) self.opener.radioPopup = self;
function tune(radioURL)
var radio = getPlayerEl('lfmPlayer');
radio.TCallLabel("/", "HandleJSTuning");

function setPopupTitle(title)
$("radioTitle").innerHTML = 'Listening to ' + unescape(title);
function handleError() { return true; }
window.onerror = handleError;
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0"; width="340" height="120" id="lfmPlayer" align="middle"><param name="allowScriptAccess" value="always" />
<param name="movie" value=""; />
<param name="FlashVars" value="lang=en&popup=true&lfmMode=radio&radioURL=lastfm://[STATION_GOES_HERE]" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<param name="wmode" value="transparent" />
<param name="swLiveConnect" value="true" />
<embed src=""; quality="high" bgcolor="#FFFFFF" width="340" FlashVars="lang=en&popup=true&lfmMode=radio&radioURL=lastfm://[STATION_GOES_HERE]" height="120" wmode="transparent" name="lfmPlayer" swLiveConnect="true" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage=""; /></object>


  • bannoy

    That works great, thanks for that tip :D

    4 fév. 2007, 2h23m
  • pjbond

    misleading title. I wanted to add my loved tracks radio to and they wouldn't let me. they said they would send someone to see me. I've been hiding behind the sofa all day. thanks for the tip :D

    14 mars 2007, 4h05m
Voir les 2 commentaires
Ajouter un commentaire. Connectez-vous à ou inscrivez-vous (c'est gratuit).