PLEASE do NOT strip my credits out of your code. They are harmless. Unlike most sites, My credits do NOT show up on your visible page, there is no reason to remove them. If you make a derivative of my work, you may add your own credits, but leave mine in tact.

I apologize for being less attentive to people's questions than in the past. I hope to return to doing this at some time. But for now I need to think about what I want to do. This doesn't mean I am completely ignoring all questions, if I suspect there might be a bug in my code, or myspace has made some change effecting it, I will still dig in and research.

Sunday, March 04, 2007

mySpace Top Navigation Bar, Style or Hide

MySpace Top Menu Bar

This article is being updated to reflect the June 18-July 10 2008 changes. What you see is what I have so far.

If your drop down links, on the main menu, are not placing correctly, it is likely caused by an attempt to use a position:relative or position:absolute on something in the top menu/ad area structure. This WILL alter the positioning of the drop downs. They are positioned using absolute, and a calculated value, relative to the body.
If you add a position command, to another parent element (parent of the links) you will change the reference point of their positioning.


Some Quick Links, for those who do not want to read everything:
Removing/Changing the Dark Blue Color Bkgd
Hide Top Menu
Style Top Area to include Ad background, Search area, Menu
Prevent Google Search from Wrapping to Next Line and Causing Centering Issuses
Hide Google Search and myspace Logo (does not hide shortcuts)
Change color of the link text AND drop down Arrow things in Top Menu
Change color of the drop down Arrow things in Top Menu

For an image, which shows the depth (parents) of the Top Menu Bar, please see this myspace page:
MySpace Page Showing div, table, cells and classes
I have updated the above page to show many of the new structure/classes

The page, I link to above, has been turned into a diagram, by adding style commands. I also added a color coded key to the right.

The dark Blue Color Bkgd
The dark blue (2358B8)coloring is applied at this level:
div div.profileWidth table td
<a class=i href="xiii.us/ms/ad-search-menu">
myspace remove blue behind ad/search area by Eileen</a>
<style>
.i {display:none;}
div.profileWidth table td, x.i i .i {background-color:transparent !important}
</style>
You can change transparent to the color of your choice.

The table which contains the top menu is NO LONGER in class navigationbar
It no longer has a class (they used an ID which we can not access, with code myspace will accept).

The navigation bar can now be addressed like this:
div.profileWidth table td div

Notice how many other things this potentially effects.
However, all of the other effected elements can be addressed separate, because they are all in an additional class
All the other elements (except the moot empty div), effected by the above statement, can be addressed like this:

div.profileWidth table td div.clearfix,
div.profileWidth table td div.clearfix div,
div.profileWidth table td div div

However,
visibility:hidden has been disabled for everything in the top ad/search/menu area.
display:none works sort of.
Any attempt to reverse a display:none, causes a problem with the drop down menus.
So I will use a solution which combines positioning with opacity.
This is NOT the only solution.

Code to Hide Top Menu
As of Today, July 3 2008, this code no longer works however if you scroll down a bit, you will find another solution, which did work when I tested it today.
Place this code at the bottom of the Meet, or wherever you put style blocks.
<a class=i href="xiii.us/ms/ad-search-menu">
Hide MySpace Main Menu Nav Bar</a>
<style>
div table div, .i {display:none;}
div.profileWidth div.clearfix, i i i,
div.profileWidth div.clearfix div {display:block;}
</style>
<i class=i>END code to Hide Top Nav Bar Main Menu</i>



The below solution does work as of July 3 2008, but keep in mind that myspace may be trying to block the ability to hide this menu. Therefore expect more changes which break the various published solutions, including this one.
You can place this code at the very bottom of the to Meet section:
<a class=i href="xiii.us/ms/ad-search-menu">
myspace Hide New Top Menu Nav Bar</a>
<style>
.i {display:none}
div.profileWidth {margin-top: -30px !important;}
div.profileWidth div {filter:alpha(opacity=0); opacity:0.0001}
div.profileWidth div.clearfix, i i i,
div.profileWidth div div {filter:none; opacity:0.9999}
div.profileWidth div.clearfix {position:relative; top:30px}
</style>
<i class=i>!!! End Code to Hide Top Menu !!!</i>


