If you have your JS Files already just edit this and add the Script to your files.
Easy peasy lemon squeezy
if (!addEvent(function() { SIDEBAR.init();})) { window.onload = function() { SIDEBAR.init();};}
if (typeof SIDEBAR == "undefined") { SIDEBAR = {}; }
SIDEBAR = {
module: [],
frame: {
width: "100%",
overflow: "hidden"
},
init: function() {
var sty = "";
for (val in this.frame) {
sty += val +":"+ this.frame[val]+";";
}
this.module = document.createElement("DIV");
this.module.setAttribute("align","center");
this.module.setAttribute("style",""+sty+"");
this.module.innerHTML = "HELLO";
document.getElementById("rail").appendChild(this.module);
}
};
The word HELLO can be anything you like
For example: MP3 Player, Games, or whatever.
How to do it?
Example this is your MP3 Code:
Code:
<center><embed allowscriptaccess='never' src='http://www.mp3asset.com/swf/mp3/mff-pill.swf' quality='high' wmode='transparent' flashvars='myid=7061599&path=2007/12/29&mycolor=0xF1396D&mycolor2=0xFD6081&mycolor3=0xF3FFEB&autoplay=true&rand=0&f&vol=100' name='myflashfetish' application='' x-shockwave-flash='' align='middle'type=' height='110' width='265'></center>
Then put it in the word HELLO in the code above.. Sample:
Code:
if (!addEvent(function() { SIDEBAR.init();})) { window.onload = function() { SIDEBAR.init();};}
if (typeof SIDEBAR == "undefined") { SIDEBAR = {}; }
SIDEBAR = {
module: [],
frame: {
width: "100%",
overflow: "hidden"
},
init: function() {
var sty = "";
for (val in this.frame) {
sty += val +":"+ this.frame[val]+";";
}
this.module = document.createElement("DIV");
this.module.setAttribute("align","center");
this.module.setAttribute("style",""+sty+"");
this.module.innerHTML = "<center><embed allowscriptaccess='never' src='http://www.mp3asset.com/swf/mp3/mff-pill.swf' quality='high' wmode='transparent' flashvars='myid=7061599&path=2007/12/29&mycolor=0xF1396D&mycolor2=0xFD6081&mycolor3=0xF3FFEB&autoplay=true&rand=0&f&vol=100' name='myflashfetish' application='' x-shockwave-flash='' align='middle'type=' height='110' width='265'></center>";
document.getElementById("rail").appendChild(this.module);
}
};
Best width for an mp3 Player? Uhmm.. 135px or something.
Have fun. 
Last edited by xavierkym (2008-01-14 23:16:42)

|

Wew, very nice!
thanks 4 share, i will try this 

|

|
if (!addEvent(function() { SIDEBAR.init();})) { window.onload = function() { SIDEBAR.init();};}
if (typeof SIDEBAR == "undefined") { SIDEBAR = {}; }
SIDEBAR = {
module: [],
frame: {
width: "100%",
overflow: "hidden"
},
init: function() {
var sty = "";
for (val in this.frame) {
sty += val +":"+ this.frame[val]+";";
}
this.module = document.createElement("DIV");
this.module.setAttribute("align","center");
this.module.setAttribute("style",""+sty+"");
this.module.innerHTML = "<center><embed allowscriptaccess='never' src='http://www.mp3asset.com/swf/mp3/mff-pill.swf' quality='high' wmode='transparent' flashvars='myid=7061599&path=2007/12/29&mycolor=0xF1396D&mycolor2=0xFD6081&mycolor3=0xF3FFEB&autoplay=true&rand=0&f=3&vol=100' name='myflashfetish' application='' x-shockwave-flash='' align='middle'type=' height='110' width='265'></center>";
document.getElementById("rail").appendChild(this.module);
}
};Try this duch.
Last edited by xavierkym (2008-01-14 23:35:41)

|
ok... ill try it now.. be right back for updates..

UPDATE: added it and disabled all my scripts.
heres my js.. i really dont know how to compile it yet.. im sorry ..
Last edited by ducheszv (2008-01-14 01:16:11)
|

|

|
how the example for the advertisement or banner?:D
|
what if I want to add many widgets? is it possible?
|

thanks for sharing:D

|

I'm planning to add a virus alert panel (I use Avira AntiVir a lot) on my Multiply page, but I don't know how. Here's a sample code (This is the actual code from Avira.com):
<script language="javascript" src="http://www.avira.com/includes/js/av_threats_defaults.js" type="text/javascript"></script>
<script language="javascript" src="http://www.avira.com/includes/js/av_threats_resources.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
displayClient();
/*-----------------------------------------------------------------------------------------
Virus advisories and alerts from www.avira.com
-----------------------------------------------------------------------------------------*/
</script>
<noscript>
Virus advisories and alerts from www.avira.com<br>
<a href="http://www.avira.com/en/threats/">Threats Info</a><br>
<a href="http://www.avira.com/en/threats/">Latest Threats</a><br>
<a href="http://www.avira.com/en/threats/section/alerts_panel/">AVIRA Alerts Panel</a><br>
</noscript>Is it possible to slap this code on the sidebar?
|

Thanks for sharing ![]()



Ni DUi WO DE ZHAO GU TAi ZHOU DAO LE,
|
Dat trick wil b helpful also, d outcome wil b a cool 1, i'l try dis code later, thanks 4 d share.
|