friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#1  2008-01-10 07:42:12

junti
» FriendsterNewbie
junti's display avatar
Single
Location: Cebu php
Registered: 2007-06-06
Posts: 31
Last visit: 2008-11-29
Reputation: 2
Friendster

Right click menu for IE

Hi guys.. let me shere this code to one of us..  :D


Code:

<!--

///////////////////////////////////////////////////////////////////////////////
//   ..:: eDITED BY: Junti::..
// change the menuItems array with your options and set the urls to link to
//  use addMenuItem("Text to show", "Url To Link To"); to make an item
//  use addMenuItem("Text", Url", "Img To Show"); to make an item with an image
//  use addMenuItem(); to indicate a separator bar
//  you can use html tags in the text, eg, <i>, <b> or <u>
//
// images used should be 16x16 transparent gifs
///////////////////////////////////////////////////////////////////////////////

 menuItems = new Array();
 menuItemNum = 0;

 function addMenuItem(text, url, img){
  if(img) menuItems[menuItemNum] = new Array(text, url, img);
  else if(text) menuItems[menuItemNum] = new Array(text, url);
  else menuItems[menuItemNum] = new Array();
  menuItemNum++;
 }

 menuWidth = 136; //menu width
 menuHeight = 202; //menu height
 menuDelay = 50; //delay before menu appears
 menuSpeed = 8; //speed which menu appears (lower=faster)
 menuOffset = 2; //offset of menu from mouse pointer

 addMenuItem("<center>FS HOME</center>","http://profiles.friendster.com");
 addMenuItem();
 addMenuItem("<center>BACK TO PROFILE</center>","http://profiles.friendster.com/user.php");
 addMenuItem("<center>FRIENDS</center>","http://www.friendster.com/friends.php");
 addMenuItem("<center>EDIT PROFILE</center>","http://www.friendster.com/editprofile.php");
 addMenuItem();
 addMenuItem("<center>PHOTOS</center>","http://www.friendster.com/viewphotos.php");
 addMenuItem("<center>BULLETIN BOARD</center>","http://www.friendster.com/bulletinboard.php");
 addMenuItem("<center>PEOPLE</center>","http://www.friendster.com/userlist.php?list=newusers");
 addMenuItem("<center>SEARCH</center>","http://www.friendster.com/gallery.php");
 addMenuItem("<center>GROUP</center>","http://www.friendster.com/group/mygroup.php");
 addMenuItem();
 addMenuItem("<center>LOG OUT</center>","http://www.friendster.com/logout.php");

 ///////////////////////////////////////////////////////////////////////////////
 // do not edit the code below, it is required for the menu to work correctly
 ///////////////////////////////////////////////////////////////////////////////


 if(window.navigator.appName == "Microsoft Internet Explorer" && window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE") + 5, window.navigator.appVersion.indexOf("MSIE") + 8) >= 5.5)
  isIe = 1;
 else
  isIe = 0;

 if(isIe){
  menuContent = '<table id="rightMenu" width="0" height="0" cellspacing="0" cellpadding="0" style="font:menu;color:menutext;"><tr height="1"><td style="background:threedlightshadow" colspan="4"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight" colspan="2"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="10"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"><table cellspacing="0" cellpadding="0" nowrap style="font:menu;color:menutext;cursor:default;">';
  for(m=0;m<menuItems.length;m++){
   if(menuItems[m][0] && menuItems[m][2])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap><img src="' + menuItems[m][2] + '"></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else if(menuItems[m][0])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else
    menuContent += '<tr><td colspan="5" height="4"></td></tr><tr><td colspan="5"><table cellspacing="0"><tr><td width="2" height="1"></td><td width="0" height="1" style="background:threedshadow"></td><td width="2" height="1"></td></tr><tr><td width="2" height="1"></td><td width="100%" height="1" style="background:threedhighlight"></td><td width="2" height="1"></td></tr></table></td></tr><tr><td colspan="5" height="3"></td></tr>';
  }
  menuContent += '</table></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedshadow" colspan="3"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threeddarkshadow" colspan="5"></td></tr></table>';

  menuPopup = window.createPopup();
  menuPopup.document.body.innerHTML = menuContent;
 }

 function showMenu(){
  menuXPos = event.clientX + menuOffset;
  menuYPos = event.clientY + menuOffset;

  menuXIncrement = menuWidth / menuSpeed;
  menuYIncrement = menuHeight / menuSpeed;

  menuTimer = setTimeout("openMenu(0,0)", menuDelay);

  return false;
 }


 function openMenu(height, width){
  iHeight = height;
  iWidth = width;

  menuPopup.show(menuXPos, menuYPos, iWidth, iHeight, document.body);

  if(iHeight < menuHeight)
   menuTimer = setTimeout("openMenu(iHeight + menuYIncrement, iWidth + menuXIncrement)", 1);
  else
   clearTimeout(menuTimer);
 }


 if(isIe) document.oncontextmenu = showMenu;


//-->

LIVE PREVIEWhttp://profiles.friendster.com/juntix

Please do the move rightcliking on the page..

hope you like the code..   =)

