head oder body
Ferdinand Wirth
- html
0 rudii0 Christian0 MudGuard0 Axel Richter
Hi
gehört diser script in den Head oder in den Body bereich?
(es handelt sich um ein Online-Radio)
<OBJECT ID="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
width="150" height="53" standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://lsd.newmedia.tiscali-business.com/bb/redirect.lsc?stream=rtlradio$livestream.wma&content=live&media=ms">
<PARAM NAME="TransparentAtStart" Value="true">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="AnimationatStart" Value="false">
<PARAM NAME="ShowStatusBar" Value="true">
<PARAM NAME="ShowControls" Value="true">
<PARAM NAME="autoSize" Value="false">
<PARAM NAME="displaySize" Value="false">
<PARAM NAME="ShowAudioControls" Value="true">
<PARAM NAME="ShowPositionControls" Value="false">
<Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
src="http://lsd.newmedia.tiscali-business.com/bb/redirect.lsc?stream=rtlradio$livestream.wma&content=live&media=ms" Name="MediaPlayer"
width="150" height="53" transparentAtStart="1" autostart="1"
animationAtStart="0" ShowControls="true" ShowAudioControls="1"
ShowPositionControls="0" autoSize="0" ShowStatusBar="1" displaySize="false">
</embed></OBJECT>
alles von <object> bis </object> kannst du behandeln wie meinetwegen ein bild (also ausrichtung,...) --> es kommt in den body und zwar dort wo du es willst
rudii
Hi
Hi
gehört diser script in den Head oder in den Body bereich?
(es handelt sich um ein Online-Radio)
dieses Object gehört in den Body-Bereich! Ist im Endeffekt das gleiche wie wenn du ein Bild einfügen willst.
infos unter
http://selfhtml.teamone.de/html/multimedia/objekte.htm#datendateien
Hi,
gehört diser script in den Head oder in den Body bereich?
Du meinst das object-Element. Das ist kein Script.
object ist prinzipiell auch im head erlaubt.
Aber nur dann, wenn es nicht dazu führen kann, daß irgendwas angezeigt (rendered) wird.
Achtung, das gilt auch für den evtl. vorhandenen Alternativ-Inhalt...
cu,
Andreas
Hallo,
gehört diser script in den Head oder in den Body bereich?
(es handelt sich um ein Online-Radio)
<OBJECT ...</OBJECT>
Beides ist möglich:
HEAD
http://www.w3.org/TR/html4/struct/global.html#h-7.4.1
<!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
%head.content:
<!ENTITY % head.content "TITLE & BASE?">
%head.misc:
<!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
BODY
http://www.w3.org/TR/html4/struct/global.html#h-7.5.1
<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->
Im BODY muss OBJECT in einem Block-Element stehen.
%block:
<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
P:
<!ELEMENT P - O (%inline;)* -- paragraph -->
%inline:
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
%special:
<!ENTITY % special
"A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">
viele Grüße
Axel