friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

  • Multiply
  •  » Object Switcher (Requires Addbox Function)

#1  2008-01-21 03:17:14

blurrycloud
» Moderator
blurrycloud's display avatar
[ - AchilleS - ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2568
Reputation: 98

Object Switcher (Requires Addbox Function)

:arrow:  All the Credits to Cip192  :thumbsup:  =) 

I will just interpret this tweak in Multiply Application Using the Addbox Function...
Image Preview...

Full Code:

if (!addEvent(function() { onPageLoad();})) { window.onload = function() { onPageLoad();};}

function onPageLoad() {

//existing codes here

var dk="<div id=\"object\"></div>";
addBox("top","<font size=2px>Object Switcher: <A HREF=\"javascript:normal()\">0</A> | <A HREF=\"javascript:one()\">1</A> | <A HREF=\"javascript:two()\">2</A> | <A HREF=\"javascript:three()\">3</A> | <A HREF=\"javascript:four()\">4</A></font>",dk,"DK");

normal();

}

//ADDBOX FOR MULTIPLY
function addBox (type,head,htm,id,sibling) {
//by blurrycloud multiply version 2008-3000
//credits to marfillaster friendster version
//type "top" | "bottoml" | "bottomr" | "siderail"
//head header string
//htm innerHTML string
//id css_id string

/* Available default Siblings
Coming Soon
*/

    try {
        var br=document.createElement("li");
    } catch(e) {
        var br=document.createElement("<br>");
    }
    if(type=="top") {
        var ul=document.getElementById("mainbox_1");
        htm="<div class='itemboxsub'>"+htm+"</div>";
    }
     else if(type=="bottomr") {
         var ul=document.getElementById("mainbox_4");
         
    }
    else if(type=="siderail") {
         var ul=document.getElementById("rail");
    }
    else var ul=document.getElementById("mainbox_3");
   
    br.innerHTML="<br><div id='"+id+"' class='itemboxsub "+id+"'>"+
                    "<h2>"+head+"</h2>"+
                    "<div id='content_"+id+"'>"+htm+
                    "</div>"+
                    "</div>";
                   
    if(sibling==null) ul.appendChild(br);
    else {
        sibling=document.getElementById(sibling);
        ul.insertBefore(br,sibling);
    }
}


function normal()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }
function one()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }
function two()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }
function three()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }
function four()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }

replace those red parts in your own arrangement in each objects
note:
dont forget to add--> \  before each quotation of the object you want to put-->  \"
or other way replace double quotation (") by single quote (')

:arrow: for example in function normal we add a youtube video.

function normal()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"left\"><object width=\"95%\" height=\"370\"><param name=\"movie\" value=\"http://www.youtube.com/v/V-WVjl5n0JU&rel=1\"></param><embed src=\"http://www.youtube.com/v/V-WVjl5n0JU&rel=1\" type=\"application/x-shockwave-flash\" width=\"80%\"height=\"200\"></embed></object></div>";
  }
function one()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }
function two()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }
function three()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }
function four()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">objects here,videos,mp3 or images deafult</div>";
  }

then after picking up the function put this code below the onloadhandler (inside)  code----->   normal();

function onProfileLoad() {
              //existing codes here

normal();
}

Complete Example:

function onProfileLoad() {
               //existing codes here

var dk="<div id=\"object\"></div>";
addBox("top","<font size=2px>Object Switcher: <A HREF=\"javascript:normal()\">0</A> | <A HREF=\"javascript:one()\">1</A> | <A HREF=\"javascript:two()\">2</A> | <A HREF=\"javascript:three()\">3</A> | <A HREF=\"javascript:four()\">4</A></font>",dk,"DK");

normal();
}

That's it your done...  Goodluck

