[b]Updates[/b]
Set the options of your radio.blog:
- To display the cover album of your tracks you can add this codes before RadioBlog.start();
RadioBlog.cover = '1';
- To make your radio.blog autoplay you can add any 1 of the following codes before RadioBlog.start();
<"><"><">- To set the default value of the playlist function you can add any 1 of the following codes before RadioBlog.start();
<"><"><">To make your Playlist Transparent
Open Notepad and Paste this code and save as [b]luisgoco.js[/b]
[quote]/**************************************************
* radio.blog.js
* 03.04.2006
* www.radioblogclub.com
* Luis Goco
**************************************************/
// ======= RADIO.BLOG =========================================================================================================================
var RadioBlog = {
basepath: 'http://stat.radioblogclub.com/radio.blog',
playlist: '',
id: 0,
width: '200px',
height: '400px',
file: '',
cover : 1,
skin: 'default',
background:'',
debug: '0',
shuffle: 0,
crossfader: 1,
replay: 1,
color: {
body: '#FFFFFF',
border: '#CCCCCC',
button: '#CCCCCC',
player_text: '#BDC3C7',
playlist_text: '#999999'
},
autoplay: {
tracknum: '',
title: '',
playlistnum: '',
playlist: '',
trackmod: ''
},
// CREATE RADIO.BLOG
createPlayer: function() {
// SET COLORS
var val;
var colors = '&colors=';
for (val in this.color) {
colors += val+':'+this.color[val]+';';
}
// SET PATH
var paths;
if (this.playlist != '') paths = '&playlistPath='+this.playlist;
if (this.file != '') paths = '&filepath='+this.file;
if (this.cover != '') paths += '&cover=' + this.cover;
if (this.shuffle != '') paths += '&shuffle=' + this.shuffle;
if (this.crossfader != '') paths += '&crossfader=' + this.crossfader;
if (this.replay != '') paths += '&replay=' + this.replay;
if (this.background != '') paths += '&background=' + this.background;
// SET AUTOPLAYS (autoplay is executed only if at least one of this parameters is send : trackmod, title, tracknum)
var val;
var autoplays = '';
for (val in this.autoplay) {
if(this.autoplay[val] != '') autoplays += '&'+val+'='+this.autoplay[val]+'';
}
var content = '<embed style="-moz-opacity:0.90; filter:alpha(opacity=90), finishopacity=90, startx=90, style=0" wmode="transparent" type="application/x-shockwave-flash" '
+' src="'+RadioBlog.basepath+'/skins/'+RadioBlog.skin+'/player.swf" allowScriptAccess="always"'
+' width="'+this.width+'" height="'+this.height+'" '
+' bgcolor="'+this.color.body+'" '
+' id="radioblog_player_'+this.id+'" '
+' FlashVars="'
+'id='+this.id
+paths
+colors
+autoplays
+'"'
+'></embed>';
if (this.debug == '1') alert(content);
return content;
},
start: function(where) {
RadioBlog.id++;
if (typeof where == 'undefined') {
document.write('<div id="radioblog_'+this.id+'" style="width:'+this.width+'; height:'+this.height+';"></div>');
var where = document.getElementById('radioblog_'+this.id);
}
where.innerHTML = this.createPlayer();
},
info: function(id,info) {
var rbObj = document.getElementById('radioblog_player_'+id);
rbObj.title = info;
},
searchLyrics: function(trackName) {
if (RadioBlog.debug == '1') alert(trackName);
window.open('http://www.google.com/search?q=lyrics%20'+escape(trackName)+'&client=pub-9107944072945632&channel=7588634332');
},
searchArtist: function(artist) {
if (RadioBlog.debug == '1') alert(artist);
window.open('http://www.google.com/search?q='+escape(artist)+'&client=pub-9107944072945632&channel=2414323561');
},
buyThisTrack: function(trackName) {
if (RadioBlog.debug == '1') alert(trackName);
window.open('http://www1.radioblogclub.com/buy_this_track/'+escape(trackName));
},
isPlaying: function(trackName) {
if (RadioBlog.debug == '1') alert(trackName);
for (val in this.isPlaying) {
var isFunction = this.isPlaying[val];
if(typeof isFunction == 'function') eval(isFunction(trackName));
}
}
}[/quote]
Upload it to your file hosting account [b](ripway,fileave,fileden etc.)[/b]
Open the [b]WTF.php[/b] and change the bolded part of the code to luisgoco.js url
[quote]<head>
<script type="text/javascript" src="[b]http://stat.radioblogclub.com/radio.blog/radio.blog.js[/b]"></script>
</head>
<body>
<script type="text/javascript">
RadioBlog.playlist = '[b]Playlistpath URL[/b]';
RadioBlog.width = '550px';
RadioBlog.height = '320px';
RadioBlog.color.body = '#cc0000';
RadioBlog.color.border = '#999999';
RadioBlog.color.button = '#999999';
RadioBlog.color.player_text = '#999999';
RadioBlog.color.playlist_text = '#FFFFFF';
RadioBlog.autoplay.tracknum = '2';
RadioBlog.crossfader = 0;
RadioBlog.cover = '0';
RadioBlog.start();
</script>
</body>
</html>[/quote]
You can test the effect by adding background to your playlist
- To add a background to your radio.blog, add this line before RadioBlog.start();
<">r
Last edited by diabolicious (2007-09-18 00:15:11)
Yup, its for you and lordheinz
[b]@myrulez18[/b]
Try it
Last edited by diabolicious (2007-09-05 09:29:13)
ooo thanks dude
Last edited by diabolicious (2007-09-06 07:29:49)
BTW nice update on the 1st post
(Please check the spelling if im right
)
what do you mean by 1st post? do you mean the Version 1 is better?
you need to make another account... so be sure to check each soundtrack
before adding it to your playlist
but let me experiment
[b]@Shirow Masamune[/b]
Really.. Im happy for you
[b]Nehemia[/b]
No prob
Im expecting good reputations
Last edited by diabolicious (2007-09-07 04:16:52)