Main

July 04, 2007

Layer Flash Under HTML

Flash and Positioning XHTML Div Layers

Is there a way to have a flash movie play below another layer like an html text heading or div tag?

Position Flash Below Html ElementsAnswer: Yes, this is actually fairly simple but is a several part process depending on how may different items you would like to position above the flash element.

1. First you must add the wmode parameter transparent to the flash object that is going to be embedded.

Like so...  <param name="wmode" value="transparent" />

(note:) If you are using the swfobject.js method to embed your flash files (recommended) you can add the transparent parameter by simply using the example below to append to your current setup:

<script type="text/javascript">
   var so = new SWFObject("movie.swf", "movie", "700", "300", "#ffffff");
   so.addParam("wmode", "transparent");
   so.write("flashcontent");
</script>

 

2. Now we need to wrap our flash movie in its own div tag and and apply some css so that we can set the position to be below the header text and description div.
(See example below for xhtml and css code.)

<div id="header">

<div id="flash">flash file goes here.</div>

</div> 


And the accompanying css for the above is:
(note the z-index and absolute position for #flash div)

#flash {
    width: 700px;
    height: 300px;
    position: absolute;
    z-index: 0;
}

#header {
    height: 300px;
    margin-bottom: 30px;
    text-align: left;
}

 

3. Ok, now lets go ahead and set up the html layers that will be displayed displayed above our flash content. In this case it will be an h1 header and a description that is in its own div that is above the flash media.

(Two items to be positioned over the flash movie)

The h1 css is: (note: feel free to style it however you want or use a different tag, the important thing is the z-index and absolute position.

h1 {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-left: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 24px;
    color: #666666;
    font-weight: bold;
    position: absolute;
    z-index: 1;
}

 
Now for the description css which is going to be in its own div tag containing text and will be positioned above the flash element as well: (note the z-index and the absolute position again)

.description {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    color: #FFFFFF;
    margin-left: 15px;
    margin-top: 35px;
    padding: 5px;
    font-weight: bold;
    line-height: 14px;
    position: absolute;
    z-index: 1;
}

4. Thats it, the finished code in the body of a web page will look like this:
(note: Code is placed in the header div which has no z-index or absolute position necessary)

<div id="header">

<div id="flash">flash file goes here.</div>

<h1>Heading Text</h1>
<div class="description">Your description text</div>

</div>

And the final accompanying CSS is:


h1 {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-left: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 24px;
    color: #666666;
    font-weight: bold;
    position: absolute;
    z-index: 1;
}

.description {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    color: #FFFFFF;
    margin-left: 15px;
    margin-top: 35px;
    padding: 5px;
    font-weight: bold;
    line-height: 14px;
    position: absolute;
    z-index: 1;
}

#flash {
    width: 700px;
    height: 300px;
    position: absolute;
    z-index: 0;
}

#header {
    height: 300px;
    margin-bottom: 30px;
    text-align: left;
}


HTML Layers and Flash Position Summary:

How to layer a Flash movie below another html div tag or layer.

To position a flash movie under another html element basically you just need to give the flash move a parameter of wmode transparent and position it absolutely with a z-index of 0. Do this by putting the flash object in its own div and using css. (see examples above)

For the items that you would like positioned above the flash movie set their z-index to 1 and position them absolutely as well. After that it's just a matter of putting it all in the div or container that you would like applying the css and adjusting the margin and padding to your specific needs.  

April 07, 2007

Maui Web Site Designer

What does a web designer do? 

Web designers build custom websites, templates and website databases. A website design web development designer works with website design and graphics software including Photoshop ™, FrontPage ™ and DreamWeaver.

A professional Maui Web Site Designer may also often work with web site development technologies including ASP, PHP, Perl, Mysql, Flash, Cascading Style Sheets (CSS), XHTML, DHTML, and XML. A Website Design developer may also build internet databases and ecommerce shopping cart solutions.

March 16, 2007

The State Of Maui Real Estate Web Design

When I Look Around at the Majority of Realty Web Site Designs on Maui, Hawaii I have to say that it looks pretty mundane out there. Seems like every where I go it's the attack of the out-dated Maui Real-Estate web design.

You know your web site needs to be updated when:

It looks like your stuck in the 70's.
Your page does not line up at its borders.
Your links don't seem to work anymore.
Everything is broken and it sends people into an endless maze.
Your graphics, page background, and logo looks like they have been stretched.
Your sites text looks like it could be in basketball game.
You want to place highly in search engine pages.
You want to portray an image that is professional.
You want to be more cutting edge and up to date with the market.
You notice other businesses have the same web template design.

Don't let this be you. Getting a professional web design here in Maui, Hawaii that is search engine friendly is not as difficult as it may seem. Let me tell you first hand as the chief designer for Aloha Tech that in todays market a unique professional website is absolutely essential.

Feel Free to contact me anytime at Maui Website Designs by Aloha Techsupport Hawaii

Please post any comments or ideas that you would like to add on the subject.