friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

  • JavaScript
  •  » .::fLoating menu, with toggLe show hide!::.

#1  2008-08-16 13:21:16

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

.::fLoating menu, with toggLe show hide!::.

uhm, i forgot, pLease make a credit for shakiro214..thnx buddy..


LIVE PREVIEW: :arrow: PROFILE TESTER

SCREENSHOT: :arrow:

uhm, Good day guyz... Let me share to aLL ftaLkers about my trick, this trick is Like a fLoating object post by shakiro214 topic!, but i convert that trick into fLoating menu, with toggLe show hide! so if you think that this trick is useLess, kindLy ingnore this session.. thnx...

Let's start on JS code...
simpLy downLoad the fiLe on Link beLow! rightcLick (save target as/ save Link as), and then upLoad the fiLe in your fiLe hosting, eg. ripway or geocities...

menu.js

now, after that, copy the URL of your menu.js and then paste it inside the code beLow!

//fLoating menuLinks tricks
var fLoatmenutr = document.createElement("script");
fLoatmenutr.type = "text/javascript";
fLoatmenutr.src = "URL OF YOUR MENU.JS";
document.getElementsByTagName("body")[0].appendChild(fLoatmenutr);

and then, copy the code above paste it inside your JS fiLes...

now, Let's proceed inside the customizing codes....
open a new text fiLe, using notepad, and then copy the given code beLow, and then paste it...and then, edit some boLd part of the code...

//fLoating object
fLoatmenu="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><div class='sdmenu'>"+
"<span class='title' id='top'><img src='http://www.geocities.com/profile_tester018/fLoatingmenuLinks/expanded.gif' class='arrow' title='click to show the content'>TITLE HERE</span>"+
"<div class='submenu'>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"</div>"+
"<span class='title' ><img src='http://www.geocities.com/profile_tester018/fLoatingmenuLinks/expanded.gif' class='arrow' title='click to show the content'>TITLE HERE</span>"+
"<div class='submenu'>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"</div>"+
"<span class='title'><img src='http://www.geocities.com/profile_tester018/fLoatingmenuLinks/expanded.gif' class='arrow' title='click to show the content'>TITLE HERE</span>"+
"<div class='submenu'>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"<a href='URL HERE' target='_blank'>NAME OF SITE</a>"+
"</div></div>";

flow=document.getElementById('flo_wrapper');
river=document.createElement("div");
river.innerHTML=fLoatmenu;
flow.parentNode.insertBefore(river,flow);

//in this part you can change it into "frombottom" or "fromtop"
var verticalpos="fromtop"

function BoyantDiv()
{
    var startX = 5;
    var startY = 90;
    function ml(id)
    {

    if (document.getElementById)
      {
      var wek=document.getElementById(id);
      }
    else if (document.all)
      {
      var wek=document.all[id];
      }
    else
      {
      var wek=document.layers[id];
      }

        if(document.layers)
        {
        wek.style=wek;
        }
        wek.sP = function(x,y) {shino(x,y);};
        function shino(x,y)
        {
        wek.style.left=x;
        wek.style.top=y;
        }
        wek.x = startX;
        if (verticalpos=="fromtop")
           {
           wek.y = startY;
           }
        else{
           if (navigator.appName.indexOf("Netscape") != -1)
           {
           wek.y = pageYOffset + innerHeight;
           }
           else
           {
           wek.y = document.body.scrollTop + document.body.clientHeight;
           }
           wek.y -= startY;
           }
        return wek;
    }
    window.stayTopLeft = function () {boyant();};
    function boyant()
    {
        if (verticalpos=="fromtop"){

           if (navigator.appName.indexOf("Netscape") != -1)
           {
           var tenten = pageYOffset;
           }
           else
           {
           var tenten = document.body.scrollTop;
           }

           ftlObj.y += (tenten + startY - ftlObj.y)/8;
        }
        else{

           if (navigator.appName.indexOf("Netscape") != -1)
           {
           var tenten = pageYOffset + innerHeight;
           }
           else
           {
           var tenten = document.body.scrollTop + document.body.clientHeight;
           }
           ftlObj.y += (tenten - startY - ftlObj.y)/8;
        }
        ftlObj.sP(ftlObj.x, ftlObj.y);
        wakoko=setTimeout("stayTopLeft()", 50);
    }
    ftlObj = ml("divStayTopLeft");
    stayTopLeft();
}
BoyantDiv();

and then, save your fiLe as fLoatingmenutr.js, and then after that upLoad your fiLe in your fiLe hosting...
copy the URL of of fLoatingmenutr.js, and then paste it inside the code beLow!

//fLoatingmenuLinksjs tricks
var fLoatingmenuLinksjs = document.createElement("script");
fLoatingmenuLinksjs.type = "text/javascript";
fLoatingmenuLinksjs.src = "URL OF YOUR FLOATINGMENUTR.JS";
document.getElementsByTagName("head")[0].appendChild(fLoatingmenuLinksjs);

