friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

  • Multiply
  •  » Add Anything on Your RAIL (SideBar)

#1  2008-01-08 17:39:02

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Add Anything on Your RAIL (SideBar)

If you have your JS Files already just edit this and add the Script to your files. =)
Easy peasy lemon squeezy =D

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. :wasted:

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=3&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=3&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)


#2  2008-01-09 07:20:51

sahabat.peterpan
» SuperFriendster
sahabat.peterpan's display avatar
Rockstars
Registered: 2007-10-31
Posts: 8431
Reputation: 58

Re: Add Anything on Your RAIL (SideBar)

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


#3  2008-01-09 08:26:39

Lyas-rowkz
» Moderator
Lyas-rowkz's display avatar
Location: Mesia ♥
Registered: 2007-11-27
Posts: 10507
Reputation: 100
Friendster

Re: Add Anything on Your RAIL (SideBar)

thx for sharing.. :thumbsup:  :eh:



| p/s: i love you :P |

#4  2008-01-13 17:21:11

ducheszv
» Moderator
ducheszv's display avatar
[ E:// i love you ]
Class-S
Location: up there, down ere
Registered: 2007-06-01
Posts: 7565
Reputation: 296

Re: Add Anything on Your RAIL (SideBar)

what if there in the embed codes there are no " instead ' ... will i change the ' to " and add \ ?




I love you. More than I show you. More than you know. I love you so much :kiss:

#5  2008-01-13 17:23:43

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Add Anything on Your RAIL (SideBar)

^
No need. :D


#6  2008-01-13 17:26:55

ducheszv
» Moderator
ducheszv's display avatar
[ E:// i love you ]
Class-S
Location: up there, down ere
Registered: 2007-06-01
Posts: 7565
Reputation: 296

Re: Add Anything on Your RAIL (SideBar)

tried to add myflashfetish playlist but it didnt work  :wasted:  oh well.. ill find out whats wrong.. thanks kym..  =|




I love you. More than I show you. More than you know. I love you so much :kiss:

#7  2008-01-13 17:33:03

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Add Anything on Your RAIL (SideBar)

Uhmm.. Gimme your codes.


#8  2008-01-13 17:36:03

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Add Anything on Your RAIL (SideBar)

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=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)


#9  2008-01-13 17:44:18

ducheszv
» Moderator
ducheszv's display avatar
[ E:// i love you ]
Class-S
Location: up there, down ere
Registered: 2007-06-01
Posts: 7565
Reputation: 296

Re: Add Anything on Your RAIL (SideBar)

ok... ill try it now.. be right back for updates..  :penguin:  :penguin:

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)




I love you. More than I show you. More than you know. I love you so much :kiss:

#10  2008-01-13 23:35:40

kristina16
» Moderator
kristina16's display avatar
[x.CULLENISTA.x]
The Scandalers
Location: silver volvo
Registered: 2007-05-22
Posts: 16520
Reputation: 317

Re: Add Anything on Your RAIL (SideBar)

nice xave thnx for sharin!! ;) :thumbsup:



E D W A R D  C U L L E N IS <3 :wow:
http://kristina16.blogdrive.com

TEAM EDWARD + TEAM JACOB= TEAM SWITZERLAND


x.babydolltinay.x

#11  2008-01-14 23:35:19

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Add Anything on Your RAIL (SideBar)

Oops. Sorry if the code last time wasn't workin.. :wallbash:
I made a mistake that time lol...

First post updated. =)
That should work fine now. :)


#12  2008-01-22 18:08:53

karuro72002
» Promoter
karuro72002's display avatar
My Monster Cousin! ^^
Class-S
Registered: 2007-05-02
Posts: 4041
Reputation: 111

Re: Add Anything on Your RAIL (SideBar)

thanks for xaring eX! :D




physical is the Illusion

#13  2008-04-30 04:27:08

kucingpilek
» FriendsterNewbie
Registered: 2008-02-21
Posts: 26
Last visit: 2008-11-03
Reputation: ~

Re: Add Anything on Your RAIL (SideBar)

how the example for the advertisement or banner?:D

#14  2008-05-03 00:09:00

kamillaloo
» FriendsterNewbie
Registered: 2007-08-18
Posts: 14
Last visit: 2008-10-23
Reputation: ~

Re: Add Anything on Your RAIL (SideBar)

what if I want to add many widgets? is it possible?

#15  2008-08-02 03:53:15

pinkwasabexx
» FriendsterNewbie
pinkwasabexx's display avatar
you got me at HELLO [:
Location: >>in YOUR ♥+
Registered: 2007-09-29
Posts: 40
Last visit: 2008-10-23
Reputation: 1
???

Re: Add Anything on Your RAIL (SideBar)

thanks for sharing:D


they call me 'quiet girl', but i`m a RIOT!!♥

FSTR | MULTIPLY

#16  2008-08-02 06:02:48

lusanto_bluzone
» FriendsterNewbie
lusanto_bluzone's display avatar
HENSHIN!!!!
Location: Makati
Registered: 2008-02-04
Posts: 61
Last visit: 2008-11-17
Reputation: ~
Friendster

Re: Add Anything on Your RAIL (SideBar)

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):

Code:

<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?

  • Multiply
  •  » Add Anything on Your RAIL (SideBar)

Search Friendstertalk

Moderated by Ephemeral, blurrycloud, dale

Board footer

FriendsterTalk is not affiliated with Friendster.com
Copyright © 2002–2008 PunBB

[ 24 queries - 0.601 second ]

Pay Per Click Ads by pay per click advertising by Kontera

FriendsterTalk.com x

Welcome to FriendsterTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)