473,386 Members | 1,785 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,386 software developers and data experts.

Fading an activeX-object into the background

How can I create a fade with javascript that fade an activex object
(quicktime) to the background and not to the IE windowed control.

I call this function several times, each time decreasing the "opacity".
id is the quicktime activex object.

I have tried to set background:tranparent and
background-color:transparent in my style sheet.

//change the opacity for different browsers
function changeOpac(opacity, id) {
var object = document.getElementById(''+id+'').style;
if (object.opacity) {
object.opacity = (opacity / 100);
} else if (object.MozOpacity) {
object.MozOpacity = (opacity / 100);
} else if (object.MKhtmlOpacity) {
object.KhtmlOpacity = (opacity / 100);
} else if (object.filter) {
object.filter = "alpha(opacity=" + opacity + ")";
}
}

Oct 22 '05 #1
1 2137

torbs wrote:
How can I create a fade with javascript that fade an activex object
(quicktime) to the background and not to the IE windowed control.

I call this function several times, each time decreasing the "opacity".
id is the quicktime activex object.

I have tried to set background:tranparent and
background-color:transparent in my style sheet.

//change the opacity for different browsers
function changeOpac(opacity, id) {
var object = document.getElementById(''+id+'').style;
if (object.opacity) {
object.opacity = (opacity / 100);
} else if (object.MozOpacity) {
object.MozOpacity = (opacity / 100);
} else if (object.MKhtmlOpacity) {
object.KhtmlOpacity = (opacity / 100);
} else if (object.filter) {
object.filter = "alpha(opacity=" + opacity + ")";
}
}


I have no idea how you could do this with your approach. However there
is a very easy way to do timed fades in SMIL 2, if a recent Real player
is installed that has SMIL 2 built in. Many elaborate transition
effects, including fades, are just part of the standard SMIL commands
and are easy to use. Many browsers do not have Active X installed or
have it turned off, so you limit those who can view your effects
greatly if you use ActiveX without an alternative path. Of course if
you are designing a page for a network rather than the general web, you
often can control what is installed on the network. If you insist on
using ActiveX for media, there often is a alternative path that can be
added to the ActiveX object for browsers without ActiveX support. The
crude way is to include an embed in the ActiveX object. However, often
one can include a non-ActiveX object within the ActiveX object that
will automatically be executed if there is not ActiveX support.

Oct 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ahmad | last post by:
Hi all, Is it possible to add a fading-in effect to the start of a java program. So when the program is started, it fads-in instead of pop-out. any help is appreciated, thanx
3
by: hypnotizes | last post by:
Has anyone seen the nice fading effect that involves one page, doing a fading transistion into another when you click on the link? Im trying to find the code for this effect. Any help!? An...
1
by: zelnugget | last post by:
I'm using a fading image script that I found via Google Groups on this newsgroup, and am having some difficulty with it. First, here's a link to the Google Groups posting: ...
1
by: marfi95 | last post by:
Hi all. I have some forms that use the opacity property to fade in/out. I'd like to do the same kind of thing with a richtextbox on one of my forms. Doesn't look like opacity is exposed on the...
4
by: Rich Sagall | last post by:
I am just learning Javascript and looking for some help with having a series of quotes that will fade in and out of the website. Thanks, Rich
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
1
lolixpop
by: lolixpop | last post by:
Hi everybody thanks for reading! i have a few actionscript questions that i really need help on...any help would be greatly appreciated! Okay so i came upon this tutorial:...
1
by: =?Utf-8?B?ZHNoZW1lc2g=?= | last post by:
Hello, I have a windows form in a project that was written long ago. I noticed that all images in this form have a width of 1 pixel, but they are streched over all the form (from left to right)....
2
by: Freightliner | last post by:
Hi, this script here displays a fading text message. I would like to display 3 different messages, let's say "Fading text 1", "Fading text 2", "Fading text 3". Also, is there a way to make it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.