sorry, i forgot this one....

paste the given code beLow inside your css fiLes...

/* fLoating menuLinks styLe */
.sdmenu {
  width: 100px;
  font-family: verdana;
  font-weight:bold;
  font-size: 10px;
  padding-bottom: 10px;
  background-color: transparent;
  background-image:url(http://www.geocities.com/profile_tester…ttom02.png);
  background-repeat: no-repeat;
  background-position: right bottom;
  color: #FFF;
}

.sdmenu .title, .sdmenu .titlehidden{
  display: block;
  padding: 5px 0;
  font-weight: bold;
  color: white;
  background: #FFF url(http://www.geocities.com/profile_tester…/title.gif) repeat-x;
  text-align: left;
}

.sdmenu .title {
  border-bottom: 1px solid #DDD;
}

.sdmenu .arrow {
  margin-left: 10px;
  margin-right: 7px;
}

.sdmenu .titlehidden {
  border-bottom: none;
}

.sdmenu #top {
  background: url(http://www.geocities.com/profile_tester…itle02.png) no-repeat;
}

.sdmenu .submenu {
    overflow: hidden;
}

.sdmenu .submenu a {
    padding: 5px 0;
    text-indent: 15px;
    background: #fff;
    display: block;
    border-bottom: 1px solid #DDD;
    color: #242424;
    text-decoration: none;
    text-align: left;
}

.sdmenu .submenu a:hover {
  background : #242424;
background-image:url(http://www.geocities.com/profile_tester…karrow.gif);
  background-repeat: no-repeat;
  background-position: left center;
  color: #FFF;
  text-align: left;
}

and then, you're done... hope you Like it guyz....
gudLuck...

Last edited by irishandme (2008-08-16 15:09:22)

#2  2008-08-16 13:30:37

Lordheinz
 Heinz R.Fangonil
» Banned
^ trashed
Registered: 2007-06-26
Posts: 5178
Last visit: 2008-09-11
Reputation: 242

Re: .::fLoating menu, with toggLe show hide!::.

;) finally youve shared it here....:thumbsup: wuw..you have lot of accounts...full of tricks im sure..
well what else will i say on your trick..awesome! keep on sharing lee..


Thank you so much FRIENDSTERTALK...

#3  2008-08-16 13:35:51

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

lordheinz wrote:

;) finally youve shared it here....:thumbsup: wuw..you have lot of accounts...full of tricks im sure..
well what else will i say on your trick..awesome! keep on sharing lee..

thnx buddy...
hehe...uhm, and thnx for give me a chance to share this trick..hehe...
=)

#4  2008-08-16 13:48:31

bobcbar
 Bob
bobcbar's display avatar
» SuperFriendster
Gee Back to Work
Location: Texas USA
Registered: 2007-04-08
Posts: 9903
Reputation: 292
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

Amazing modification to shakiro's code! Great work and thanks so much for sharing, now I need to redo my codes on my second profile :D


#5  2008-08-16 13:50:13

toinkz101
 Jzan Vern
toinkz101's display avatar
» Banned
whahha..
Location: Cebu City
Registered: 2008-06-04
Posts: 513
Last visit: 2008-11-09
Reputation: 34
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

hhaa..nyc trick..BTW u have lots of proffy?..:o..ehhee



>>FRiENDSTERTALK UNiVERSiTY MEMBER

#6  2008-08-16 13:53:36

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

bobcbar wrote:

Amazing modification to shakiro's code! Great work and thanks so much for sharing, now I need to redo my codes on my second profile :D

uhm, thnx buddy... and thnx aLso for shakiro, coz' i got the idea on his trick... cheers.... :penguin:

toinkz101 wrote:

hhaa..nyc trick..BTW u have lots of proffy?..:o..ehhee

thnx bro... yap, but some of my fs account, is under construction... hehe...

#7  2008-08-16 15:03:47

creyon
creyon's display avatar
» FriendsterNewbie
Registered: 2007-06-21
Posts: 93
Last visit: 2009-01-07
Reputation: ~

Re: .::fLoating menu, with toggLe show hide!::.

aw...it doesn't look the same as the one on your profile tester...

i've followed all your instructions but it becomes different..

here is my friendster url to see how it came out.. :crybaby:

http://profiles.friendster.com/benreyno3


the saddest part of being me is not being with you..

#8  2008-08-16 15:06:55

bobcbar
 Bob
bobcbar's display avatar
» SuperFriendster
Gee Back to Work
Location: Texas USA
Registered: 2007-04-08
Posts: 9903
Reputation: 292
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

creyon wrote:

aw...it doesn't look the same as the one on your profile tester...

i've followed all your instructions but it becomes different..

