Alternativtext für Flashobjekt?

Status
Nicht offen für weitere Antworten.

Suchfunktion

Erfahrenes Mitglied
Hallo,

ich habe ein Flash in meine Seite eingebunden und benötige für dieses Flash einen Alternativtext. In diesem Text befindet sich auch ein Link zu einem PDF-Dokument.

Wie realisiere ich einen Flash-Alternativtext?
Funktioniert <noembed> in allen gängigen Browsern?
Oder gibt es bessere Alternativen?

Mfg
Suchfunktion
 
Hi,

hier eine valide Umsetzung ohne das embed-Element, das keinen Webstandard darstellt, und so bei der Validation zu invalidem HTML-Code führt:

Code:
<object ...>
        <param name="src" value="pfad/zum/flashfile" />
        <param ... />
        <object data="pfad/zum/flashfile" class="mov">
                <param ... />
                Alternativtext und ein <a href="#">Link</a>
        </object>
        Alternativtext und ein <a href="#">Link</a>
</object>
Code:
/* hides the second object from all versions of IE */
* html object.mov {
    display: none;
}

/* displays the second object in all versions of IE apart from 5 on PC */
* html object.mov/**/ {
    display: inline;
}

/* hides the second object from all versions of IE >= 5.5 */
* html object.mov {
    display/**/: none;
}
mfg Maik
 
Und wo ist das Problem? Hast du obigen Code-Schnippsel schon vom w3c-Validator überprüfen lassen?

Er erfüllt nämlich deine Bedingung:

This document was successfully checked as XHTML 1.0 Transitional!

Vollständiger Quellcode der Testseite:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="author" content="Maik" />
<title>tutorials.de | demo_Suchfunktion</title>

<style type="text/css">
<!--
/* hides the second object from all versions of IE */
* html object.mov {
    display: none;
}

/* displays the second object in all versions of IE apart from 5 on PC */
* html object.mov/**/ {
    display: inline;
}

/* hides the second object from all versions of IE >= 5.5 */
* html object.mov {
    display/**/: none;
}
-->
</style>

</head>
<body>

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="320" height="260">
        <param name="src" value="Sample.mov" />
        <param name="controller" value="true" />
        <object type="video/quicktime" data="Sample.mov" width="320" height="260" class="mov">
                <param name="controller" value="true" />
                Alternativtext und ein <a href="#">Link</a>
        </object>
        Alternativtext und ein <a href="#">Link</a>
</object>

</body>
</html>

mfg Maik
 
Status
Nicht offen für weitere Antworten.
Zurück