Code to Style Top Menu
If you first apply the block I have below, you will clearly see where each color/style gets set.
Then you can look at the color/style, and determine exactly what to change.
i.e. if you see PINK, and you know that everything PINK you want GREEN, change PINK to GREEN.
etc ...

You can place this code into the about me, meet, or interests section.
<a class=i href="xiii.us/ms/ad-search-menu">
myspace style top area ad/search/menu</a>
<style>
.i {display:none}
{! color top menu !}
div.profileWidth table td, i i i.x {background-color:black !important;}
{! color search area and behind ad different than top menu !}
div.profileWidth div {background-color:pink !important}
{! color link font in top menu !}
div.profileWidth div ul li a {font-family:comic sans ms; font-size:11px; font-weight:bold; color:pink !important}
{! link hover color !}
div.profileWidth div ul li a:hover {color:hotpink !important; background-color:green !important; display:block}
{! remove shadow in google search area !}
div.profileWidth div.clearfix, .i i i {background-image:none !important;}
</style>
<i class=i>!!! End Code to Style Top Ad/Search/Menu !!!</i>
Of course, you can change the style attribute values (such as color, font size, font weight, font family) to the values of your choice.

Here is another solution which also colors the little down arrows
<a class="i" href="xiii.us/ms/ad-search-menu">
myspace top menu navbar change link color (text and arrows)</a>
<style>
.i {display:none;}
div.profileWidth table td ul *,
div.clearfix i i i {color:yellow !important font-family:comic sans ms !important; font-size:18px !important; font-weight:bold !important}
</style>
<i class="i">End Code to color links in top menu</i>
Code can go at the very top or very bottom of the about or meet sections.

If you want the down arrows a different color, than the text, see the code at the bottom of this article.

Size Top Menu
It is much more difficult than before to make the top menu smaller. However this code will make it less high.
You can alter the px values to suit your needs.
<a href="xiii.us/ms/ad-search-menu" class="i"> MySpace Top Menu Code by Eileen

<style>
div.profileWidth table td div ul {height:10px !important; padding-top:15px !important}
div.profileWidth table td div ul li * {font-size:6px !important; height:10px !important; line-height:10px !important}

{! below px value should be 29 minus the px height value used above !}
div.profileWidth div.clearfix {position:relative !important; top:15px !important; z-index:9 !important}
div.profileWidth {margin-top:-15px !important;}
.rail {display:none !important;}
div.profileWidth td {background-color:transparent !important;}
</style>
!! END Code to Decrease Top Menu Hight !!</a>

Shadows in Top area
The shadow you see, is caused by background images.
These are applied at various levels.
Some other things formed with background images are:
- myspace logo to the left of the google search area
- the rounded corner look of the google search bar
- the google search logo next to the google search bar.

I do remove the shadow from the google search area, in my above example.
This shadow background image is applied at this level:
div.profileWidth div.clearfix

The myspace logo background image is applied at this level:
div.ProfileWidth div.clearfix h1

