Solved

Hiding elements in between OBJECTS

Posted on 2004-03-22
4
186 Views
Last Modified: 2010-04-06
Hi,

I know the subject was a bit non-descriptive so i'll explain again. Ive got two activeX objects on my page, and in between the opening and closing tags i have a point ".". This is for a reason in that it is a windows media player activeX and netscape has problems reading the version info from the object without something in between the opening and closing tags.

This causes a problem for browsers such as NS6 that cant initiate the activex object it obviously prints out the "." on the page. Is there any way, probably using CSS i can set this new line to zero in height, or can i set the page top-margin to something like -5 ????

Any ideas anyone

Thanks in advance

Al
0
Comment
Question by:higgsy
  • 3
4 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 500 total points
ID: 10648779
One option:

<div style="display:none;">.</div>
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 10648815
I'm curious though - can you not include the embed tag for netscape browsers?

<HTML>
<HEAD>
<TITLE>Windows Media Player</TITLE>
</HEAD>
<BODY>
<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<PARAM name="autoStart" value="True">
<PARAM name="filename" value="http://WebServer/MyFile.wvx">

<EMBED TYPE="application/x-mplayer2" SRC="http://WebServer/MyFile.wvx" NAME="MediaPlayer" WIDTH=320 HEIGHT=240></EMBED>

</OBJECT>
</BODY>
</HTML>
0
 

Author Comment

by:higgsy
ID: 10649496
Hi Sean,

You can embedd the Windows Media 6.4 Plugin for Netscape browsers, however one of the main goals of my app was to make it visually appear the same to all browsers. To be able to do this you need to be able to script the object.

I have managed at last to build an application that works for Netscape 6+/MSIE 4+ and Mozilla. Opera unfortunately does not want to let it users have any sort of decent experience on the web....This unfortunately all depends on the user having Windows Media 7 (For IE), or 9 Series for other browsers. I am now 75% of modifying my script to also use both Quicktime and RealPlayer ActiveX objects - that should hopefully cover everyone.....

Your solution worked by the way, so a nice simple 500 points coming to you.

Thanks

al
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 10649549
Thanks Al
I'm sorry it wasn't worth an A - you should have just asked for more options from me - I would have been happy to oblige :-)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now