• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

Hiding elements in between OBJECTS

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
higgsy
Asked:
higgsy
  • 3
1 Solution
 
seanpowellCommented:
One option:

<div style="display:none;">.</div>
0
 
seanpowellCommented:
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
 
higgsyAuthor Commented:
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
 
seanpowellCommented:
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now