Help - Search - Members - Calendar
Full Version: Two Top Banners
Forums > Resource Center > Support Center > MySpace Support > Myspace Resolved Topics
NaShae
*sigh* I'm back again.

So you guys did great with helping me embed flash on top of a myspace site, but now my client wants TWO banners! ( I know totally demanding right?)

So here's my code...-->
CODE
<style>
body{ background-position:top center;margin-top: 628 ;}
div.topbanner {
top: 0;
left: 49%;
margin-left: -477px;
width: auto;
height: 628px;
position: absolute;
}
</style>

<div class="topbanner"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" height="625" width="962">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="all" />
<param name="movie" value="http://i950.photobucket.com/albums/ad341/bigmattlives/YG/YGtooBig.swf" />
<param name="wmode" value="transparent" />
<embed type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="all" src="http://i950.photobucket.com/albums/ad341/bigmattlives/YG/YGtooBig.swf" height="625" width="962" wmode="transparent" />
</object></div><br />


that's for the FIRST top banner.

this is the second, this is the one I need the right measurements for.
CODE
<style>
body{ background-position:top center;margin-top: 628 ;}
div.topbanner {
top: 0;
left: 49%;
margin-left: -437px;
width: auto;
height: 628px;
position: absolute;
}
</style>
<div class="topbanner"><embed src="http://i950.photobucket.com/albums/ad341/bigmattlives/YG/TootNBoot.swf" width="600" height="361" /></div><br />


Please help me =|
Mickey
Replace the topbanner class with a new one, like this:

CODE
<style>
body{ background-position:top center;margin-top: 628 ;}
div.topbanner2 {
top: 0;
left: 49%;
margin-left: -437px;
width: auto;
height: 628px;
position: absolute;
}
</style>
<div class="topbanner2"><embed src="http://i950.photobucket.com/albums/ad341/bigmattlives/YG/TootNBoot.swf" width="600" height="361" /></div><br />

That should allow you to position it somewhere else. Just adjust the margins accordingly. Also, it's best to use 50% as opposed to 49%.
NaShae
Is it just the "margin-top:XXX" to move it below?
Mickey
No, just adjust the top property like this:

CODE
<style>
body{ background-position:top center;margin-top: 628 ;}
div.topbanner2 {
top: 250px;
left: 49%;
margin-left: -437px;
width: auto;
height: 628px;
position: absolute;
}
</style>
<div class="topbanner2"><embed src="http://i950.photobucket.com/albums/ad341/bigmattlives/YG/TootNBoot.swf" width="600" height="361" /></div><br />
NaShae
Ok...the problem I'm getting is the 2nd banner is laying on top of the profile.
Mickey
Okay? Well how / where is it supposed to be?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.