friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#1  2007-10-06 13:27:48

cip6192
» Promoter
cip6192's display avatar
[ Plaifer Cipher ]
Class-S
Location: Nagareyama, Chiba
Registered: 2007-05-13
Posts: 1553
Last visit: 2008-08-06
Reputation: 7
Friendster

Object Switcher (Fixed!!!)

Production: Class-S :lol:

Sorry for not updating this trick, but now i fixed it already, and just like they said in the post below.... it uses one function only =D

okey lets start
preview

:arrow: http://profiles.friendster.com/cip6192

Code: Step one:
put it in your css:

Code:

#switch1 { width:300px; }
#two, #three {display:none;}
.objbuttons {
width:20px;
background-color:transparent;
border:1px solid #ffffff;
font-family:Arial;
font-weight:bold;
font-size:12px;
color:#ffffff;
}
.objbuttons:hover {
background-color: #4DBD33;
cursor:pointer;
}

put it in your js:

Code:

function switch1(div)
{
if (document.getElementById('one'))
{
var option=['one','two','three'];
for(var i=0; i<option.length; i++) 
{ obj=document.getElementById(option[i]);
obj.style.display=(option[i]==div)? "block" : "none"; }
}
}
//

put this at the bottom of the onloadhandler

Code:

switch1('one');

if you dont know where can you find the onloadhandler.... probably this is where:

function onProfileLoad() {
some codes inside your onloadhandler here... so far so on...........
........................................
........................................

switch1('one'); <--- put it there
}  <--- end of the onloadhandler

__________________________________________
Applying: Step two
applying it is not a hard work, all you need is a sidebar generator that you can find inside this legendary forum :lol: sorry for this.... i dont know where can i find those generator's :retard: because i dont know the url's thats why :lol:

okey generate this code on what generator you have:

Code:

<div id="switch1">
<div id="one">CONTENT 1 HERE</div>
<div id="two"><p>CONTENT 2HERE</div>
<div id="three">CONTENT 3HERE</div></div>
<div align="right"><input class="objbuttons" type="button" value="1" onclick="switch1('one')" /><input class="objbuttons" type="button" value="2" onclick="switch1('two')" /><input class="objbuttons" type="button" value="3" onclick="switch1('three')"/></div>

note!!!! Edit the capital letters inside, its for the content for each div's, just put it without editing its quote's because you will going to generate it.

thats it your done! :D
_____________end_____________

How to add more content's?
click the spoiler to view.....

its easy to add more contents instead of 3 contents only,
configure the Step one proceedure, at the js part you will notice some codes like this:

var option=['one','two','three'];

theres a 'one','two','three' value, just simply apply another value to it, let say four:

var option=['one','two','three','four'];

Step one again at the css part , apply the id #four because we created a new content above, and we named it four thats why the id is #four, we must apply display:none; properties to it like this one below:

#four {display:none;}

at the Step two proceedure we must create a new id and a new button for it to make it work, create one like this(remember that we named it four):
note!! just do not forget to change the underlined parts

<div id="four">CONTENT 4 HERE</div>
<input class="objbuttons" type="button" value="4" onclick="switch1('four')"/>

and finally put it like this:

<div id="switch1">
<div id="one">CONTENT 1 HERE</div>
<div id="two">CONTENT 2HERE</div>
<div id="three">CONTENT 3HERE</div>
<div id="four">CONTENT 4 HERE</div></div>
<div align="right"><input class="objbuttons" type="button" value="1" onclick="switch1('one')" /><input class="objbuttons" type="button" value="2" onclick="switch1('two')" /><input class="objbuttons" type="button" value="3" onclick="switch1('three')"/><input class="objbuttons" type="button" value="4" onclick="switch1('four')"/></div>

done!! :D

Last edited by cip6192 (2008-05-15 08:01:32)


#2  2007-10-06 13:32:37

Shiseiten
» Promoter
Shiseiten's display avatar
Why so serious?
Registered: 2007-08-15
Posts: 3120
Reputation: 32

Re: Object Switcher (Fixed!!!)

:D  :thumbsup:  :thumbsup:

1st comment goes here...

