473,908 Members | 5,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS & Flash

ashkhn
1 New Member
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

.......continue d
/* 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.jp g) no-repeat;
}


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

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 1549
drhowarddrfine
7,435 Recognized Expert Expert
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 Recognized Expert Contributor
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
13483
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 difficulty reading back into Flash local variables. Say, for instance, I have a Flash page that has a number of typein fields. Each of the typeins has a variable associated with it.
0
1971
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 C++ source with its prototype UI/demo to be built in Flash). Can anyone provide examples or guidance for such an effort? More details:
72
4301
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 c?
10
29929
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 information to the PHP page and then loads the result, all in the background. Right now, the php page cannot access the $_SESSION. Is there anyway that I can conitnue the PHP session when doing this or does the user have to visit the PHP page?
2
1826
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" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="500" height="500" > <param name="MOVIE" value="main.swf"/> <param name="PLAY" value="true"/> <param name="LOOP" value="true"/> <param name="QUALITY" value="high"/>
5
5956
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 say "Hello World" in a Flash enabled web page rendered via ASP.NET. Can any one let me get started? ---
3
1713
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 all the pictures. Now we use ICEfaces AJAX components to change some text on the page. And when this happens the Flash Movie disapears (unloads(?)) from the page. The space where the Flash Movie should be is just blank and Flash is not present...
0
4229
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 agree that it is also a good way of wasting time and money. Specially, sometimes you spend a day or two travelling only to attend a meeting that is half an hour long, badly disproportion! Now there is a solution can save you out from such dilemma...
0
9876
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11339
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10915
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11044
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8096
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7248
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5933
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6137
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4772
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.