mySpace Simple Div Overlay
Creating a Super Simple Div Overlay for your MySpace Page
This div overlay strategy does NOT hide the bottom links, it pushes them down based on the size of you div overlay. MySpace has deleted profiles, for not showing the bottom links.
TO REMOVE THE PINK/magenta BORDER, set the px width of the myCoreDiv class to 0. It is good to make the last step. Having the border helps with troubleshooting
If you are creating the div for the artist band page, go here instead:
mySpace Simple Div Overlay Band Page
Modified 22 July due to myspace code changes
This is the div overlay we will be building in this tutorial:
Click Here To See the Page
(assuming myspace is actually up, more and more one just gets that expected error message).
This Process Consists of the following steps:
1) Create a Div, Image or Flash File which will make up the "Core" of your profile. This image (or flash file) can have any desired links drawn onto it. It can also contain blank areas to use for any of the following:
- The placement of images which are not drawn onto your core image
- The placement of text boxes
- The placement of videos or other objects
- the placement of Content we import in from the default page, such as blogs, friends, comments, music player, calendar.
- etc ...
This is an ideal strategy if you want to hide everything on your profile and replace it with a single image or flash file.
2) Hide Everything between the top menu area and the bottom links. (This block can be used, to hide the whole myspace page, without using the rest of this tutorial.)
You can choose to keep some content. That content is clearly commented in the code.
You can choose to NOT use all of the lines of code.
3) Create a Div which sits just under the top main menu and just above the bottom Links. We will do this in a way that allows the div to automatically center itself, and the bottom links to move down as much as needed.
4) Place Your Core Image (or Images).
5) Create Links. In this tutorial I do this by placing clear gif images over the locations, on your core image, the links belong.
Later I will cover some other methods of creating links.
6) Place Content from Default Page.
7) Create and Place Additional Content if desired.
STEP 1: Create the Core of your Content
By this I mean a main image, or flash, which you will use as the building block for your profile.
I am not going to show you how to do this. I did mine in PaintShop.
You can use any paint type program, or several online programs, to do this work.
I might provide some links to some later.
For this example we will use this "core" image:
Click Here to See the Image
(I was in the mood to draw circles. It is a good thing I majored in Computer Science instead of Art :-).
STEP 2: Hide Default Page Content
I am choosing to keep my ad banner, search, shortcuts, top menu, and bottom Links.
Place this code in the About Me.
Style or Remove content in Top Search/Menu area
Step 3: Create a Core Div to put our our Content in, Between the top Menu and the Bottom Links
Place this block in the interests section.
I am going to use the "General" interests Section.
I next paste the below code block into the General Interests Section:
Set the width to the Width of your own core image. I used 900px.
Step 4: Place Core Image.
Just below where it says "<span class="off">!---START Core CUSTOM CONTENT -----------!</span>"
Insert your image, i.e.
If you have multiple images, list them one after the other. (Assuming they are clean horizontal image slices).
[Do NOT Slice your image unless it is too large for the site which hosts your image.]
Insure that the width of your image is the same as the width defined for the div. I have it set to 900px. If that is not the width of your image, you will need to change the width value.
Step 5: Create Links
The assumption here, is that the links have been drawn onto your core image. I will show how to place other types of links later in this article.
Get Measurements. Since we are measuring from the top left corner of our Main Div (and of our core image) The easiest way to get measurements may be to place a grid over the top of our image.
I have created a grid for this purpose.
I place the following code below the code I placed above (just below the core image).
This code is temporary and we will remove this code when we are finished.
My first link is the area with the text "Be My Friend"
I get this:
top:210px; left:120px
I get a size of
width:60px; height:50px
I will create my link by placing a clear gif over this area, and turning the gif into a link. I will use the same clear gif which mySpace uses in their default code.
I get the following:
I place the code block, inside my core content area, just under the last block I placed here.
[There will be a blue border, red on hover, over the link area. When we are done we will remove these. For now they are good for seeing exactly where our link is.]
I use the same technique to place the rest of my links.
Step 6: Place Custom Content onto Page.
I am going to place an image.
I want my profile Image on my page, but understand that importing it, is not as easy as just adding code to place the image.
I want to place the image top:30; left:270px. Remember, the measurements are from the top left corner of our core div (and our core image).
I use this code to place the image:
Because the above needs to be INSIDE my div, I place this block inside my Core Div, just under the last item I added.
It needs to go above where it says END Core CUSTOM CONTENT
You can use the same technique to place other types of content.
I notice I didn't include a link for "View All Comments" when I created my core image.
I can easily add the link, providing the needed text with the link.
I pick the following location for my link: top:400px left:640px
For this example I am going to use both a content block and a style block.
My content block goes in my Content section (within my Core Div)
I use the following code:
I put a <br> between the two words in my link, to force a carriage return between the two words.
Notice I assigned a class. I am going to use the class, to create a style block.
Before we create the style block, notice where the link ended up.
It should have ended up just under your core image.
It should have taken on the default style attributes for a link (blue and underlined).
We will use a style block to change the color, font-size, font-family, and location of the link.
I am going to put my style blocks, which go with content I have placed in my core, in my music section.
Creating An "About" Section
Really this is just going to be a place to write some stuff you want to show up on your Div Overlay.
The easiest way is to just create a div, inside your Core Div, to hold this content.
IF the content is static in size (Not just over time, but across the different browsers and resolutions you expect your page to be viewed in) then you can use absolute positioning, to place the content onto an area on your Core Image.
However, if the content does not size statically, across platforms, this can be an issue. A scroll box can solve this problem.
Or, you can insure you allow enough space, to account for this.
If you want the content to be more dynamic in size; You can instead place the content so that it just falls onto your div, and your div grows as the content expands. This does NOT work with absolute placement.
I will do one of each here.
First I will create a Div, put Text in the Div, and then absolutely position the div in one of the Circles on my Core Image.
[Note: Avoid use of the <p> tag, if you want your content to size consistently across platforms. I have found that <p>, <br> and pt font sizing are the biggest contributors to sizing inconsistency.]
I did use some <span> tags in my text content, so I could format some of the text differently from the other text.
I am going to place this code, inside my Div. This means that I will place it Above the span where I have this END Core CUSTOM CONTENT
I place the following into my Div:
I could have.
But instead I am going to create a separate Style block to style and place my text div. I am going to place my style blocks, which go with stuff I put into my core div, in my music section. They could go almost anywhere.
7: Import Content from Default Page
IF you did not include the code lines, to hide the content you want to import, this content should currently be BELOW your core div (with the exception of the music player).
Position the Status Box (What was once the Extended Network Box).
I need to insure I do not have the Status Box rendered {display:none}.
If you have the above line, in your hide code, remove it.
Notice the result, is to place the Status Box at the BOTTOM, underneath your Core.
Notice that the bottom links moved down to accomodate the Box.
Position and Size the Status Box.
I am going to place the Status Box in the Top Left of my Core.
I have drawn a box there for it.
I want to position the box here:
top:20px; left:20px;
I also want to alter the size/shape of the box, to fit in this space.
width:220px; height:150px;
I want to set the font and line-height to fixed px values, so that the text sizes the same across different platforms. (The myspace style sheet uses pt font sizes which have larger px size variation across platforms than px font sizes. Because all my positioning is based on px distance, I want to use this for my font and line-height sizing).
I end up with this block of code:
I am going to place this block at the end of the "About Me" section, just under the style blocks already in that section.
Importing the Friend Space(friendSpace)
IF you included the line of code, to hide the friendSpace, remove the line of code.
Now your friendSpace should be visible at the bottom of your profile.
If you have left a space, on your Core, large enough to accomodate the Friend Space, and any expected resizing due to your friends changing their pictures, you can now just move the Friend Space to the desired location.
I am going to move my friend Space to box on the bottom right of my core image.
I still have my grid in place, so it is easy to get the needed measurement:
top:570px; left:30px
If you want to adjust the size of the friendSpace, see this article:
Sizeing and Styling the MySpace Friend Space
Importing the Comments (friendsComments) into the Div Overlay
Insure you do not have the following code line, if you do remove it:
Your comments will show up center bottom.
I Highly Recommend leaving the Comments There unless you want to hide your friends.
You can NOT put your comments in a scroll box, or do very much to control their length, UNLESS you either hide your friends or put your friends in the same scroll box.
If you just leave them at the bottom, they will push the bottom links down as they grow. You have the full width of the page to expand them, to accomodate those large images people tend to leave as comments.
However, if you do want to put the Friends Comments in a scroll box see this article:
MySpace Friends Comments In Scroll Box, Place anywhere on Page
Importing the Blogs
If you included the following line of code, Remove it:
The blogs should show up at the bottom of your core Image (but above your comments and/or friends if they are still in this space).
You can not put the blogs in a scroll box UNLESS you do one of the following:
- Include the status in the same scroll box
- Hide the Status
- Re-Create the Blog Data (this is actually rather easy)
To locate the blog, to another location on the page, do the following:
8:Clean Up
Remove the blue lines from around our link images. Place this style block at the bottom of the style section (you can really put it anywhere except inside another style block).
Remove it.
Are there any other sections people are interested in showing?
This div overlay strategy does NOT hide the bottom links, it pushes them down based on the size of you div overlay. MySpace has deleted profiles, for not showing the bottom links.
TO REMOVE THE PINK/magenta BORDER, set the px width of the myCoreDiv class to 0. It is good to make the last step. Having the border helps with troubleshooting
If you are creating the div for the artist band page, go here instead:
mySpace Simple Div Overlay Band Page
Modified 22 July due to myspace code changes
This is the div overlay we will be building in this tutorial:
Click Here To See the Page
(assuming myspace is actually up, more and more one just gets that expected error message).
This Process Consists of the following steps:
1) Create a Div, Image or Flash File which will make up the "Core" of your profile. This image (or flash file) can have any desired links drawn onto it. It can also contain blank areas to use for any of the following:
- The placement of images which are not drawn onto your core image
- The placement of text boxes
- The placement of videos or other objects
- the placement of Content we import in from the default page, such as blogs, friends, comments, music player, calendar.
- etc ...
This is an ideal strategy if you want to hide everything on your profile and replace it with a single image or flash file.
2) Hide Everything between the top menu area and the bottom links. (This block can be used, to hide the whole myspace page, without using the rest of this tutorial.)
You can choose to keep some content. That content is clearly commented in the code.
You can choose to NOT use all of the lines of code.
3) Create a Div which sits just under the top main menu and just above the bottom Links. We will do this in a way that allows the div to automatically center itself, and the bottom links to move down as much as needed.
4) Place Your Core Image (or Images).
5) Create Links. In this tutorial I do this by placing clear gif images over the locations, on your core image, the links belong.
Later I will cover some other methods of creating links.
6) Place Content from Default Page.
7) Create and Place Additional Content if desired.
STEP 1: Create the Core of your Content
By this I mean a main image, or flash, which you will use as the building block for your profile.
I am not going to show you how to do this. I did mine in PaintShop.
You can use any paint type program, or several online programs, to do this work.
I might provide some links to some later.
For this example we will use this "core" image:
Click Here to See the Image
(I was in the mood to draw circles. It is a good thing I majored in Computer Science instead of Art :-).
STEP 2: Hide Default Page Content
I am choosing to keep my ad banner, search, shortcuts, top menu, and bottom Links.
Place this code in the About Me.
<a class="i" href="views-under-construction.blogspot.com">
MySpace Code and Tutorials by Eileen
Hide Content for Div Overlay
<style>
.i, div.clearfix i i.i {display:none;}
table table table,
table table td.text table.blurbs {display:none}
table table td.text table {display:block;}
{! blogs; remove below line to show blogs !}
table table td.text table.latestBlogEntry {display:none}
{! friends; remove below line to show friends !}
table table td.text table.friendSpace {display:none}
{! Comments; remove below line to show comments !}
table table td.text table.friendsComments {display:none}
{! status message; remove below line to show status !}
table table td.text table.extendedNetwork {display:none}
{! remove borders from link images !}
a img {border:none !important}
{! clear space to left !}
table td img {display:none}
{! recover div img !}
table td div img {display:block}
{! get rid of more excess space !}
table td {height:auto !important;}
table table br {display:none}
table div.myCoreDiv table br {display:block;}
</style>
End Hide Code For Div Overlay </a>
If you want to hide any of the content in the top search/menu area see this article:Style or Remove content in Top Search/Menu area
Step 3: Create a Core Div to put our our Content in, Between the top Menu and the Bottom Links
Place this block in the interests section.
I am going to use the "General" interests Section.
I next paste the below code block into the General Interests Section:
<i class=i>
Hide stuff to prepare for Div Overlay
<a href="http://xiii.us/ms/div-overlay">myspace div overlay code tutorial by Eileen</a>
</i>
<i class=i>!-Begin Block to set Table Level and Open custom Div-!</i>
<i class=i>Close ALL open tables so that our div is not effected by the stuff we have removed </i>
</td></tr></table>
</td></tr></table>
</td></tr></table>
<i class=i>!!Create and size our div.!! </i>
<div class="myCoreDiv" style="width:900px; height:auto !important; border:1px violet solid; position:relative; top:0px; overflow:hidden; z-index:0;">
<i class=i>!!-----START Core Custom CONTENT------!! </i>
<i class="i">!!-------END Core CUSTOM CONTENT--------!!</i>
<i class="i">!!Open same number of tables we closed.!!
</i>
<table class="myTclass0"><tr><td class="hideIfInInterests">
<table class="i"><tr><td>
<table><tr><td>
<i class="off">!-END Custom Block to Set Table Level and Create Custom Div-!</i>
Set the width to the Width of your own core image. I used 900px.
Step 4: Place Core Image.
Just below where it says "<span class="off">!---START Core CUSTOM CONTENT -----------!</span>"
Insert your image, i.e.
<img src="http://i178.photobucket.com/albums/w275/madeline_fogg/core2_cbg.gif">
Replace my image URL with your own Image URL.If you have multiple images, list them one after the other. (Assuming they are clean horizontal image slices).
[Do NOT Slice your image unless it is too large for the site which hosts your image.]
Insure that the width of your image is the same as the width defined for the div. I have it set to 900px. If that is not the width of your image, you will need to change the width value.
Step 5: Create Links
The assumption here, is that the links have been drawn onto your core image. I will show how to place other types of links later in this article.
Get Measurements. Since we are measuring from the top left corner of our Main Div (and of our core image) The easiest way to get measurements may be to place a grid over the top of our image.
I have created a grid for this purpose.
I place the following code below the code I placed above (just below the core image).
This code is temporary and we will remove this code when we are finished.
<span class="off">!!!TEMPORARY To Place Grid!!!</span>
<div class="grid" style="width:900px; height:800px; overflow:hidden; position:absolute; top:0px; left:0px; z-index:0; ">
<img src="http://i11.tinypic.com/4pczehk.gif"></div>
The black lines are drawn every 50px and the pink lines every 10px.My first link is the area with the text "Be My Friend"
I get this:
top:210px; left:120px
I get a size of
width:60px; height:50px
I will create my link by placing a clear gif over this area, and turning the gif into a link. I will use the same clear gif which mySpace uses in their default code.
I get the following:
<a href="http://collect.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=6221"
style="position:absolute; top:210px; left:120px;">
<img src="http://x.myspace.com/images/clear.gif"
style="width:60px; height:40px; "></a>
I put in Tom's Friend ID (6221), You will want to use your Friend ID.I place the code block, inside my core content area, just under the last block I placed here.
[There will be a blue border, red on hover, over the link area. When we are done we will remove these. For now they are good for seeing exactly where our link is.]
I use the same technique to place the rest of my links.
Step 6: Place Custom Content onto Page.
I am going to place an image.
I want my profile Image on my page, but understand that importing it, is not as easy as just adding code to place the image.
I want to place the image top:30; left:270px. Remember, the measurements are from the top left corner of our core div (and our core image).
I use this code to place the image:
<img style="position:absolute; top:25px; left:270px" src="http://a542.ac-images.myspacecdn.com/images01/100/m_d1f8240914a1aed367f3d960ba407195.gif">
Because the above needs to be INSIDE my div, I place this block inside my Core Div, just under the last item I added.
It needs to go above where it says END Core CUSTOM CONTENT
You can use the same technique to place other types of content.
I notice I didn't include a link for "View All Comments" when I created my core image.
I can easily add the link, providing the needed text with the link.
I pick the following location for my link: top:400px left:640px
For this example I am going to use both a content block and a style block.
My content block goes in my Content section (within my Core Div)
I use the following code:
<a class="myViewCommentLink" href="http://comment.myspace.com/index.cfm?fuseaction=user.viewComments&friendID=6221">
View<br>Comments</a>
(note: use your own friend id instead of Tom's).I put a <br> between the two words in my link, to force a carriage return between the two words.
Notice I assigned a class. I am going to use the class, to create a style block.
Before we create the style block, notice where the link ended up.
It should have ended up just under your core image.
It should have taken on the default style attributes for a link (blue and underlined).
We will use a style block to change the color, font-size, font-family, and location of the link.
I am going to put my style blocks, which go with content I have placed in my core, in my music section.
<style>
a.myViewCommentLink {color:black; font-size:16px;
font-family:comic sans ms;
position:absolute; top:400px; left:650px;}
</style>
I did a pretty good job of matching the font style I used for the links I painted directly onto my core image. Creating An "About" Section
Really this is just going to be a place to write some stuff you want to show up on your Div Overlay.
The easiest way is to just create a div, inside your Core Div, to hold this content.
IF the content is static in size (Not just over time, but across the different browsers and resolutions you expect your page to be viewed in) then you can use absolute positioning, to place the content onto an area on your Core Image.
However, if the content does not size statically, across platforms, this can be an issue. A scroll box can solve this problem.
Or, you can insure you allow enough space, to account for this.
If you want the content to be more dynamic in size; You can instead place the content so that it just falls onto your div, and your div grows as the content expands. This does NOT work with absolute placement.
I will do one of each here.
First I will create a Div, put Text in the Div, and then absolutely position the div in one of the Circles on my Core Image.
[Note: Avoid use of the <p> tag, if you want your content to size consistently across platforms. I have found that <p>, <br> and pt font sizing are the biggest contributors to sizing inconsistency.]
I did use some <span> tags in my text content, so I could format some of the text differently from the other text.
I am going to place this code, inside my Div. This means that I will place it Above the span where I have this END Core CUSTOM CONTENT
I place the following into my Div:
<div class="myText1">
<span class="myTextH">About Red Friend</span>
<br>
(aka Elmo)<br>
<br>
I am one of millions of Elmo Plush Clones.
I am not the Epileptic laughing Version, nor am I the singing Version.
I am just the Plush simple Version.
My Job is to be Cute, so that little kids will ask their parents to buy me.
I am very good at my Job.
</div>
Notice I did not include an inline style tag, in my Div Tag.I could have.
But instead I am going to create a separate Style block to style and place my text div. I am going to place my style blocks, which go with stuff I put into my core div, in my music section. They could go almost anywhere.
<style>
div.myText1 {color:darkred; line-height:25px;
font-size:16px; font-family:comic sans ms;
position:absolute; top:250px; left:300px;
width:270px; height:270px;
}
div.myText1 br {line-height:10px;}
div.myText1 span.myTextH {color:red; font-weight:bold; font-size:20px;}
</style>
7: Import Content from Default Page
IF you did not include the code lines, to hide the content you want to import, this content should currently be BELOW your core div (with the exception of the music player).
Position the Status Box (What was once the Extended Network Box).
I need to insure I do not have the Status Box rendered {display:none}.
table.extendedNetwork {display:none;}If you have the above line, in your hide code, remove it.
Notice the result, is to place the Status Box at the BOTTOM, underneath your Core.
Notice that the bottom links moved down to accomodate the Box.
Position and Size the Status Box.
I am going to place the Status Box in the Top Left of my Core.
I have drawn a box there for it.
I want to position the box here:
top:20px; left:20px;
I also want to alter the size/shape of the box, to fit in this space.
width:220px; height:150px;
I want to set the font and line-height to fixed px values, so that the text sizes the same across different platforms. (The myspace style sheet uses pt font sizes which have larger px size variation across platforms than px font sizes. Because all my positioning is based on px distance, I want to use this for my font and line-height sizing).
I end up with this block of code:
<style>
{! size and position Status box !}
table.extendedNetwork {position:absolute;
top:20px; left:20px; width:220px; height:150px;}
table.extendedNetwork, table.extendedNetwork td {border:0px !important;}
table.extendedNetwork span.blacktext12 span {color:darkred; font-size:15px !important; line-height:20px !important;}
</style>This is a complete style block. I am going to place this block at the end of the "About Me" section, just under the style blocks already in that section.
Importing the Friend Space(friendSpace)
IF you included the line of code, to hide the friendSpace, remove the line of code.
table.friendSpace {display:none;}Now your friendSpace should be visible at the bottom of your profile.
If you have left a space, on your Core, large enough to accomodate the Friend Space, and any expected resizing due to your friends changing their pictures, you can now just move the Friend Space to the desired location.
I am going to move my friend Space to box on the bottom right of my core image.
I still have my grid in place, so it is easy to get the needed measurement:
top:570px; left:30px
<style>
{! position friendSpace !}
table.friendSpace {position:absolute; top:570px; left:30px;}
</style>
I notice my friendSpace is over the edge of my space, slightly, so I want to re-size it to fit better.If you want to adjust the size of the friendSpace, see this article:
Sizeing and Styling the MySpace Friend Space
Importing the Comments (friendsComments) into the Div Overlay
Insure you do not have the following code line, if you do remove it:
table.friendsComments {display:none;}Your comments will show up center bottom.
I Highly Recommend leaving the Comments There unless you want to hide your friends.
You can NOT put your comments in a scroll box, or do very much to control their length, UNLESS you either hide your friends or put your friends in the same scroll box.
If you just leave them at the bottom, they will push the bottom links down as they grow. You have the full width of the page to expand them, to accomodate those large images people tend to leave as comments.
However, if you do want to put the Friends Comments in a scroll box see this article:
MySpace Friends Comments In Scroll Box, Place anywhere on Page
Importing the Blogs
If you included the following line of code, Remove it:
table.latestBlogEntry {display:none;}The blogs should show up at the bottom of your core Image (but above your comments and/or friends if they are still in this space).
You can not put the blogs in a scroll box UNLESS you do one of the following:
- Include the status in the same scroll box
- Hide the Status
- Re-Create the Blog Data (this is actually rather easy)
To locate the blog, to another location on the page, do the following:
<style>
{! position blog !}
table.latestBlogEntry {position:absolute; top:20px; left:470px;}
</style>
8:Clean Up
Remove the blue lines from around our link images. Place this style block at the bottom of the style section (you can really put it anywhere except inside another style block).
<style>
{! remove borders from link images !}
a img {border:none !important}
</style>
Remove the Grid. Find the following block of code, it should be just under the line where you added in your core image:<span class="off">!!!TEMPORARY To Place Grid!!!</span>
<div class="grid" style="width:900px; height:800px; overflow:hidden; position:absolute; top:0px; left:0px;">
<img src="http://i11.tinypic.com/4pczehk.gif"></div>Remove it.
Are there any other sections people are interested in showing?
Thank you for Visiting; Have a Nice Day :-)
Queries hitting my other articles which should hit this article:
-How do I Hide whole myspace page. Where can I get codes to hide myspace page. I want to put my friends div layout and Hide Everything (no Generator). how to Put an image as a div overlay. How do I do a simple div overlay. How do I make a div custom or make a div simple myspace. MySpace Div Tutorial. How do I install div overlays to myspace page.
I need code to hide entire profile on myspace for a div overlay. Hide what is behind a div overlay
This section shows how to hide everything on myspace
div over la y how to do one ?
div overlay myspace comments display on.
div overlay does not hide bottom links
Queries hitting my other articles which should hit this article:
-How do I Hide whole myspace page. Where can I get codes to hide myspace page. I want to put my friends div layout and Hide Everything (no Generator). how to Put an image as a div overlay. How do I do a simple div overlay. How do I make a div custom or make a div simple myspace. MySpace Div Tutorial. How do I install div overlays to myspace page.
I need code to hide entire profile on myspace for a div overlay. Hide what is behind a div overlay
This section shows how to hide everything on myspace
div over la y how to do one ?
MySpace Div Tutorial
div overlay myspace comments display on.
div overlay does not hide bottom links
Labels: mySpace Div Overlay
192 Comments:
Eileen, I'm going crazy trying to get my div to work on IE...it's fine in FF...could you take a look? My "test" site is:
http://www.myspace.com/debitch2u
Thanks so much...
Hi deb,
The problem is the use of position:absolute with negative values.
Try to avoid this. Because this is not clearly defined in the standards, each browser treats it differently.
The behavior is also very dependent on how the parent container is positioned.
Use this:
table.blurbs {display:none}
I know why you thought you needed to take that line out, but trust me, leave it in.
Take the code block I have in step 3 and put it in your about me section.
Notice where it says:
top banner, or anything else outside of your core content space can go here
Put the code for your top banner here.
Open the div, but do NOT close it yet.
Put in your image, it can either be a foreground or background image. You do not have to make it a background image.
Now put in the code for each of your links
(we are working inside the top banner div, we have not closed it yet).
Put in code for any other content you want to place on top of the top banner.
Close the banner div.
You can put your style block anywhere.
I usually put it in another section, just to keep stuff organized.
In your style block you want to
- Position your banner div, just like you did. Measure from top center
- Create the space above the body, using a margin just like you now have.
- Position each of your links, using absolute, and measuring from the top left of your banner div.
AVOID NEGATIVES (except for the negative margin, used when measuring from center to place banner div).
For the inner divs, you don't need margins, because they can be measured from top left, since we are working inside a parent container, with a known width.
(negatives are ok for the type of background positioning you were doing to do the visual effect on your links).
OR
Just treat the banner, like a central Core image, instead of a top banner, and put it under the ad banner.
I think that moving your ad banner that far down is risky. The myspace ad banner police may take one quick look, and zap your page into history. (They seem to like to do that).
But it is your risk, and your choice.
Hi, I've been reading through all of your blogs for a while now, gearing up to make my own overlay. I've run into a slight snag on this particular page.. I've gotten up to placing my Content Div into my page, but everytime I place my div in (I included a z-index:2; attribute too) it just never shows up. I've attributed my Div styles and absolutely positioned it, also I haven't used negative numbers when it comes to placement. I'd appreciate if you had a quick look, tell me what I'm doing wrong; www.myspace.com/shockingninjapro is my test page.
I've left enough space at the top for me to (hopefully) pull the banner back in and resize it slightly.
Thanks for any advice you can give.
Sherlock,
I introduced a z-index bug to my own code at some point. I apologize.
You need to change this:
div.myCoreDiv {z-index:7}
to this:
div.myCoreDiv {z-index:0}
You can not resize the ad banner.
You have to keep it the default size.
May I make a recommendation:
- Start your core image at the point where you have your custom banner (slice the top off of it, so that the green banner part is the top of this image).
- Remove the code to hide the ad banner (that whole chunk).
Your core image will then naturally fall just under the ad banner.
Your background will end up behind the ad banner, and it will all blend together nicely.
The .mydiv you have, with z-index:2, doesn't seem to map to any actual content.
When you do get some content, the z-index:2 should work, IF you do what I indicate above, and change the z-index:7 to z-index:0.
Thanks very much, the source of the problem was actually the block of code that hid the bottom links and the top banner. I just removed that code now everything shows correctly.
Thanks again =)
Hi, i made myself a new profile and it all works. all i want now is one of those online now icons but i cant get one to work can you tell me how?
my profile is www.myspace.com/sammy_2991
I also want to put in a music player and i cant get one can you tell how to do that also
Sam,
I think that I have the only working code for an online now icon.
However, I think myspace is about to make a change to this functionality, so I am not sure I recommend installing my code.
You can try this:
Online Now Icon code
These work this morning, but read the notes I have on the page related to myspace code changes.
Are you looking for a custom music player, or do you want to get the default one?
To get the default music player hit music (on the top menu) and start searching for an artist you like.
When you find what you want hit the "add to profile" button.
If you want a custom player, I don't know much about these.
May I recommend you try this forum:
mygen myspace music forum
Thanks very much for that.. the online now icon didn't work but thats fine. i really liked the instructions for the div overlay it made it really simple. i have only had the new profile on for a day and have had heaps of comments on it. thanks :)
Sam,
I will look at your online now icon if you want me to.
But I suspect myspace is about to break it anyway, so maybe it is not worth the effort to get working.
yer dont worry about it thanks anyway. is there any way i can move the default music player
Yes Sam You can.
<style>
{!-Move Player, measure from top left of a parent div-!}
table table div embed, table table div object{position:absolute; top:100px; left:200px}
{!-reverse effect on myspace vplayer}
table table td.text div embed, table table td.text div object{position:static}
{!-reverse effect on other objects you may have -!}
div.customObjectDivClassName {position:static !important}
</style>
OR if you want to move, measuring relative to the current location, replace position:absolute with position:relative.
Change the px values to the positioning you want.
Hi there,
I just followed your tutorial and it was really great! Just what I needed.
BUT i am having a slight problem at the moment - basically, the invisible buttons I added over the top just don't work.
They are links and everything, but this damn msplinks thing keeps on stopping them from working.
My page is: http://www.myspace.com/lookhappy
please help!!!
Joe,
Take this out:
table div div {visibility:hidden;}
It hides your ad banner (only half the time, but that is enough to get your page deleted).
If you want code to properly hide the bottom links, without hiding the ad banner go here:
hide bottom links and copyright
As far as your other links go,
Your message link leads to the add function.
Your add may have been poorly constructed before the myspace splink process did their thing to it.
MySpace will change your links to splinks.
But usually they still work.
Some sites do not work.
Sometimes the splinks end up corrupt.
Usually there is nothing we can do to fix them.
Hi again,
Thank you so much for the help! I've fixed the code to hide the bottom links and not the top banner, thanks so much for that.
The splinks are still giving me grief though - I have an account for my band that I'm trying to test the links with, but it just throws up page faults.
These are the links I'm using, which work fine when pasted into the browser directly:
http://comments.myspace.com/index.cfm?fuseaction=user.viewProfile_commentForm&friendID=157997844
http://mail.myspace.com/index.cfm?fuseaction=MAIL.MESSAGE&friendID=157997844
http://comments.myspace.com/index.cfm?fuseaction=user.viewProfile_commentForm&friendID=157997844
Could it be an error in IE rather than the splinks? I test the page in firefox and IE.
Thanks so much for looking at my code and helping me! I really appreciate it! :)
Joe
Joe,
I doubt it is IE
I just tested these links
message
add
comment
They all worked.
I could not leave a comment (not being on the friend list).
I did leave a message.
I also executed the add.
I did this in IE
I am working hard on my code for a new myspace band page and have run into a little problem. I would like my shows to actually be on a transparent background so that you can see the background behind the text instead of a blue box as is showing up right now. I am not sure where the blue box is coming from but definitely don't want it. Could you help?
http://www.myspace.com/brooketestsite
brooke,
table table td.text div table, table table div table td {background-color:transparent !important}
Put it between style tags
For more on styling the shows see this
Style Band Page Shows
Your method of getting rid of the shortcuts drop down box does not seem to work.
I've been following this tutorial but when I got to the point where I was ready to start importing content things have not been going so well... PLEASE HELP!!!! I have already created my background image and all my buttons. Here is what I'm now trying to do:
1. create a single scrolling div layer that sits on top of all the other graphics that I can place wherever I would like.
2. I would like for the content WITHIN the scroll layer to be centered.
3. I want this single scrolling div to house all my page content. i.e. custom text, pics, flash files etc. basically, whatever custom content I desire to place on the page in the future along with my friends list and comments.
4. I want to import my friends list, a custom comment box and my comments into this scrolling div layer
5. I want the background of the imported content (comments, friend table, etc) to be transparant so my background is still visible behind the custom and imported content.
PLEASE HELP!!! YOUR ASSISTANCE IS TREMENDOUSLY APPRECIATED!! =)
anonymous,
it works for me.
If you provide a link to your page, I can probably figure out why it is not working for you.
Jesse,
First go here:
Put Friends and Comments in Scroll box
Once there,
Paste the first block of code (the one for putting both friends and comments in a scroll box)
in your "to Meet" section.
In that block of code where it has this:
<div class="myDClassFC">
Put your custom content just AFTER this.
Any custom content you put here, will be in the SAME div as your friends and comments.
Make sure you apply the needed code to unhide your friends and comments (shown in this article).
Now, your custom content, and your friends, and your comments are all inside div.myDClassFC
Any content you place inside this div, can be positioned measuring from the top right corner of this div.
Additionally you can place this div (div.myDclassFC) measuring from the top left of div.myCoreDiv
Hello Eileen. I have been working on my div for a while now and am pretty much finished. I just have 2 things wrong. I have a think pink line around a few tables on my myspace and I cannot seem to change the background color to match my images. If you could help me that would be great! Thanks so much!
http://myspace.com/POGOFORUM
Nevermind, I have solved my own problem. Thanks for posting all of that info it is awesome. I have told many about it. Keep up the great work! (;
Thanks Pogo,
Personally I think pink lines are cool, but they are not for everyone.
I am glad you solved your problem.
Eileen,
I think I have a problem with my band's myspace page - we have a simple layout, but I think there's a bit of code that might be hiding the advert at the top sometimes.
The page www.myspace.com/athousandsunsmusic
If you could help that would be amazing! because we really don't want to lose the account.
Thank you!!!
Joe
Joe,
I looked at your page, and at your code.
I did not see any code, in your profile, that would hide the ad banner.
I did discover that the ad banner is not generating (I turned off style, and still did not see the ad banner, so it was not being hidden by style commands).
I also tested on a page with NO customizing at all, and saw the same symptom, no ad banner.
Hey Eileen,
I want to put a youtube video on my myspace with the overlay image I made, however I would like to get the video to appear on top of the image under where it says monthly video, just like the myspace player will do if you add music to your profile.
I have the video up on myspace, I just want to reposition it so it appears over the image under monthly video. If it's possible. Please help!
http://www.myspace.com/awakeoutreach
Michael
Michael
Wrap your video in a div, assign a class.
<div class="myVideo">
Your object Code here
</div>
You already have the object code in the correct location, just put the div tags around it.
Add this style block:
<style>
div.myVideo {position:absolute; top:214px; left:270px;}
div.myVideo object {display:block}
</style>
Change the values if the location is not correct.
Remember the placement is relative to the core div, NOT to the page body or the visual page window.
Thank you so much the video is exactly where I want it to be now.
Now I have a question about the friend space and comments. I removed the display none code but the friends and comments still don't show up. Is there anything I can do for this.
Thank you,
Michael
Michael
Find this line:
<table class="myTclass0"><tr><td class="off">
it is where the tables are open after all of the custom content is inserted into the div.
Remove the class="off"
That works if you put this block in the Interests section, but in the meet section you don't want that set to off.
Now if you want the comments and friends INSIDE of your div (so they push the bottom links down) REMOVE the last close div that you have.
We do not want to close the core div.
We don't have access to the code point we would need to close this, so we have to let it close automatically when its containing parent closes.
Thank you again,
The friend space and comments are on there now, but there's just one problem their default pictures aren't showing up on our profile. Is there a fix for this?
Thanks,
Michael
Michael
Add this to your style block:
table.friendsComments td img, table.friendSpace td img {display:block !important;}
Thank you worked perfectly.
Michael
Hi Eileen. Your tutorials are second to none, thanks so much for the help.
I just have a few quick questions regarding my design at:
http://www.myspace.com/electricalfever
Firstly, I have a pictrobrowser object that refuses to size properly. It's in a div over the top of the 'Photos' square, and currently hidden by 'span off' tags. Any idea how I can make it so that it fills that space properly? currently it reaches the right height but only about a third of the width.
Secondly, I was hoping to move my calender into the 'dates' area for maximum user interaction but had no luck with that. The calender would only remain at the bottom, centrally aligned above the friends table, and then I had no idea how to hide it, so I had to remove the dates completely, ergo, hiding the table. Any ideas? It would preferably be transparent, completely white text and in a scroll box.
Finally, I have some issues with cross-broswer compatability. Currently, everything works fine on any browser. BUT, there are vague differences between the text spacing that is plain irritating really. For instance, using a paragrpah tag renders all my text after that point black, meaning I have to manually label each section as white. If I could use br brackets, it would be fine but firefox doesn't respond to them the same way. Is there any pargraph or br type tag I can use to talk to all browsers in the same way or is it just a pipe dream?
Thanks again, I await your reply.
Very nice tutorial, thanks for posting it. It looks really helpful, I'm going to attempt a DIV overlay layout very soon, and this will definitely be of assistance.
Thanks :)
geofferino
First add this to your object
class="myObject"
like this:
<object class="myObject" type ...
Next add the needed style block
<style>
div div object.myObject {
height:500px !important;
width:500px !important;}
</style>
You should be able to move your calendar there as long as you are not planning on putting your comments into a scroll box or use any sort of overflow control.
But you can not put the calendar in a scroll box unless you hide your friends and comments.
Consistent sizing across platforms is difficult (if even possible)
However, you can improve it.
Do NOT use the P tag, it will only make the problem worse.
I do the following:
Insure all font sizes are in px (pt and other units have more sizing differences across platforms, relative to the other stuff on the page).
hard set line-height values for everything, including the carriage return.
The carriage return does NOT size the same cross platform.
Trying to fit text, into a pre-sized box, usually means cross platform issues, unless you allow some extra space.
Hi Eileen, Thanks for you great tutorial. I'm now wrestling with getting the friendsspace and comments in the core div. Is this do-able?
http://myspace.com/techsoldier
I've been puzzling over this for about 4 hours now.. I've gotten halfway through a layout (I've just finished making a few links), my problem seems to be that CSS PopUps don't want to work. Is there anything in your code which you foresee would create a problem with CSS PopUps?
In either case, is there a method (preferably easy =P) in which you would recommend placing a PopUp onto a Div overlay?
I've left the code on my test site hopefully you can offer some insight for me =)
TIA
Hi there. I posted a while ago about a problem I was having. It's still no closer to being solved. If you look at my page, you'll see the pictobrwoser object in the Photos secion I have placed there is the wrong size and I can't seem to fix it and your previous advice didn't work. Any help would be much appreciated.
Jay
What exactly do you mean by "pop up".
Because I don't believe you can do what I understand the term "pop up" to mean; with the code that myspace allows.
I thought a "pop up" meant a new window pops up.
OR,
Do you mean that something will appear on your screen (in the existing window), when you hover over something, that was not there before?
This can be done.
If this is what you want, I can try to write up how to do it tomorrow.
I did something like this on my nephews page, for his friend space.
here:
Newphew's Page
Look at the friend space, and tell me if that is what you are talking about.
The large center image, changes, as the mouse hovers over each friend.
Yes, that's exactly what I'm looking for. Sorry I didn't use the correct terminology! haha, I really appreciate all your time =)
Hope you had a good Thanksgiving.
Hey there Eileen,
Can i just say what a wonderful resource your tutorial has been to me. But im afraid i'm having 2 sticky issues i am sincerly hoping you can help with!
My current site is www.myspace.com/murphymantest
My first problem is I'm currently struggling with changing the remainder of the background orange.
And my second issue is making my friends and subsequent comments visible below my main Div.
Any help would be so very greatly be appreciated.
You Thank you for all your good work thus far!
Mark
Any body have a clue on how to embed different forum topics into the actual myspace page,
see myspace.com/hiphop for an example.
ok I understand that there are standards to web browsers, but i'm having trouble getting the content to show up on my div for IE....
FF works fine but, IE kills my div.
I would like to know were im going wrong..
My code is sloppy because this is the first time im doing a div overlay
if anyone could help:
www.myspace.com/melquan
Jay
I think you were using the term the way it is often used, I just had never used that particular term for that before.
I have an article here:
(The date is bogus, they always are, so I can keep things in logical order)
Mouse over hover effects using CSS
brev
I have never done that, or explored the subject.
And I actually do not have time to do that right now.
(Sorry).
Hi Eileen,
I just wanted to thank you for your hard work. I have been looking for a way to edit the default settings of the friends list without completely making your own from scratch (as those do not update when your friends do), and you're the only person that had the coding to do it.
Your info helped me to make these pages, so thank you very much.
http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=4071724
and
http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=265115499
I'm more of a designer than a coder ;)
Im also one of those people having major frustration over the splink conversion that myspace does, and cant seem to get the "add me" link to convert correctly.
I'll figure it out though, this was just to thank you for having this site, and to show you what I was able to do with your genious coding. =)
Thanks,
There is always the shortcut "add to friends" link.
No one hates splinks more than I do (except the spammers they were put in to help combat, but they were also the first to find ways around them).
Hello.
I'm VERY new to overlays so I used the bbz website to get the codes.
but here's the problem.
I want to make a overlay table that does NOT hide anything on my MySpace Profile. I simply want to place the overlay above my profile (and the banner), while useing a seprate code to move my profile (itself) and the Ad down.
I know overlays cover up myspace images and links. I just don't want to hide them.
How do I place an overlay that does NOT hide anything? And still be able to place wherever I like?
Here's 2 test profiles I'm useing:
www.myspace.com/sespider
www.myspace.com/spider360
Thank You
-Richard
SEspider
You do this by creating a margin at the top of the body, and placing your overlay within that margin, using absolute positioning.
Place Banner at Top of Page
The above is for a top banner.
But it can be used for any content.
Just put the content you want into the div.
Thanks Eileen,
Never got a responce back so fast before.
I know nothing as for codeing. I usually just find the part of the code I want, remove and resuse it.
For my overlays (as in the samples I posted in my last message) I use Photoshop's Save For Web option and it slices the image into parts (some containing links, others not).
Will your method work like that? I ask, because I ned to paste all of the links to the imagessomewhere within the code so they'll fit and line up.
Sorry for the quick responce last time. Don't worry, I don't expect a fast responce this time. ^_^
Forgot to mention that I already know the code for moving the Profile down.
So assume I want to place the overlay ANYWHERE.
Thanks again.
SEspider
I just happened to be online when the message came, I rarely answer that fast.
If you know how to move it down, it is just a matter of placing your div, using absolute placement.
Place it the same way you would place a banner.
All your div content can be in the div.
lol. I figured as much. ^_-
As I said before, I don't know coding. And the code that the bbz site gives out actually hides all content. Something I don't want to do.
I did try the codes you pointed out and....well it's not working either. Is there a certain place I need to put the code? Or am I just missing something?
BTW, I found a sprofile that's similar to what I'm trying to do. Snatching the source code doesn't help. Nor does contacting the member (messages are blocked).
http://www.myspace.com/lilwayne
I have no clue how to make a table, nor, "Core" at all. Just think of me as a little baby trying to change his own diper with a computer mouse.
What happened to the "Safe Mode" of MySpace? I can't find it anywhere.
I appologize for being such a pain. I've posted in a TON of Forums/Threads and no one has even bothered to help, let alone say "Hi." No one that is, but yourself. So I Thank You from the bottom of my heart for the help.
Once this is over with, feel free to message me on MySpace if you need some artwork done. I'm MUCH better in that field then HTML. lol
PS: I've sent you a message via your MySpace profile here:
http://www.myspace.com/views_under_construction
It contains the Overlay code I'm using. I'm hoping it'll clear up the problems I'm having.
Hi Eileen!
THANK YOU SO MUCH for your wonderful tutorial!
I seem to be having problems with the pink lines as well, and some of the myspace junk at the top and bottom won't go away. Did I do something wrong?
Also, how do I change the background color to match my core image's?
Thanks!
myspace: http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=88156192&MyToken=2f77201d-11b8-48d1-8a09-51feb77baeac
-ari
body, div {background-color:hotpink !important}
change hotpink to the color of your choice.
put the line of code in a style block.
Hey, I have my div overlay ready but please I will like to know... HOW DO YOU ADD/KEEP THE BOTTOM LINKS FAQ, HELP, COPYRIGHT ETC.
If you use this tutorial your bottom links/copyright should not be hidden, it should stay at the bottom.bwrkah
Wow, Eileen, where do you find the time? Impressive! I hope maybe you have some left for me.
I have a marquee banner above the ad on my home page (http://www.myspace.com/fult_daddy). I want to move the ad banner up and over my marquee, but I can't seem to do this without hiding the ad. Multiple google searches have landed me here to where I've come to understand that I need to set a z-index for the ad and my banner div, but I don't know where to place these. I've tried several different methods to no avail. I really don't know what I'm doing, and sure could use some help. Thanks!
trucker tim
Put this in a style block:
div table div {position:relative; top:0px; z-index:9}