great!! i'll try this one... :penguin:

+1 rep

oh... u hide ur reput system =|

Last edited by Shiseiten (2007-10-06 13:34:02)


"13"

#3  2007-10-06 13:33:05

frolickfriendster
» FriendsterManiac
frolickfriendster's display avatar
Pinoy-Hispano-American
Rockstars
Location: Asia's Latin City!
Registered: 2007-04-05
Posts: 687
Last visit: 2008-08-23
Reputation: 10
Friendster

Re: Object Switcher (Fixed!!!)

wow cip. ur such an inventor of codes. bravo!!!!!!!!!!!!!!!! :rolleyes:
ok +1 repu for you hihihihih


OMG! The grammatical blunders here are
odious, horrendous, despicable, notorious,
and, simply, outrageous. lol

Your skill in English is both impeccable and
mediocre! lmao hahaha!

#4  2007-10-06 13:43:46

rafaiz
» FriendsterAddict
Location: mesia..
Registered: 2007-08-25
Posts: 477
Last visit: 2008-08-30
Reputation: 1
Friendster

Re: Object Switcher (Fixed!!!)

nice trick...



#5  2007-10-06 13:46:50

humandoll'RIA
» FriendsterWhiz
humandoll'RIA's display avatar
-tom ownz-
Location: Netherlands
Registered: 2007-10-03
Posts: 3390
Last visit: 2008-02-08
Reputation: 7
Friendster

Re: Object Switcher (Fixed!!!)

thanks for those codes @ cip!
ur very nice  :)  :thumbsup:



:arrow: "We are not special. We are not crap or trash, either. We just are. We just are, and what happens just happens."
-Chuck Palahniuk

#6  2007-10-06 13:52:21

cip6192
» Promoter
cip6192's display avatar
[ Plaifer Cipher ]
Class-S
Location: Nagareyama, Chiba
Registered: 2007-05-13
Posts: 1553
Last visit: 2008-08-06
Reputation: 7
Friendster

Re: Object Switcher (Fixed!!!)

i forgot to tell that the object must be the same width and height to make it look nice and to maintain its size when you change the object to make it really changing =)


#7  2007-10-06 14:09:48

rhownjohn
» FriendsterAddict
rhownjohn's display avatar
aNtI - eMo
Location: la union
Registered: 2007-08-11
Posts: 397
Last visit: Today
Reputation: -2

Re: Object Switcher (Fixed!!!)

nice treak :thumbsup:  :thumbsup: .. but sad to say??i have to wait 1st the new update for JS... :crybaby:


#8  2007-10-06 14:14:47

Chezter18
» Cursed Member
Chezter18's display avatar
Registered: 2007-09-19
Posts: 756
Reputation: 5
Friendster

Re: Object Switcher (Fixed!!!)

nice trick i like diz!!!!
+1 repu!!!!

#9  2007-10-06 14:16:58

~Avant~
» FriendsterAddict
Location: Philippines
Registered: 2007-09-07
Posts: 549
Last visit: 2008-07-03
Reputation: 2

Re: Object Switcher (Fixed!!!)

Wow Nice Trick +1 Repu!   =):thumbsup: 

#10  2007-10-06 14:50:52

♂imwithstupid♀
» FriendsterFreak
♂imwithstupid♀'s display avatar
certified RO addict!!
Location: sa prontera ^^
Registered: 2007-09-02
Posts: 1586
Last visit: 2008-01-10
Reputation: 5
Friendster

Re: Object Switcher (Fixed!!!)

nice trick cip im gonne try this later hehehe ;) :thumbsup:


† •B•I•O•G•E•S•I•C• † TAMBAY NG PRONTERA
† •N•E•O•Z•E•P• † tagaubos ng witherless
† •S•E•M•I•C•O• † BOSS HUNT MODE
imizzmy † •P•A•N•E•T•Z• †

#11  2007-10-06 15:14:58

dale
» Moderator
dale's display avatar
Clique Mee
Location: G.Lagro.subd.
Registered: 2007-05-24
Posts: 7180
Last visit: Today
Reputation: 66
Friendster

Re: Object Switcher (Fixed!!!)