The "powered by" (http://x.myspacecdn.com/modules/common/static/img/header/en-us/poweredbygoogle.png) that shows up just before the word Google (which is in a span) is applied at a level:
div.profileWidth div.clearfix form

There is also a background image used to give the search box the curved look.
This one is interesting, because it is applied at multiple levels, and the code is in a style sheet.

Look at the image, it is interesting.
http://x.myspacecdn.com/modules/common/static/img/header/searchFldBg.gif

Then see how it is applied (also interesting).
the code is found in css file
http://x.myspacecdn.com/modules/common/static/css/header/profileheader002.css

The image is applied multiple times, at multiple levels, to accomplish the effect, of keeping the image look, even if resizing the input field.

Code to remove the application of the curved edge input image, without effecting other elements:
<a class=i href="xiii.us/ms/ad-search-menu">
myspace remove image border of google search input box</a>
<style>
.i, i i.x {display:none;}
div.srchfield, div.x i i .i,
div.srchfield div {background-image:none !important;}
</style>
<i class=i>!!! End Code to remove border img on google search !!!</i>

A similar image is applied to the search button
http://x.myspacecdn.com/modules/common/static/img/header/searchBtnBg.gif
Code to remove image shadow border thing:
<a class=i href="xiii.us/ms/ad-search-menu">
myspace remove image border of google search button</a>
<style>
.i, i i.x {display:none;}
div.srchButton, div.x i i .i,
div.srchButton div {background-image:none !important;}
</style>
<i class=i>!!! End Code to remove border img on google search button !!!</i>


Prevent Google Search from Wrapping to Next Line and Causing Centering Issuses
Sizing and Spacing of the Google Search, Shortcut, Logo Space
This space seems to want to wrap, if it does not have enough space (even if it looks like there is plenty of space).

BEST SOLUTION is to REMOVE whatever is causing the problem
The profile sizes this space just fine, if no other code is messing with it.

The below code solved the problem with some profiles. It really depends on what is causing the problem to start with.
I used the below code to prevent the wrap, and keep the google input box reasonably sized.
<a class=i href="xiii.us/ms/ad-search-menu">
myspace size and prevent wrap in google search</a>
<style>
.i, i i.x, .rail {display:none;}
div.profile form {position:absolute; top:10px !important; right:10px !important;}
div.srchfield input {width:190px !important;}
</style>
<i class=i>!!! End Code to size google search space !!!</i>


IF I am adjusting the top menu and google search to do a skinny profile, I can reasonably take them down to the same width as the ad banner.
I was able to get them down to under 600px, but getting the search centered in FireFox was difficult. (Margin values are set in the style sheet for the id, making it difficult to use margins to space and center. IE uses text-align, so I could center easily in IE).

The below code block takes the search and menu down to 720px width (the same as the ad banner.)
It also includes the same formatting I used in the previous code block:
<a class=i href="xiii.us/ms/ad-search-menu">
myspace size menu and search, prevent wrap in google search</a>
<style>
.i, i i.x, .rail {display:none;}
div.profileWidth,
div.profileWidth table,
div.profileWidth table td {width:720px !important;}
div.profile form {position:absolute; top:10px !important; right:10px !important;}
div.srchfield input {width:190px !important;}
</style>
<i class=i>!!! End Code to size menu and search !!!</i>



Hide Google Search and MySpace Logo (does not hide shortcuts
If you do not know where to put this code, you can put it at the end of the Meet or Bio.
<a class="i" href="xiii.us/ms/ad-search-menu">
myspace Hide New Top Menu Nav Bar</a>
<style>
.i {display:none}
div.profile * {display:none !important;}
</style>
<i class=i>END CODE to Hide Google Search and MySpace Logo</i>
Change color of the links (text and arrows) in the main Top Menu
This code can go anywhere you are keeping style blocks, but must go OUTSIDE any existing style block. It has its own style tags. If in doubt, put at the very TOP or very Bottom of the Meet or Bio section.
<a class="i" href="xiii.us/ms/ad-search-menu">
myspace top menu navbar change link color (text and arrows)</a>
<style>
.i {display:none;}
div.profileWidth table td ul *,
div.clearfix i i i {color:yellow !important}
</style>
<i class="i">End Code to color links in top menu</i>


If you want the arrows a different color, you can apply the below block
Change color of the drop down Arrow things in Top Menu
This code can go anywhere you are keeping style blocks, but must go OUTSIDE any existing style block. It has its own style tags. If in doubt, put at the very TOP or very Bottom of the Meet or Bio section.
<a class=i href="xiii.us/ms/ad-search-menu">
myspace top menu navbar change color of link arrows</a>
<style>
.i {display:none;}
div.profileWidth table td ul small,
div.clearfix i i i {color:green !important}
</style>
<i class=i>End Code to color link arrows in top menu</i>




More stuff on Styling this Space Later


Thank you for Visiting; Have a Nice Day :-)


-I have code to customize myspace navigation links.
-And make navigation bar transparent
-How to change color of navigation bar
-eliminate hide pipes (lines) in navigation bar
-hide blue menu bar
-myspace menu font bold


xiii.us/ms/ad-search-menu

Labels:

40 Comments:

Blogger john said...

i need help pls.. im having trouble hiding my shortcuts form..i dont know what to do i tried everything i can think of..lolz...

here is my myspace prof.
myspace.com/keeper_of_keys


plspls help..XD..

3/11/07 15:28  
Blogger john said...

the one im talking about has a code div#profilelinks it wont disappear..the farthest ive gone is making it transparent but i need it gone!!huhuhuhuhu..T-T

3/11/07 15:50  
Blogger Paige said...

hello, i LOVE your blog. its been so helpful in my myspace endeavours :)
im having a problem with the top search bar. ive hidden it but it randomly repositions itself up and down the page thus making my text move up and down and not stay in the same place. is there any way to absolute position either the hidden search bar or my text?

