473,216 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,216 software developers and data experts.

CSS & Flash

ashkhn
1
hi there

well i dnt wanna waste anytime and so ima gonna come to da point.
well i have this stylesheet and instead of an image i wanna a flash object. i have tried pasting the code but it doesnt seem to work. i dont want in my html/xhtml but in my css. is there a way. if so please help.

heres my css

.......continued
/* CSS Document */


#search_inner .inputbox {
border: 0px;
padding: 3px 3px 3px 5px;
font-family: arial, helvetica, sans-serif;
font-size: 11px;
color: #990000;
}

#header_outer {
text-align: left;
border: 0px;
margin: 0px;
}

#header {
position: relative;
float: left;
padding: 0px;
margin-right: 2px;
width: 735px;
height: 150px;
background: url(../images/header_short.jpg) no-repeat;
}


#top_outer{
float: left;
width: 165px;
}
........continued....

i want a code that i can use to replace the background jpeg (in bold) with a flash

thank you in advance.

Ashif
Oct 19 '07 #1
2 1525
drhowarddrfine
7,435 Expert 4TB
This cannot be done with CSS. You must use the <object> element from html to insert a flash object. You can google for that.
Oct 19 '07 #2
JamieHowarth0
533 Expert 512MB
Absolutely true from drhowarddrfine - but I would say if it's just an animated image that doesn't actually do anything then use an animated GIF (which you can export directly from Flash) and set that as the background using CSS.

Any BLOBS (Binary Large OBjectS) cannot be set in the background using CSS. However, you could do a clever workaround...

Split your page into two <div>'s - one to contain the Flash object and one to contain your actual page content. Then use this CSS:

Expand|Select|Wrap|Line Numbers
  1. div#flashcontainer {
  2.     z-index:1;
  3.     opacity:100%;
  4.     position:absolute;
  5. }
  6.  
  7. div#contentcontainer {
  8.     z-index:2;
  9.     opacity:50%;
  10.     position:absolute;
  11. }
  12.  
This will create 2 div's, one to hold your Flash animation and one to hold your actual page content. The content placeholder will be semi-transparent and directly on top of the Flash container so the Flash will show through as a "background".

Hope it helps.

medicineworker
Oct 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ralph Seguin | last post by:
Ok... I am having problems getting variables/values INTO Flash from an external source (PHP). I'm NOT having problems getting loadVariablesNum() to _SEND_ variables via POST, but I _AM_ having...
0
by: Matt | last post by:
Hello, I am attempting to get a software prototype UI/demo built in Flash to talk with existing C++ (so I can exchange data and commands between the application-software already developed in the...
72
by: Paminu | last post by:
In math this expression: (a < b) && (b < c) would be described as: a < b < c But why is it that in C these two expressions evaluate to something different for the same values of a, b and...
10
by: Steve Cook | last post by:
Hi, I have an upload application written in PHP and Flash. The PHP page gets the file information via $_POST. Moreover, the user never actually visits the PHP page, rather Flash sends the...
2
by: Harris Kosmidhs | last post by:
I created a very simple welcome page with xHtml transitional. I tried to get a flash with: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"...
5
by: ASP.NET explorer | last post by:
I have been asked to create some simple animation using Adobe Flash player in ASP.NET(C#) web application. While I am fairly well versed with ASP.NET C#, I absolutely have NO IDEA about how to...
3
by: mentos07 | last post by:
Hello, I have embedded a Flash Movie in an AJAX HTML page which is created by JSF and ICEfaces. When the page loads for the first time everything works fine. The gallery shows up and displayes...
0
by: sambrena | last post by:
Still rush about cities to take part in a conference? Although you know that travelling around the world for business meetings is a good way to meet and know your business partners, you have to...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.