473,785 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:tran parent and
background-color:transpare nt in my style sheet.

//change the opacity for different browsers
function changeOpac(opac ity, id) {
var object = document.getEle mentById(''+id+ '').style;
if (object.opacity ) {
object.opacity = (opacity / 100);
} else if (object.MozOpac ity) {
object.MozOpaci ty = (opacity / 100);
} else if (object.MKhtmlO pacity) {
object.KhtmlOpa city = (opacity / 100);
} else if (object.filter) {
object.filter = "alpha(opacity= " + opacity + ")";
}
}

Oct 22 '05 #1
1 2158

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:tran parent and
background-color:transpare nt in my style sheet.

//change the opacity for different browsers
function changeOpac(opac ity, id) {
var object = document.getEle mentById(''+id+ '').style;
if (object.opacity ) {
object.opacity = (opacity / 100);
} else if (object.MozOpac ity) {
object.MozOpaci ty = (opacity / 100);
} else if (object.MKhtmlO pacity) {
object.KhtmlOpa city = (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
2289
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
1791
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 example of this that Ive found was at the following site: http://www.sensationalstaycee.com/welcome.htm Just click on any of the sections, and you will see how one page fades into another.
1
1780
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: http://groups-beta.google.com/group/comp.lang.javascript/msg/3f287a2f20de1b10 I've modified the page linked to in the above URL by making one of the images an input element whose type is an image and am now encountering flickering problems. Here's the webpage:
1
4960
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 rtb control, so I was wondering if anyone had done this before. I'm looking for the effect of fading in at a specific point in the form (when a timer ticks actually). I also don't mind some effect like the size of the control starting smaller...
4
2128
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
8079
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 .dll I can not call the functions in the ActiveX component. In the next step I tried to use the ActiveX component in a class library. I simply added a reference to the corresponding COM component. This this only
1
3195
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: http://www.kirupa.com/developer/mx/fadegrid2.htm It looks awesome! I absolutly love it but i'm not quite sure how to apply it to my banner. My banner consists of 3 movie clips that moves...like instead of a still image like the one shown on the tutorial there are several text...
1
2612
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). When they are streched the right hand of the images is fading. I would like it not to fade. Any ideas of how to do this? thanks, -- dshemesh
2
1848
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 work under FireFox too? Thank you very much for help
0
10325
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
10147
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
10091
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,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5381
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
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
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.