hope you can help :) thankyou!

21/11/07 03:32  
Blogger Eileen (aka Coboble) said...

paige
Thank you Paige.

I need to look at your profile, and observe the symptom.

The top search bar should stay in the same position unless you have added code to do something to it
(or myspace has introduced a new bug).

Your own text, you can position it absolute, but unless you have prepared an outer wrapper for it, likely you will have to position it with reference to the whole page.
That may work well for you, or not.
It depends on your layout.

21/11/07 21:31  
Blogger Eileen (aka Coboble) said...

John
Sorry I missed your question earlier.

MySpace is going to great effort to prevent people from doing anything with the short cut thing.
It is still possible to relocate it off the page, but I am sure that will be blocked very soon.

I recommend just keeping it.
It isn't that bad.
Maybe color it or something.

I explain some options in this article:
To p search area

21/11/07 21:35  
Anonymous sophea said...

hi =)
is there a way to change the navigation bar background color. the code you have here doesnt work =/

30/12/07 15:07  
Blogger Eileen (aka Coboble) said...

sophea
Thank you for pointing that out.

I fixed it, the code above now works.

30/12/07 22:01  
Anonymous Helen* said...

thank you so much for this !
my navigation bar appeared over 3 lines originally, i'd been trying for months to move it into one and your blog is the only one i've found that actually worked.
thank you so much !

1/3/08 12:02  
Blogger STEVE said...

HELLO EILEEN

THANKS FOR YOUR HELP SO FAR!

I AM TRYING TO ADD A LINK BANNER TO MY OWN MYSPACE CREATION. I HAD THE LINK BANNER ON THE SITE WHEN I HAS D MYGEN STANDARD TEMPLATE AND IT WORKED AND YOU WERE TAKEN TO ANOTHER SITE. NOT IT WONT WORK ALTHOUGH I CAN GET A BANNER ON TO THE PAGE. ANY IDEAS?

HOPE YOU ARE WELL

STEVE

16/4/08 12:31  
Anonymous faye said...

Hi i am trying to hide myspace navibar links lines the bar is gone but the lines are still visual. please check myspace.com/rockport3000 so you can see what im talking about.l

12/5/08 05:34  
Anonymous Anonymous said...

Please help- the myspace navigation bar has returned, bigger, blockier, and accompanied by the myspace logo, complete with user's country detail. Ugh!

thankyou for any help you can give us in our time of need.
MLJ

18/6/08 03:17  
Anonymous Anonymous said...

your codes are amazingly effective. they're the only ones i've been able to make work.

but i can't find anywhere how to make my profile not be thousands of pixels wide...

can you have a look and see if the problem is identifiable?

http://myspace.com/trictsareforkids

23/6/08 00:38  
Anonymous Salt. said...

