Sie sind hier:  » Tipps » Flash  » Paragraph_movie.ccml für w2d 6.0 / 7.0

Zur Übersicht

Tipps:

.htaccess

eMail-Adresse

Links im Text

Codeschnipsel

Codevalidierung

Druckversion

Flash

Flash Überschrift h2

Flash via html-Absatz

Flash als Logo

Formular 6.0

Grafiken positionieren

Animiertes Gif

JavaScripte

Multilanguage

Quicktime

Sitemap

Tabellen

wmv valide einbinden

Farbvorschau

YouTube

Kontaktdaten

Webdesignconsult.de
39164 Wanzleben-Börde
Telefon:
039204 - 91 80 39


Medienclip via paragraph_movie.ccml ausgeben

Sie arbeiten mit Web to date 6.0 oder mit Shop to date 6.0??

Sie möchten Flashfilme ganz "normal" über den Absatztyp "Medienclip" anzeigen lassen? Wenn Sie auf schlanken Code setzen, der vom W3C-Validator akzeptiert wird, tauschen Sie die hier angebotene Datei einfach aus.

In jedem Fall zuvor eine Sicherungskopie erstellen.

Arbeitsschritte

1. paragraph_movie.ccml

Um den gesamten Code ansehen zu können, nutzen Sie bitte die Markierfunktion mit Hilfe der Maus.

<cc:*>
--------------------------------------------------
Web2Date

Layout: MYDesign

Datei: paragraph_movie.ccml
Funktion: Movie-Absatz
valdiert von webdesignconsult.de:
Flashfilmeinbindung,
Real Media
Quicktime

--------------------------------------------------
</cc:*>
<cc:if cond="&paragraph.movie.isflash">
<cc:if cond="&paragraph.movie.url"><cc:set obj="mymovie.url" value="&paragraph.movie.url">
<cc:else><cc:download uid="&paragraph.movie.uid" obj="mymovie">
</cc:if>
<div class="flashmovie"><!--Start Movie-->
<object type="application/x-shockwave-flash"
data="<cc:print value="&mymovie.url">"
width="<cc:print value="&paragraph.movie.width">"
height="<cc:print value="&paragraph.movie.height">">
<param name="<cc:print value="&mymovie.url">"></param>
<cc:if cond="&paragraph.movie.nocontrolbar">&shownavigation=false</cc:if><cc:if cond="&paragraph.movie.autostart">&autostart=true</cc:if>">
</object>
</div><!--ENDE Movie-->
<br clear="all" /></cc:if>



<cc:if cond="&paragraph.movie.isflv">
<div class="flashmovie"><!--Start Movie-->
<cc:asset obj="myplayer" src="mediaplayer.swf" common="1" noparse="1">
<cc:download uid="&paragraph.movie.uid" obj="mymovie">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="<cc:print value="&paragraph.movie.width">"
height="<cc:print value="&paragraph.movie.height">">

<param name="wmode" value="opaque"></param>
<param name="allowScriptAccess" value="always"></param>
<param name="allowFullScreen" value="true"></param>
<param name="movie" value="<cc:print value="&myplayer.url">"></param>
<param name="flashvars" value="height=<cc:print value="&paragraph.movie.height">&width=<cc:print value="&paragraph.movie.width">&file=../downloads/<cc:print value="&mymovie.filename"><cc:if cond="&paragraph.movie.nocontrolbar">&shownavigation=false</cc:if><cc:if cond="&paragraph.movie.autostart">&autostart=true</cc:if>">

<embed src="<cc:print value="&myplayer.url">"
wmode="opaque"
width="<cc:print value="&paragraph.movie.width">"
height="<cc:print value="&paragraph.movie.height">"
allowScriptAccess="always"
allowFullScreen="true"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="height=<cc:print value="&paragraph.movie.height">&width=<cc:print value="&paragraph.movie.width">&file=../downloads/<cc:print value="&mymovie.filename"><cc:if cond="&paragraph.movie.nocontrolbar">&shownavigation=false</cc:if><cc:if cond="&paragraph.movie.autostart">&autostart=true</cc:if>">
</embed>
</object>
</div><!--ENDE Movie-->
</cc:if>



<cc:if cond="&paragraph.movie.iswindowsmedia">
<cc:if cond="&paragraph.movie.url"><cc:set obj="mymovie.url" value="&paragraph.movie.url"><cc:else><cc:download uid="&paragraph.movie.uid" obj="mymovie"></cc:if>
<div class="mediamovie"><!--Start wmv Movie-->
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player"
width="<cc:print value="&paragraph.movie.width">"
height="<cc:print value="&paragraph.movie.height">">

<param name="url" value="<cc:print value="&mymovie.url">" />
<param name="src" value="<cc:print value="&mymovie.url">" />

<param name="showcontrols" value="true" />
<param name="autostart" value="true" />

<!--[if !IE]>-->
<object type="video/x-ms-wmv" data="<cc:print value="&mymovie.url" width="<cc:print value="&paragraph.movie.width">" height="<cc:print value="&paragraph.movie.height">"><param name="src" value="<cc:print value="&mymovie.url">" />

