473,847 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opera won't change the style information when I change classname

Hi

I have two quicktime players. I load them like this:

<object id="'movie" class="synligAc tiveXSpille" (...)
<embed name="movie class="SynligSp iller (...)

References to the two players are kept in the properties of the object
..loadingPlayer and .activePlayer.

In the style sheet the class (u)synligActive XSpiller changes only the
z-index, while the (u)synligSpille r changes the visibility property.

I have this callback function. The "thisElemen t" reference is simply
the object (this):

moviePlayer.pro totype.switchPl ayer = function (thisElement) {

if (thisElement.ac tivePlayer.clas sName == "synligSpiller" ) {
thisElement.act ivePlayer.class Name = "usynligSpiller ";
thisElement.loa dingPlayer.clas sName = "synligSpiller" ;
thisElement.loa dingPlayer.Stop ();
thisElement.loa dingPlayer.Play ();
} else if (thisElement.ac tivePlayer.clas sName ==
"synligActiveXS piller") {
thisElement.loa dingPlayer.clas sName =
"synligActiveXS piller";
thisElement.act ivePlayer.class Name =
"usynligActiveX Spiller";
}

var temp = [thisElement.act ivePlayer,
thisElement.loa dingPlayer];
thisElement.loa dingPlayer=temp[0];
thisElement.act ivePlayer=temp[1];
thisElement.mov ieLoaded=true;

}

After the function is finished the classnames have been changed, but
the player do not change the visibility.

It works in IE and Firefox.

mvh
Tor

May 1 '06 #1
2 1572
Tor wrote:
thisElement.act ivePlayer.class Name = "usynligSpiller ";
thisElement.loa dingPlayer.clas sName = "synligSpiller" ; After the function is finished the classnames have been changed, but
the player do not change the visibility. It works in IE and Firefox.


I don't have Opera here, so I can't try this out, but try changing
'class', as well as 'className'.

Stan Scott
New York City

May 1 '06 #2
Hi Stan

Thank, but I had already done it. Changing 'class' was the only way to
make opera change the class. It didnt understand changing of the
'classname' property. As it turns out this problem is also a case with
safari on mac. I have corrected the problem by creating some browser
specific code, but I had to use browser detection rather than feature
detection because both browsers claim to support visibility change of
embedded objects. Browser detection is not a good thing...

Agian thanks for the reply.

mvh
Tor

May 2 '06 #3

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

Similar topics

2
3687
by: Csaba2000 | last post by:
How can I dynamically resize a button in Opera? The following code works for both IE 5.5 and NN 6.1, but Opera 7.01 is not budging. Any ideas? Thanks, Csaba Gabor from New York <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML>
13
2546
by: TheKeith | last post by:
Is it just me or does opera and ie not render the float style properly? IE does a sucky job at it, but opera makes a total mess; Mozilla/Firefox renders it correctly however. I'm just trying to be a good boy following the html 4.01 strict spec, and taking it a step further by not using tables for layout, but it's becoming a real pain. You would figure putting a strict doctype declaration at the top of the page would create a uniformity in...
2
1111
by: Tom Frantz | last post by:
I have a table in IE 6.0 listing several items where clicking on a row will bring up another window showing details for that item. Clicking a particular button on the detail window will change how that item appears on the initial list screen by altering it's background color, class name, and default cursor. The problem I'm having is this -- sometimes it works and sometimes it doesn't. There doesn't appear to be any rhyme or reason as...
4
12737
by: Alexandre Jaquet | last post by:
Hi, I would like to know how can I change a row background color when an user select a row thx
16
2069
by: Giggle Girl | last post by:
Hi there, I have a nav tree similar to the XP Windows Explorer in behavior. It uses styles to underline a row on mouseover, and change the look of a row when clicked. Currently, it is working fine using CSS/Javascript, by calling functions that underline and highlight by passing in IDs. The problem is, I do not want to pass in IDs. Currently it has one the TDs to be changed, but I may need to add one for images (to change the
2
100403
by: Arielle | last post by:
Okay I've been wracking my brain all morning trying to figure this one out. It seems like to me it -should- work so kudos for anyone who can tell me what I'm doing wrong. <html> <head> <style type="text/css"> .subset A{ background-color:#EAEFF5; color:#000000; height:12px;
1
6775
by: sueian | last post by:
can some1 help with this code. can i add in a function like on click. when user click one of the link. the color will change to static from mouse over color. the text need to highligted after click. thanks <html> <head> <style type="text/css">
15
3744
by: Sunny | last post by:
Hi, I can change the lement opacity in IE using. abc.style.filter = 'alpha(opacity=' + 10 + ')'; But this dont work in firefox, In firefox it throws error. How I can change the opacity of an element in Firefox.
0
10983
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
10647
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
10706
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
10338
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
9481
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...
1
7882
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
7056
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();...
2
4119
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3164
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.