Your site is Great. Thanks so much
and keep up the great work(:

Used the hide navigation code.
Thanks again (Y)

23/6/08 05:00  
Blogger Suburban said...

Hello! You're page is amazing and when I first saw the change i came here immediately and you were already working on a fix! I tried all of your fixes, sifting through my old DIV code and trying to move the old NavBar codes... but I can't get the ad to show and the banner to center... I've tried everything!! All your codes did exactly what they said they wouldn, they just never solved my center issue (I am seeing it on Firefox... thats gotta be bad!)

Please help!! I'd adore you so much! and we can send you a copy of the new DVD if you want!! heres the profile i'm working with: www.myspace.com/hedpe you can contact me via beth(at)suburbannoizerecords.com

Thank you so much in advance if you can help me out!!

Respect,
Beth Chapin

23/6/08 11:47  
Blogger u∃∃l!∃ said...

Your top div is covering it, among other things.

I don't remember everything I did to get it to show.
I removed some old code for hiding the top space.
Remove the block of code, you added, that I had for recovering the ad banner, that is what is causing the issue with your drop downs, sticking in the down position.

Take out all previously used top banner code, and hide top area code.

Keep taking out code until you see the ad banner.

Then add your elements back, one by one, checking for the location of the ad banner each time.

I re-did all my code for top banners.
I haven't fixed all the code on the blog yet, but I fixed the code in the code generator, for the top banners.

25/6/08 17:30  
Anonymous *Ariel* said...

is there a way to switch/change the navigation bar into the "gray/silver" look it had? I saw a current myspace that has it rather than the "dark blue" one. And since i can't make the background (of the links) clear/transparent as I previously had, i'd prefer the silver one over the blue. Thanks in advance if you can help me! :)

25/6/08 22:06  
Blogger u∃∃l!∃ said...

Ariel,
It depends on the browser.

In IE7 and FireFox you can remove the blue (that is where the grey/silver look comes from, the partially clear image they place over the blue to give it the shadow).
However, in IE6, the only way I found to eliminate the blue, is to cover it.

If you want to turn a lot of things transparent (as I tend to do) you can do this:

body *, body.bodyContent * {background-color:transparent !important;}

Or to just get the ad/search/menu area:
div.profileWidth * {background-color:transparent !important}

But neither of those will remove the blue in IE6.

In IE, you have to cover it.
You can create a div, the size of the menu, color it any color you want, and then slip it between the blue and the links.
That is what I did on this profile:
My Myspace Page

I think I published the code in this article.

25/6/08 22:59  
Anonymous Parker said...

hey i found the image they use o create the shadow.....

http://x.myspacecdn.com/modules/common/static/img/header/bkg_msbar.png

can you make code from just knowing the URL for the IMG?
like this:div style="http://x.myspacecdn.com/modules/common/static/img/header/bkg_msbar.png" {display:none} /div

could you do that, or not?

27/6/08 07:31  
Anonymous parker said...

ok well my last post meesed up....
but anyway heres the IMG src.....
http://x.myspacecdn.com/modules/com
mon/static/img/header/bkg_msbar.png

27/6/08 07:36  
Blogger l2elesane said...

Eileen does your code remove the shadow that runs under the Top Menu? That is, the shadow running under 'Home,' 'Mail,' 'Profile' and so on?

30/6/08 16:58  
Blogger l2elesane said...

Okay nevermind, I got it. Thanks!
Your codes work miracles. :>

30/6/08 17:04  
OpenID basementghosts said...

Oh the codes aren't working for me. Any idea what could be the problem?

I cut en past the code for to hide the menu but it isn't working.

Thanks for your help :)

3/7/08 05:07  
Anonymous Anonymous said...

