|
The minimizer/maximizer(updated:Nov.02'08) |
|
|
Author |
Message |
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
Subject: The minimizer/maximizer(updated:Nov.02'08) Thu Oct 30, 2008 10:10 pm |
|
|
This trick was created and shared by NOPATHZi just want to share to you guys... screenshot: Try to observe my control panel. preview: Heinz << please use mozilla firefox as your browser! to those boxes that are minimized,simply click my header to see the effect. >>In this trick you can able to minimize and maximize your main boxes of your profile... control panel photo gallery blogs review about me section comments featured friends fan of groups FOR FEATURED FRIENDS,FAN OF AND GROUPS: To those user who has a tracker,please include this code inside your onload handler.. remember you have your choices which boxes your gona min/max. js code: - Code:
-
// FRIENDS h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s Friends</div></a>";
// FANS h=document.getElementById("7").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_7'); return false\"><div>"+pageOwnerFName+"\'s a Fan of ...</div></a>";
// GROUPS h=document.getElementById("8").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_8'); return false\"><div>"+pageOwnerFName+"\'s Groups</div></a>";
If you dont have your onload handler simply use this format: - Code:
-
function heinz() {
// FRIENDS h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s Friends</div></a>";
// FANS h=document.getElementById("7").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_7'); return false\"><div>"+pageOwnerFName+"\'s a Fan of ...</div></a>";
// GROUPS h=document.getElementById("8").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_8'); return false\"><div>"+pageOwnerFName+"\'s Groups</div></a>";
}
if (!attachOnLoadHandler(function(){heinz()})) parent.onload = function(){heinz()};
For main boxes:(control panel,photo gallery,review,about me,blogs,and comments) - Code:
-
// CONTROLPANEL h=document.getElementById("controlpanel_header"); h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><div >"+pageOwnerFName+"</div></a>";
// PHOTOS h=document.getElementById("1").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div>"+pageOwnerFName+"\'s Photo Gallery</div></a>";
// BLOGS h=document.getElementById("13").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_13'); return false\"><div>"+pageOwnerFName+"\'s Blogs</div></a>";
// REVIEWS h=document.getElementById("12").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_12'); return false\"><div>"+pageOwnerFName+"\'s Reviews</div></a>";
// MOREABOUT h=document.getElementById("6").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div>More About "+pageOwnerFName+"</div></a>";
// PUBLICCOMMENTS h=document.getElementById("18").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_18'); return false\"><div>Testimonials and Comments for "+pageOwnerFName+"</div></a>";
And finally add this code below: - Code:
-
function show_hide(the_box) { if (document.getElementById(the_box)) { if (document.getElementById(the_box).style.display == 'none') { document.getElementById(the_box).style.display = 'block'; } else { document.getElementById(the_box).style.display = 'none'; } } }
>>Ok what if you want to minimized your photo gallery when your profile loads? simply add this below the box code of the trick, show_hide('content_1');hence; - Code:
-
// PHOTOS h=document.getElementById("1").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div>"+pageOwnerFName+"\'s Photo Gallery</div></a>"; show_hide('content_1');
wish you got it guys...Any queries..feel free to ask.. please only english is allowed. To minimized all your boxes when your page loads,heres the code:- Spoiler:
- Code:
-
// CONTROLPANEL h=document.getElementById("controlpanel_header"); h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><div >"+pageOwnerFName+"</div></a>"; show_hide('content_0');
// PHOTOS h=document.getElementById("1").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div>"+pageOwnerFName+"\'s Photo Gallery</div></a>"; show_hide('content_1');
// BLOGS h=document.getElementById("13").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_13'); return false\"><div>"+pageOwnerFName+"\'s Blogs</div></a>"; show_hide('content_13');
// REVIEWS h=document.getElementById("12").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_12'); return false\"><div>"+pageOwnerFName+"\'s Reviews</div></a>"; show_hide('content_12');
// MOREABOUT h=document.getElementById("6").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div>More About "+pageOwnerFName+"</div></a>"; show_hide('content_6');
// PUBLICCOMMENTS h=document.getElementById("18").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_18'); return false\"><div>Testimonials and Comments for "+pageOwnerFName+"</div></a>"; show_hide('content_18');
For groups,fan of,and friends: - Spoiler:
- Code:
-
function heinz() {
// FRIENDS h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s Friends</div></a>"; show_hide('content_2');
// FANS h=document.getElementById("7").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_7'); return false\"><div>"+pageOwnerFName+"\'s a Fan of ...</div></a>"; show_hide('content_7');
// GROUPS h=document.getElementById("8").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_8'); return false\"><div>"+pageOwnerFName+"\'s Groups</div></a>"; show_hide('content_8');
}
if (!attachOnLoadHandler(function(){heinz()})) parent.onload = function(){heinz()};
Last edited by Heinz™ on Mon Nov 03, 2008 5:49 pm; edited 1 time in total
|
|
|
|
dontmessthebest
HCG Elite
> : whtchuwatingfor?
Posts : 1349
Age : 28
Location : Tokyo, Japan
Country :
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Thu Oct 30, 2008 11:57 pm |
|
|
Nice One Sir LordHeinz
|
|
|
|
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Fri Oct 31, 2008 3:58 am |
|
|
wish you guys can have this trick as well...
|
|
|
|
punk_ii_girl
HCG Geek
> : I love HCG!
Posts : 626
Age : 103
Mood : Happy
Country :
Reg-Date : 2008-09-11
Forum Warning :
Contribution :
|
|
|
|
jhu-anne
HCG Member
> : I love HCG!
Posts : 15
Location : CAVITE
Reg-Date : 2008-10-25
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Fri Oct 31, 2008 11:46 pm |
|
|
sir heinz wer 2 put d last code and by d way nice trick sir! wish 2 have one of those ITS REALLY COOL KXE EH!
|
|
|
|
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
|
|
|
ayako
Promoter
> : ~tralala. :)
Posts : 1164
Age : 29
Mood : Content
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sat Nov 01, 2008 10:02 am |
|
|
nice trick sirzyy. enkyu fer sheyrin :]]
|
|
|
|
RaPalz
HCG Addict
> : IM FROM HELLESANA
Posts : 232
Age : 33
Location : SheBu
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sat Nov 01, 2008 12:20 pm |
|
|
Nice one siR
|
|
|
|
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
|
|
|
wytsxarha
HCG Freak
> : I love HCG!
Posts : 107
Age : 32
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sat Nov 01, 2008 6:26 pm |
|
|
|
|
|
|
amitaf_15
HCG Member
> : I can't live in a world where you don't exist.
Posts : 16
Age : 34
Location : IN THE AYER??..
Mood : Giggly
Reg-Date : 2008-10-17
Forum Warning :
Contribution :
|
|
|
|
tokxhit
Guest
> : I love HCG!
Posts : 9
Age : 33
Reg-Date : 2008-10-29
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sat Nov 01, 2008 10:11 pm |
|
|
this is really hard yet cool. i wanna have it can yuo teach me heres my email tokxhit@gmail.com[b]
|
|
|
|
trixi3
Guest
> : I love HCG!
Posts : 3
Reg-Date : 2008-11-01
Forum Warning :
Contribution :
|
Subject: wuatt iif.... Sun Nov 02, 2008 3:46 pm |
|
|
wat if i want all the boxes to minimize when the page loads??
|
|
|
|
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sun Nov 02, 2008 4:57 pm |
|
|
- trixi3 wrote:
- wat if i want all the boxes to minimize when the page loads??
for instance you want your photo gallery to be minimized when your page loads..just add this code: show_hide('content_1');>Remember the id tag of each boxes.
|
|
|
|
tokxhit
Guest
> : I love HCG!
Posts : 9
Age : 33
Reg-Date : 2008-10-29
Forum Warning :
Contribution :
|
Subject: sir heinz Sun Nov 02, 2008 7:13 pm |
|
|
hello sir heinz your from dubai right ?? do you know the place ras al khaimah ive been there for a year but i feel alone out there so a return back here to phil. but the place there is so cool .. by the way all i wanna say is i got your code and it worked on my profile .. its cool .. i was happy to have it .. sir heinz can i have a favor ?? can you teach me another code .. by the way what company are you in there .. my mom in ras al khaimah wants to have his own website can you have a contract with her ?? for a website heres her email add amna@sdg.ae her name is rowena toribio.. thanks allot sir heinz hope to teach us more .. shes famous in ras al khaimah .. heres her no. pm me in ym heres mine arkaemo@yahoo.com.. thx allot .. keep rockin ..
|
|
|
|
tokxhit
Guest
> : I love HCG!
Posts : 9
Age : 33
Reg-Date : 2008-10-29
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sun Nov 02, 2008 7:37 pm |
|
|
show_hide('content_1'); this only works on my photos what about the others ?? // FRIENDS h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s Friends</div></a>"; this would be like this right ?? // FRIENDS h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s Friends</div></a>"; show_hide('content_2'); but it doesnt work.. i use mozilla
|
|
|
|
tokxhit
Guest
> : I love HCG!
Posts : 9
Age : 33
Reg-Date : 2008-10-29
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sun Nov 02, 2008 7:45 pm |
|
|
sir i want all boxes are minimized on load except for the main tab i dont have tracker so i use the other ones.
|
|
|
|
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sun Nov 02, 2008 10:43 pm |
|
|
for friends: - Code:
-
// FRIENDS h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML=" "+pageOwnerFName+"\'s Friends "; show_hide('content_2');
|
|
|
|
molzyu21
Guest
> : I love HCG!
Posts : 5
Age : 32
Location : zambales
Reg-Date : 2008-10-06
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Sun Nov 02, 2008 11:18 pm |
|
|
am i going to save it as JS??.. xD thank YU
|
|
|
|
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Mon Nov 03, 2008 5:50 pm |
|
|
|
|
|
|
mariella
Guest
> : I love HCG!
Posts : 4
Reg-Date : 2008-11-03
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Mon Nov 03, 2008 6:45 pm |
|
|
hi sir heinz, just a q what if you have a tracker... i want to apply this trick only in my tracker how can i apply the code in my js?
|
|
|
|
trixi3
Guest
> : I love HCG!
Posts : 3
Reg-Date : 2008-11-01
Forum Warning :
Contribution :
|
Subject: ammmm?? Mon Nov 03, 2008 6:57 pm |
|
|
wer cud i find this "content i.ds"??
|
|
|
|
Heinz™
Global Mod
> : I'm a bee.. can you be my hone
Posts : 1618
Age : 38
Country :
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Mon Nov 03, 2008 6:59 pm |
|
|
- mariella wrote:
- hi sir heinz, just a q
what if you have a tracker... i want to apply this trick only in my tracker how can i apply the code in my js? good question you have there: For 3.1 version of tracker,replaced with this one: - Code:
-
addBox("<a href="#" onClick="show_hide('content_tracker'); return false">pageOwnerFName+"'s Visitors</div></a>",TRACKER.div.innerHTML,"tracker","right");
If you want to be minimized when your page loads,use this one: - Code:
-
addBox("<a href="#" onClick="show_hide('content_tracker'); return false">pageOwnerFName+"'s Visitors</div></a>",TRACKER.div.innerHTML,"tracker","right"); show_hide("content_tracker");
For 2.2 version: - Code:
-
addBox("RIGHT","<a href="#" onClick="show_hide('content_tracker'); return false"><div>"+pageOwnerFName+"'s Visitors</div></a>",TRACKER.div.innerHTML,"tracker",null);
For minimized: - Code:
-
addBox("RIGHT","<a href="#" onClick="show_hide('content_tracker'); return false"><div>"+pageOwnerFName+"'s Visitors</div></a>",TRACKER.div.innerHTML,"tracker",null); show_hide("content_tracker");
cheers!
|
|
|
|
mariella
Guest
> : I love HCG!
Posts : 4
Reg-Date : 2008-11-03
Forum Warning :
Contribution :
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) Mon Nov 03, 2008 8:29 pm |
|
|
hi sir, sorry i dont get it.. another q you mean i will replace this - Code:
-
addBox("RIGHT",pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker",null); to - Code:
-
addBox("RIGHT","<a href="#" onClick="show_hide('content_tracker'); return false"><div>"+pageOwnerFName+"'s Visitors</div></a>",TRACKER.div.innerHTML,"tracker",null);
and in what part should i put the last code you indicated in your instruction? before or after the - Code:
-
function onProfileLoad() { ???
|
|
|
|
Chirokipau
Global Mod
> : LOL?XD
Posts : 1836
Age : 31
Location : Cavite.General trias.
Mood : Happy
Country :
Reg-Date : 2008-09-04
Forum Warning :
Contribution :
|
|
|
|
Sponsored content
|
Subject: Re: The minimizer/maximizer(updated:Nov.02'08) |
|
|
|
|
|
|
|
The minimizer/maximizer(updated:Nov.02'08) |
|
|