Last edited by junti (2008-01-10 10:25:03)

#2  2008-01-10 07:43:46

jHabBy
» FriendsterTalker
jHabBy's display avatar
gLad t0 havE liVed...
Location: i'M on eaRtH!
Registered: 2007-11-04
Posts: 256
Last visit: 2008-09-21
Reputation: ~
Friendster

Re: Right click menu for IE

First to comment! =)

Thanks for this code! =)


#3  2008-01-10 07:45:59

junti
» FriendsterNewbie
junti's display avatar
Single
Location: Cebu php
Registered: 2007-06-06
Posts: 31
Last visit: 2008-11-29
Reputation: 2
Friendster

Re: Right click menu for IE

Welcome jHabBy   :P

#4  2008-01-10 07:49:44

j0hnc3na
» FriendsterAddict
j0hnc3na's display avatar
U Cant See Me!!!
Location: The Squared Circle
Registered: 2007-09-29
Posts: 377
Last visit: Yesterday
Reputation: 3
Friendster

Re: Right click menu for IE

nc code...i saw it... :thumbsup:




Read the rules or be WARNED...
much worst , be
BANNED...

#5  2008-02-15 05:47:32

lloyd
» FriendsterTalker
lloyd's display avatar
+++TaeKwonDo+++++
Friendstertalk University
Location: PHILIPPINES
Registered: 2007-06-30
Posts: 209
Last visit: 2008-12-01
Reputation: 2
Friendster

Re: Right click menu for IE

nice one~!tnx for sharing


#6  2008-02-15 05:49:38

dale
» Moderator
dale's display avatar
Clique Mee
Location: G.Lagro.subd.
Registered: 2007-05-24
Posts: 7196
Last visit: 2008-11-29
Reputation: 67
Friendster

Re: Right click menu for IE

thanks for sharing bro. :thumbsup:


#7  2008-02-15 06:05:43

AFZULNIZAM
» Moderator
AFZULNIZAM's display avatar
.White Protector.
Location: Kuala Lumpur
Registered: 2007-09-14
Posts: 6125
Reputation: 308

Re: Right click menu for IE

Wa....nice code...i like...thanks.. :midfinger:

Last edited by AFZULNIZAM (2008-05-15 03:40:35)



click image above to join wp group :penguin:
Copyright © 2002–2008

#8  2008-02-15 06:16:13

iconald
» FriendsterManiac
iconald's display avatar
Pogi c",) \m/
Location: Philippine
Registered: 2007-09-27
Posts: 818
Reputation: 4
Friendster

Re: Right click menu for IE

nice trick  :thumbsup:  thanks for sharing  :thumbsup:


#9  2008-02-16 15:58:29

Alonesky
» FriendsterNewbie
Alonesky's display avatar
My Name Is Alonesky
Location: Indonesia
Registered: 2008-02-13
Posts: 30
Last visit: Yesterday
Reputation: ~
Friendster

Re: Right click menu for IE

Sip Tapi Codenya Bisa Di Tambah Gambar Nggak
Masa Nggak Bisa Di Edit Warna Bg Nya..
Hha
Piss..

:)


#10  2008-02-16 20:09:35