these were the only codes that were working perfectly for me, but when i checked my myspace this morning i noticed that they were no longer effective :[

please help.
thanks.

3/7/08 11:09  
Anonymous Anonymous said...

i think ur awesome! i love your codes! i reallyy have been looking everyywheree. one last favor?can you make a code to change the colors on the drop down menu? like the background color and the text color and the hover color of the text?

3/7/08 19:31  
Anonymous Anonymous said...

You are a great Genious!

I used your hide top nagivagtion code, works like a charm, hope they don't changed it again, I don't know why they don't want us to hide it....

THANKS ALOT!!

6/7/08 02:18  
Anonymous Anonymous said...

you seem to have the code to get rid of the shadow looking border. Do you have the code to get ride of it for the navbar (ie. home, mail, profile, friends, etc buttons?

9/7/08 17:40  
Anonymous Anonymous said...

you seem to have the code to get rid of the shadow looking border. Do you have the code to get ride of it for the navbar (ie. home, mail, profile, friends, etc buttons?

9/7/08 17:42  
Anonymous Edgix said...

Thank you for the codes! The one to change the arrow colour of the top menu is great.

The code to "Hide Google Search and MySpace Logo" does not work as of 10th July, which is when I tried it.

Keep up the good work! :D

10/7/08 01:15  
Blogger u∃∃l!∃ said...

Thanks,
I fixed it.

But I am certain that they (myspace) does not want this hidden.
Their futile attempts to prevent such sort of baffle me.

10/7/08 17:13  
Blogger u∃∃l!∃ said...

anonymous,
It is much more difficult (if possible) to remove from the navbar.

It can be covered, you can slip something in between it and the actual links.

See my code for coloring the bar in IE6.
That strategy is no longer needed to color in IE6, but is still useful for hiding the shadow.
However, it will not work if you are wanting your background to show through, only if you are content with a solid color (or are so good at art placement you can create your own image, to use in the div, and have it align perfectly with your background image.)

10/7/08 17:15  
Anonymous Anonymous said...

thank you so much it worked i was looking everywhere and nothing work then i came to this website and it worked thank you sooooooooooooo much

15/7/08 12:21  
Anonymous Anonymous said...

hello and thnx for the help i just wanna noe if you r making or ur making a code to hide the myspace ads cuz my page would look bettar if you would b able to hide them thnx

17/7/08 18:00  
Blogger u∃∃l!∃ said...

No,
I can't do that, or myspace might block access to my site from myspace.

The ad isn't that bad, just live with it. advertising is what is driving internet innovation (and content theft for profit and all sorts of things).

Seriously, the ad it what makes myspace possible.

17/7/08 18:22  
Blogger Josh said...

I modified your css for the navbar so that when the menu drops down and you hover over a link the top level doesnt turn white. However somehow now all the drop down links color is blue and ignoring color:yellow. Any suggestions as to what I have done wrong? You can view my page at www.myspace.com/immortalblackdragon

Here is what I have in my css:

{! Style Navigation Bar !}

.i {display:none}
{! color top menu !}
div.profileWidth table td, i i i.x {background-color:262626 !important;}

{! color search area and behind ad different than top menu !}

div.profileWidth div {background-color:black !important}

{! color link font in top menu !}

div.profileWidth div ul li a {font-family:comic sans ms; font-size:11px; font-weight:bold; background-color: 262626; color:yellow !important}

{! link hover color !}

div.profileWidth div ul li a:link {color:yellow !important; background-color:262626 !important;}

div.profileWidth div ul li a:hover {color:yellow !important; background-color:6c6c6c !important;}

div.profileWidth div ul li a:visited {color:yellow !important; background-color:262626 !important;}

div.profileWidth div ul li a:active {color:yellow !important; background-color:262626 !important;}

{! remove shadow in google search area !}

div.profileWidth div.clearfix, .i i i {background-image:none !important;}

18/7/08 15:14  
Anonymous Anonymous said...

i used one of your codes, thanks!

21/7/08 18:43  
Anonymous tyro said...

Hi i read through your blog and it helped a ton! thnx...i was wondering how to make my core image stretch out the entire page...i created the image on photoshop and it sized it at 1150 pixels wide and almost 800 pixels in length but it wont stretch the entire distance of the page even after i changed the width in the first step...where it starts at 900 then i changed it to my actual image width but it wont stretch...any response would be invaluable
THNX!

30/7/08 21:32  
Blogger u∃∃l!∃ said...

Tyro,
That should have worked for you.
Can you provide a link to your page, so I can look at it.
I should have some time to troubleshoot this weekend.
(Then I am going to try to answer a lot of questions that have been recently posted here).

30/7/08 22:16  
Anonymous PandaGurl said...

Thank you so much.
Have been scouring net in order to find a code to cover the new myspace mods and yours is the only one that works!

x

8/8/08 01:27  
Anonymous Ninamori said...

helppppp.
how do i show the "google search bar"????

15/8/08 14:48  
Blogger Jesper Bernt said...

Hey there
Maybe you can help me with this question: i have a film myspace site, and I want to ad space between the "MYSPACE FILM" Logo at the top and the rest of the content down under (or even better: hide the MySPACE FILM LOGO line)
Do you know how?
Regards Jesper

21/8/08 07:11  

Post a Comment

Links to this post:

Create a Link

<< Home