From: "Charles Walker" <[EMAIL PROTECTED]>
Subject: RE: DHTML Layer Problem in Netscape
Thanks to everyone who responded. I recommend Clay's function for anyone who
has to do something similar.
Anyone know of a good beginner to intermediate level article or resource on
the two DOMs and how to script for plugins and other objects with them?
Charles Walker
-----Original Message-----
From: RealForum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 17, 2000 1:07 PM
Subject: RE: DHTML Layer Problem in Netscape
From: Clay Benoit <[EMAIL PROTECTED]>
Subject: RE: DHTML Layer Problem in Netscape
Hey Charles -
Due to differences in the DOM between Netscape and IE,
you will need to reference the RealPlayer Object differently
for both browsers.
For Netscape, you can use the following syntax:
document.realLayer.document.embeds["sample"].DoPlay()
It probably makes sense to write a small JavaScript function
to handle both browsers, rather than use the HREF.
function avcontrol (method) {
if(method=="play") {
if(nav) document.realLayer.document.embeds["sample"].DoPlay()
else if(ie) document.all["sample"].DoPlay()
}
else if(method=="stop") {
if(nav) document.realLayer.document.embeds["sample"].DoStop()
else if(ie) document.all["sample"].DoStop()
}
}
<td bgcolor="red">
<A href="#" onClick=avcontrol('play')>Click here to play</A><br>
<A href="#" onClick=avcontrol('stop')>Stop Playback</A>
</td>
Good luck. Later.
Clay Benoit
Lead Developer - Midi, Inc.
[EMAIL PROTECTED]
http://www.midicorp.com
*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites. Archives of RealForum can
be found at http://realforum.real.com
If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:
unsubscribe realforum
or from another account, besides the address you subscribed with:
unsubscribe realforum <[EMAIL PROTECTED]>