lilprincess950
» FriendsterFreak
lilprincess950's display avatar
I'm sweet like a sweetart
Artwork 101
Location: In your heart...
Registered: 2007-12-09
Posts: 1662
Reputation: 39
Friendster

Re: Right click menu for IE

Thanks for sharing  :eh:  :eh:  =)


#11  2008-02-16 21:06:06

karballa09
» FriendsterAddict
karballa09's display avatar
noRRak iah gwe
Class X
Location: "FROG"
Registered: 2007-11-15
Posts: 410
Last visit: Yesterday
Reputation: 44

Re: Right click menu for IE

great  trick  brooooo :o  :thumbsup:  :thumbsup:


#12  2008-02-17 17:11:21

ladycuefive
» FriendsterNewbie
ladycuefive's display avatar
Location: caLoocan city
Registered: 2007-08-11
Posts: 58
Last visit: 2008-11-26
Reputation: 3
Friendster

Re: Right click menu for IE

where i am goin to paste dis codes ? eniweiz .. nice trick ! xD

#13  2008-02-21 03:26:42

Alonesky
» FriendsterNewbie
Alonesky's display avatar
My Name Is Alonesky
Location: Indonesia
Registered: 2008-02-13
Posts: 30
Last visit: Yesterday
Reputation: ~
Friendster

Re: Right click menu for IE

hai what is code in mainnav..

:)


#14  2008-03-19 13:13:44

xXRaPXx
» FriendsterTalker
xXRaPXx's display avatar
(Put evil laugh HERE)
Location: close your eyes...
Registered: 2007-09-22
Posts: 128
Last visit: 2008-11-12
Reputation: ~
Friendster

Re: Right click menu for IE

gonna try this one..sounds good  :D:thumbsup:

#15  2008-03-19 16:58:43

nnej15
» FriendsterTalker
Location: >>mY aPaRmEnT!<<
Registered: 2008-01-17
Posts: 226
Last visit: 2008-08-23
Reputation: 1

Re: Right click menu for IE

coudn't see the trick ur profile is private.. nwei, thanks for sharing the code.. :)


#16  2008-03-19 17:04:27

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: Right click menu for IE

^ i appreciate you for that info.

:arrow: Pls set your profile in public.




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

#17  2008-04-15 07:16:25

conmarie
» FriendsterAddict
conmarie's display avatar
Ne neomu yeppeoyo ;)
Singles Goes HOT!
Location: :]
Registered: 2007-04-24
Posts: 381
Last visit: 2008-08-02
Reputation: 1
Friendster

Re: Right click menu for IE

Nice code junti!
offtopic: lol junti cool kid to xD sa tambayan haha member ka pala d2 ^^ <--- sorry xD hirap e english



Tnx danx :D
I was so stupid when i was just a newbie here :wallbash: :wallbash:

#18  2008-04-15 09:26:50

ThE_FamouS_LasT_WorD
» FriendsterAddict
ThE_FamouS_LasT_WorD's display avatar
AKATSUKI MEMBER
Naruto Fanz-ShinobiElite
Location: Grass Village
Registered: 2007-08-23
Posts: 575
Last visit: 2008-11-13
Reputation: 3
Friendster

Re: Right click menu for IE

thanks for sharing dude this is I want to be:D




AKATSUKI

#19  2008-04-15 10:18:52

junti
» FriendsterNewbie
junti's display avatar
Single
Location: Cebu php
Registered: 2007-06-06
Posts: 31
Last visit: 2008-11-29
Reputation: 2
Friendster

Re: Right click menu for IE

WELCOME.. THE PREVIEW ARE NOT ACTEVE.. BUT TRY TO use the code its working...

#20  2008-04-22 08:17:09

mabuhay
» FriendsterFreak
mabuhay's display avatar
KKB YOUTH SUMMIT 08
Friendstertalk University
Location: Laguna
Registered: 2008-03-11
Posts: 1807
Reputation: 79
Friendster

Re: Right click menu for IE

not working 2 ur preview
to see is to believe

hindi cool ang global warming

GOD IS GOOD
ALL THE TIME



Search Friendstertalk

Board footer

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

[ 28 queries - 0.763 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. =)