FAQ
Q: Can I change the position of the box?
A: Yes Ofcourse: If you read how to apply the addbox function that i posted on the other thread....
you can change the position of your box
Available positions if your boxes is in default mode....
:arrow: top
:arrow: bottoml
:arrow: bottomr
:arrow: siderail
Just look for the bod part here :arrow: addBox("top","Object Switcher.........

Last edited by blurrycloud (2008-05-17 06:03:29)


Back to my default status: School mode

#2  2008-01-21 12:41:12

waway
» FriendsterNewbie
Registered: 2007-12-21
Posts: 29
Last visit: 2008-09-02
Reputation: ~

Re: Object Switcher (Requires Addbox Function)

cool...but can it be use in friendster too?

#3  2008-01-21 21:14:31

blurrycloud
» Moderator
blurrycloud's display avatar
[ - AchilleS - ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2568
Reputation: 98

Re: Object Switcher (Requires Addbox Function)

this tweak is originally made for friendster profile


Back to my default status: School mode

#4  2008-01-22 01:16:09

Ephemeral
» Moderator
Ephemeral's display avatar
L'Interdit
Class-S
Location: Perdido Paraíso
Registered: 2006-10-20
Posts: 10253
Reputation: 281
Friendster

Re: Object Switcher (Requires Addbox Function)

+1 for you bro hehe nice research there!  =)


#5  2008-01-22 03:20:46

blurrycloud
» Moderator
blurrycloud's display avatar
[ - AchilleS - ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2568
Reputation: 98

Re: Object Switcher (Requires Addbox Function)

^ thanks bro.. more tweaks to come... hehe  =)  :thumbsup:


Back to my default status: School mode

#6  2008-01-22 18:19:53

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

Re: Object Switcher (Requires Addbox Function)

nice thanks for sharing!  :D




physical is the Illusion

#7  2008-01-22 19:14:58

cremonti
» Banned
cremonti's display avatar
I'M BANNED MYSELF!
Location: hiding somewhere
Registered: 2007-04-16
Posts: 2062
Reputation: 37
???

Re: Object Switcher (Requires Addbox Function)

thx for share bro .  :thumbsup:




#8  2008-01-23 09:20:25

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

Re: Object Switcher (Requires Addbox Function)

thx for share...cool :thumbsup:



| p/s: i love you :P |

#9  2008-01-23 13:51:36

kangkong10
» Promoter
kangkong10's display avatar
Registered: 2008-01-09
Posts: 1290
Reputation: 14

Re: Object Switcher (Requires Addbox Function)

wow! nice tricks! i'll try dis one later! cheers dude!


elow guys, I'm Back again

#10  2008-01-31 12:56:06

pulasara
» FriendsterGeek
pulasara's display avatar
Atas-bawah Kiri-kanan ok!
Class X
Location: digicorner.net
Registered: 2007-07-24
Posts: 1113
Reputation: 3
Friendster

Re: Object Switcher (Requires Addbox Function)

cool :cool:


My Total earnings from Google Adsense,Thanks For Google =) :thumbsup:

#11  2008-05-02 23:41:34

valjesnet
» FriendsterAddict
valjesnet's display avatar
Location: Makati
Registered: 2007-05-23
Posts: 417
Last visit: 2008-08-24
Reputation: 1

Re: Object Switcher (Requires Addbox Function)

here are my existing codes:


//YOUTUBE
var youtube7="<embed src='http://www.youtube.com/v/3X4CwGGJQMI&hl=1' type='application/x-shockwave-flash' width='90%' height='100'></embed>";
addBox("top","Holy is The Lord-Chris Tomlin",youtube7,"ul_youtube_content");

i dunno where will i put my other u tube codes below: 

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/2YzhWLImPUE&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/2YzhWLImPUE&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>


<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/1frAsGmQHE8&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/1frAsGmQHE8&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>



is this correct?

function one()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\">
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/1frAsGmQHE8&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/1frAsGmQHE8&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></div>";
  }

Last edited by valjesnet (2008-05-02 23:45:33)


#12  2008-05-03 00:27:40

blurrycloud
» Moderator
blurrycloud's display avatar
[ - AchilleS - ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2568
Reputation: 98

Re: Object Switcher (Requires Addbox Function)

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/1frAsGmQHE8&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/1frAsGmQHE8&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>

i told you before to change the double quotes into single quote right?

so this will be the code refer below :/

function one()
  {
  ht = document.getElementById("object");
  ht.innerHTML="<div align=\"center\"><object width='425' height='355'><param name='movie' value='http://www.youtube.com/v/1frAsGmQHE8&hl=en'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/1frAsGmQHE8&hl=en' type='application/x-shockwave-flash' wmode='transparent' width='425' height='355'></embed></object></div>";
  }

Last edited by blurrycloud (2008-05-03 00:52:12)


Back to my default status: School mode

#13  2008-05-03 08:32:03

Trixx.xii
» FriendsterAgent
Trixx.xii's display avatar
The Scandalers
Registered: 2007-11-07
Posts: 2332
Reputation: 282

Re: Object Switcher (Requires Addbox Function)

thanks for sharin.
it will help me a lot. :D


zettai suki dakara♥
Gfx | ♥ Panda | (:
  • Multiply
  •  » Object Switcher (Requires Addbox Function)

Search Friendstertalk

Moderated by Ephemeral, blurrycloud, dale

Board footer

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

[ 21 queries - 0.581 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. =)