javascript functions

Tuesday, April 10, 2007

MySpace band Page Hide Everything Code

The Code on this page, is intended for use IF you do NOT want to display any of the default page content.
The hide methodology used here does NOT allow for default content to be imported back into the page.
IF you want to display any of the default page content (besides the ad banner) use my other strategy.
My other strategy can be found here:
Band Page Simple Div Overlay

The below will hide everything except the ad banner.
It does leave about 30px of extra space under the ad banner, which can be eliminated by using a negative top margin on your div.
<i class="off">!-Hide Everything except Ad Banner, remove most of the space-!
!-Code Author:Eileen <a href="http://spiff-myspace.blogspot.com">myspace code and tutorials</a>
</i>
<style>
{!-display custom div, replace myDiv with class of your custom Div-!}
table div.myDiv {visibility:visible !important; display:block !important}
{!-Ad banner-!}
div table div {visibility:visible !important; display:block !important; margin:0px !important; padding:0px !important; }
{!-most page content-!}
table table, table div, img, form {display:none !important}
div table div div select {height:0px !important; width:0px !important; padding:0px !important; position:absolute !important; }
div table.navigationbar {display:none;}
div table {visibility:hidden;}
table, tr, td {background-color:transparent}
</style>
Now if you want to do a div overlay you can put the code in any section.
However you MUST take the div up to no more than one table deep.
i.e.
You can use the below code, and put it in any section:
<i class="off">! Div Overlay Shell to use after hiding everything more than one table deep.
author:Eileen <a href="http://spiff-myspace.blogspot.com">myspace code tutorials</a>
</i>
</td></tr></table>
</td></tr></table>
</td></tr></table>

<div class="myDiv" style="height:auto; width:800px; border:1px black solid;">

Div Content in here

</div>
<table class="off"><tr><td>
<table class="off"><tr><td>
<table class="off"><tr><td>

8 comments:

Anonymous said...

i love this code because it's simple, but is there any way of revealing just the interests table using it?

Anonymous said...

hey! the coding worked for me but i cant submit it! it will just let me preview it.. so im kinda stuck

Anonymous said...

hey
i just want a code to hide all the tables and everything but i want to be able to put my own things own it. how can i do that?

Anonymous said...

hey
i just want a code to hide all the tables and everything but i want to be able to put my own things own it. how can i do that?

yes me too.....

Eileen said...

If you want to remove the default content, so that you can place your own custom content, read this:

Band Page Div Overlay

Anonymous said...

I'm stuck 2!!!!!!!! Can you tell me what im doing wrong....i cant submit it, when i enter the code to preview it wont let me click submit.

email me at cheereyes2003@yahoo.com

PRETTY BOIIZ said...

For people who are stuck submitting, you have to edit the profile on safe mode. Goto Home page and click "safe mode" instead of "edit profile" and it should be there

Anonymous said...

How come when I use any divs.. or want to set images in the myDiv nothing shows up.. Only text and objects :|

About Me

My Photo



My name is Eileen.
I live in Corvallis Oregon (for now).
My job is moving to Austin Texas and I may move with it).
I have Aspergers (a type of high functioning autism).
In my case it is not a disability; it gives me as many strengths as it does weaknesses.
However, communicating with Neuro Typicals is a challenge for me. So if we do not understand each other, it is not because I dislike you, think you are stupid, or anything else negative. We just think differently.