here is my friendster url to see how it came out..

http://profiles.friendster.com/benreyno3

Did you remove it already? I just viewed ur profile with IE7 its not showing :eh:


#9  2008-08-16 15:07:49

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

creyon wrote:

aw...it doesn't look the same as the one on your profile tester...

i've followed all your instructions but it becomes different..

here is my friendster url to see how it came out.. :crybaby:

http://profiles.friendster.com/benreyno3

aw, sorry, bro,, i forgot the css....
owh, sorry guyz...

#10  2008-08-16 15:12:50

bobcbar
 Bob
bobcbar's display avatar
» SuperFriendster
Gee Back to Work
Location: Texas USA
Registered: 2007-04-08
Posts: 9903
Reputation: 292
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

:lol: on my making me lose more hair..already bald :o


#11  2008-08-16 15:24:20

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

bobcbar wrote:

:lol: on my making me lose more hair..already bald :o

sorry, sir bobcbar... hehe...

@topic: sorry guyz, i forgot the css codes...but, i finaLLy post the codes for your css...

Last edited by irishandme (2008-08-16 15:27:40)

#12  2008-08-16 15:52:12

cklahrckiey
 Cklarck David Van D. de los Trico
cklahrckiey's display avatar
» FriendsterFreak
Tha Mafia
Class-S
Location: Lea's Heart
Registered: 2007-11-21
Posts: 1725
Reputation: 39

Re: .::fLoating menu, with toggLe show hide!::.

wow bro you pimped it...dang...im using it...wakakaka...
green corn for you!!! :D




"Those who are afraid of pain will never know GLORY!"

#13  2008-08-16 15:54:21

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

cklahrckiey wrote:

wow bro you pimped it...dang...im using it...wakakaka...
green corn for you!!! :D

thnx, bro...
a Lot of miLLion thnx for you...

#14  2008-08-16 16:24:12

emoshun
 xintaro
emoshun's display avatar
» FriendsterTalker
upcomming moderator(JOKE)
Location: rizal, phil.
Registered: 2008-03-16
Posts: 112
Last visit: 2009-01-08
Reputation: ~
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

wow this is really cool....

also the proffy....


#15  2008-08-16 16:44:03

intruderz_103
intruderz_103's display avatar
» FriendsterAddict
rock on!
Rockstars
Location: philippines
Registered: 2007-09-10
Posts: 307
Last visit: 2008-11-16
Reputation: 5

Re: .::fLoating menu, with toggLe show hide!::.

sir irish how can i make it float to the right??


#16  2008-08-16 16:53:18

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

emoshun wrote:

wow this is really cool....

also the proffy....

thnx buddy...

intruderz_103 wrote:

sir irish how can i make it float to the right??

ukei, try this bro...

function BoyantDiv()
{
    var startX = 5;
    var startY = 90;
    function ml(id)
    {

did you see the boLd part?
just change it, 5 is the margin from the left?

so if you want to put your fLoating menu in right side, change it, for exampLe, 1000, just set the margin of your object from Left....ukei...
gudLuck bro...

Last edited by irishandme (2008-08-16 16:53:44)

#17  2008-08-16 17:02:22

intruderz_103
intruderz_103's display avatar
» FriendsterAddict
rock on!
Rockstars
Location: philippines
Registered: 2007-09-10
Posts: 307
Last visit: 2008-11-16
Reputation: 5

Re: .::fLoating menu, with toggLe show hide!::.

ahh ok... tnx for sharing and helping bro! =) =)=)


#18  2008-08-16 17:03:34

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

intruderz_103 wrote:

ahh ok... tnx for sharing and helping bro! =) =)=)

ukei, no probLem bro...

#19  2008-08-16 18:11:04

intruderz_103
intruderz_103's display avatar
» FriendsterAddict
rock on!
Rockstars
Location: philippines
Registered: 2007-09-10
Posts: 307
Last visit: 2008-11-16
Reputation: 5

Re: .::fLoating menu, with toggLe show hide!::.

got again another question bro...

why is it that my menu doesn't hide/show??


#20  2008-08-16 18:12:51

irishandme
 Mr.AlvinLee.18
irishandme's display avatar
» FriendsterTalker
nagbubuLag buLagan!
Friendstertalk University
Location: Philippines
Registered: 2007-08-09
Posts: 131
Last visit: 2009-01-08
Reputation: 41
Friendster

Re: .::fLoating menu, with toggLe show hide!::.

intruderz_103 wrote:

got again another question bro...

why is it that my menu doesn't hide/show??

reaLLy..? ukei, may i check your js codes...
PM me bro...

Last edited by irishandme (2008-08-16 18:14:01)

  • JavaScript
  •  » .::fLoating menu, with toggLe show hide!::.

Search Friendstertalk

Board footer

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

[ 8 queries - 0.054 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. =)