Hello,
there is a known problem with Opera and the execution of content shown
in <NOSCRIPT> tag.
Everythings works fine, if there is only one simple script like:
http://www.dr-wald.de/test/Opera-NOSCRIPT.html
Switching off Javascript will show the alternative content. Javascript
enabled will only show the JS-content, _not_ the <NOSCRIPT> content.
But:
If there are some more scripts in a page, JS content _and_ alternative
<NOSCRIPT> content is shown, if there seems to be a script error or an
unknown script before executing the error script. This behavior is
according to the W3C, but IMHO not useful:
http://www.w3.org/TR/1998/REC-html40....html#h-18.3.1
I am developing a Flash browser detection working also with Opera, not
only Moz/IE: There shall be displayed an alternative content, if flash
is not supported or if flash version is to low.
Macromedia is providing a browser detection script, which works fine
with Opera, if _any_ flash version is installed.
But:
If _NO_ flash is installed (rename
c:\Programme\Opera72\Program\Plugins\NPSWF32.dll) javascript content
_and_ alternative <NOSCRIPT> content will be shown:
http://www.dr-wald.de/test/mainframetest.html
I do not know how to solve this problem!
There must be a problem with the following code:
<script type="text/javascript">
<!--
var contentVersion = 5;
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"]) ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var PluginVersion = words[i];
}
var FlashCanPlay = PluginVersion >= contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
[...]
Please, are there any hints?
X-Post2 comp.lang.javascript,opera.page-authoring
Fup2 comp.lang.javascript
--
Best regards/ MfG,
Gustav Medler
pm.gustav.medler (at) gmx.net
*Mail reply will not be read,
*please use address above!