thank's Capt. Cip.. :thumbsup:


#12  2007-10-06 15:21:16

john_619619
» Banned
john_619619's display avatar
'kiss me
Friendstertalk University
Registered: 2007-07-26
Posts: 2224
Reputation: 27

Re: Object Switcher (Fixed!!!)

tenx for this cip...i can use now all my sigs  =D


#13  2007-10-06 15:28:24

bobcbar
» SuperFriendster
bobcbar's display avatar
Broke arm, hard typing
Location: Texas USA
Registered: 2007-04-08
Posts: 7850
Last visit: Today
Reputation: 181
Friendster

Re: Object Switcher (Fixed!!!)

great trick cip :thumbsup:  :thumbsup:



Sorry but I only understand english

#14  2007-10-06 15:35:44

limerta
» FriendsterAddict
limerta's display avatar
Watch and Learn
Location: Oz
Registered: 2007-07-18
Posts: 395
Last visit: 2008-08-02
Reputation: 3
Friendster

Re: Object Switcher (Fixed!!!)

Nice trick cip.. I'll try usin this as soon as i can put my js in my proffy again.. coz i can't see how it works on my proffy..
:D

thumbs up..  :thumbsup:  :thumbsup:  :thumbsup:




"Anyone who has never made a mistake has never tried anything new."

#15  2007-10-06 16:39:10

KhErMiNaToR
» Moderator
KhErMiNaToR's display avatar
No Problemo..!
Class X
Location: C:\Program Files
Registered: 2007-06-30
Posts: 5206
Reputation: 182
???

Re: Object Switcher (Fixed!!!)

:evil:  :evil:  :evil:
ahah...another great trick from capt.Cip.. :thumbsup:


                                         
Others Can Only Follow

#16  2007-10-06 17:06:41

Camus
» FriendsterNewbie
Registered: 2007-09-17
Posts: 1
Last visit: 2008-01-25
Reputation: ~

Re: Object Switcher (Fixed!!!)

nice trick!  :O  :thumbsup:


#17  2007-10-06 17:32:19

musicale
» FriendsterTalker
musicale's display avatar
Feel The Beat Inside!
Location: Navigating....
Registered: 2007-07-26
Posts: 122
Last visit: 2008-08-28
Reputation: ~
Friendster

Re: Object Switcher (Fixed!!!)

=) nice...



No One Will Ever Love You, The Way I Do

#18  2007-10-07 00:24:59

Refresh/Reload
» FriendsterManiac
Refresh/Reload's display avatar
choose now!!
Location: Philippines
Registered: 2007-03-22
Posts: 709
Last visit: Today
Reputation: 13
Friendster

Re: Object Switcher (Fixed!!!)

hahah!! nice code cip!! :thumbsup:  just wanna ask a question..
hope u could help me.... How did you manage to resize your
youtube image/screen..? coz everytime i do that it leaves a
white background on the screen... :D


#19  2007-10-07 00:29:08

Ephemeral
» Moderator
Ephemeral's display avatar
The Forbidden
Class-S
Location: Lucena City PH
Registered: 2006-10-20
Posts: 9341
Last visit: Today
Reputation: 217
Friendster

Re: Object Switcher (Fixed!!!)

Wow nice script you have there  =) I see you're editing your JS internally hahaha  :lol:


If the lady of fate isn't in favor, the player never had the chance. But he didn't gave up even if the odds were against him. All he did was he tried his best even if he's in a losing battle he can never win...

#20  2007-10-07 02:04:35

Maruko
» FriendsterGeek
Maruko's display avatar
Respect Me.Love Me -FAQ-
Class X
Location: at your pocket
Registered: 2007-06-19
Posts: 1062
Last visit: 2008-08-23
Reputation: 25

Re: Object Switcher (Fixed!!!)

thx for sharing that  =)


Get Drunk To My Sites:
http://www.LastDropOfHope.Co.Nr
http://www.m-a-r-l-a.Co.Nr
http://www.Maruko-Fansign.Co.Nr
http://profiles.friendster.com/whorish
http://jupiterians.co.nr

Board footer

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

[ 31 queries - 2.198 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. =)