<param name="autostart" value="true" />
<param name="controller" value="true" />
</object>
<!--<![endif]-->
</object>
</div><!-- Ende wmv Movie-->
</cc:if>



<cc:if cond="&paragraph.movie.isquicktime">
<cc:if cond="&paragraph.movie.url"><cc:set obj="mymovie.url" value="&paragraph.movie.url"><cc:else><cc:download uid="&paragraph.movie.uid" obj="mymovie"></cc:if>
<div class="quicktimemovie"><!--Start Movie-->

<object id="QuickTimePlayer" classid="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
width="<cc:print value="&paragraph.movie.width">"
height="<cc:print value="&paragraph.movie.height">"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src value="value="&paragraph.movie.url"></param>
<param name="autoplay value="true"></param>
<param name="loop value="false"></param>
<cc:if cond="&paragraph.movie.nocontrolbar">
<param name="controller" value="false"></param>
<cc:else>
<param name="controller" value="true"></param>
</cc:if>
<embed id="EmbedQuickTimePlayer"
pluginspage="http://www.apple.com/quicktime/download/"
type="video/QuickTime"
cache="true"
src="<cc:print value="&mymovie.url">"
width="<cc:print value="&paragraph.movie.width">"
height="<cc:print value="&paragraph.movie.height">"
name="QuickTimeMovie"
autoplay="true"
bgcolor="#ffffff"
controller="false"
loop="false">
</embed>
</object>

<p>Damit der QuickTime-Film angezeigt werden kann, muss der <a href="http://www.apple.com/quicktime/download/" title="Link to External Site">Quicktime Player</a> auf Ihrem Rechner installiert sein.</p>
</center>
</div>
</cc:if>

<cc:if cond="&paragraph.movie.isrealmedia">
<cc:if cond="&paragraph.movie.url">
<cc:set obj="mymovie.url" value="&paragraph.movie.url">
<cc:else>
<cc:download uid="&paragraph.movie.uid" obj="mymovie">
</cc:if>
<div class="realmemovie"><!--Start Movie-->

<object id="realvideo" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="<cc:print value="&paragraph.movie.width">" height="<cc:print value="&paragraph.movie.height">">
<param name="controls" value="imagewindow"></param>
<param name="autostart" Value="true"></param>
<param name="console" value="console1"></param>
<param name="maintainaspect" value="true"></param>
<param name="nojava" value="true"></param>
<param name="src" value="<cc:print value="&mymovie.url">"></param>
<param value="true" name="imagestatus"></param>
<embed backgroundcolor="#000000" nojava="true" height="<cc:print value="&paragraph.movie.height">" width="<cc:print value="&paragraph.movie.width">" name="video" autostart="true" console="console1" imagestatus="true" controls="ImageWindow" src="<cc:print value="&mymovie.url">" type="audio/x-pn-realaudio-plugin" pluginspage="http://www.real.com/player/index.html">
</embed>
</object>

<cc:if cond="&paragraph.movie.nocontrolbar" not="0">
<object id="status" width="330" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="30">
<param value="StatusBar" name="controls"></param>
<param value="#000000" name="backgroundcolor"></param>
<param value="<cc:print value="&paragraph.movie.width">" name="WIDTH"></param>
<param value="30" name="height"></param>
<param name="src" value="<cc:print value="&mymovie.url">"></param>
<param name="console" value="console1"></param>
<embed height="30" name="status" width="330" console="console1" controls="StatusBar" type="audio/x-pn-realaudio-plugin" src="<cc:print value="&mymovie.url">" backgroundcolor="#000000" nojava="true"></embed>
</object>

<cc:if cond="&paragraph.movie.nocontrolbar" not="1">
<br />
<object id="status" width="330" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="36">
<param name="controls" value="ControlPanel"></param>
<param value="#000000" name="backgroundcolor"></param>
<param value="<cc:print value="&paragraph.movie.width">" name="width"></param>
<param value="36" name="height"></param>
<param name="src" value="<cc:print value="&mymovie.url">"></param>
<param value="console1" name="console"></param>
<embed nojava="true"
height="36" name="status"
width="<cc:print value="&paragraph.movie.width">"
console="console1"
controls="ControlPanel"
src="<cc:print value="&mymovie.url">"
type="audio/x-pn-realaudio-plugin"
autostart="true"
pluginspage="http://www.real.com/player/index.html">
</embed>
</object>
</div>
</cc:if>
</cc:if>
</cc:if>

CSS

Um den gesamten Code ansehen zu können, nutzen Sie bitte die Markierfunktion mit Hilfe der Maus.

/* Movie-Absatz*/
div.flashmovie, div.mediamovie, div.quicktimemovie, div.realmemovie {
float: none;
text-align: center !important;
padding: 5px;
margin: 0px auto 0px auto !important;
border: none;
width: 450px;
background-color: transparent;
}
Die Werte bitte anpassen!!

Themen


Please note:

Lesen Sie bitte zunächst die einführenden Hinweise zum Thema.

Die hier vorgestellten Codevarinaten arbeiten teilweise mit unterschiedlichen Javascripten. Daher bitte stets die Anleitung komplett abarbeiten.


aktualisiert am: 09.03.2012



© 2002 - 2012  W. K r a w i k   Stand: 09.03.2012