Avatar billede molokyle Nybegynder
24. maj 2003 - 23:17 Der er 4 kommentarer og
1 løsning

Kan man bruge <OBJECT> i stedet for <EMBED> til lyd ?

Kan man bruge OBJECT tag'et i stedet for EMBED tag'et til lydfiler?

Jeg bruger selv noget alá dette:

<EMBED SRC="./sound/techno.wav" AUTOSTART="TRUE" LOOP="TRUE" height="0" width="0">
<NOEMBED>
<BGSOUND SRC="./sound/techno.wav" LOOP="infinite">
</NOEMBED>
</EMBED>

...men ikke alle browsere understøtter det.

Hvis man kan, så: Hvordan ???

Kildekode Tak :oD
Avatar billede olebole Juniormester
25. maj 2003 - 00:10 #1
<ole>

<object ID="myMediaPlayer"
    classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    width="320" height="240">
    <PARAM NAME="AudioStream" VALUE="-1">
    <PARAM NAME="AutoSize" VALUE="-1">
    <PARAM NAME="AutoStart" VALUE="-1">
    <PARAM NAME="AnimationAtStart" VALUE="-1">
    <PARAM NAME="AllowScan" VALUE="-1">
    <PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
    <PARAM NAME="AutoRewind" VALUE="0">
    <PARAM NAME="Balance" VALUE="0">
    <PARAM NAME="BaseURL" VALUE="">
    <PARAM NAME="BufferingTime" VALUE="5">
    <PARAM NAME="CaptioningID" VALUE="">
    <PARAM NAME="ClickToPlay" VALUE="-1">
    <PARAM NAME="CursorType" VALUE="0">
    <PARAM NAME="CurrentPosition" VALUE="-1">
    <PARAM NAME="CurrentMarker" VALUE="0">
    <PARAM NAME="DefaultFrame" VALUE="">
    <PARAM NAME="DisplayBackColor" VALUE="0">
    <PARAM NAME="DisplayForeColor" VALUE="16777215">
    <PARAM NAME="DisplayMode" VALUE="0">
    <PARAM NAME="DisplaySize" VALUE="0">
    <PARAM NAME="Enabled" VALUE="-1">
    <PARAM NAME="EnableContextMenu" VALUE="-1">
    <PARAM NAME="EnablePositionControls" VALUE="-1">
    <PARAM NAME="EnableFullScreenControls" VALUE="0">
    <PARAM NAME="EnableTracker" VALUE="-1">
    <PARAM NAME="Filename" VALUE="">
    <PARAM NAME="InvokeURLs" VALUE="-1">
    <PARAM NAME="Language" VALUE="-1">
    <PARAM NAME="Mute" VALUE="0">
    <PARAM NAME="PlayCount" VALUE="1">
    <PARAM NAME="PreviewMode" VALUE="0">
    <PARAM NAME="Rate" VALUE="1">
    <PARAM NAME="SAMILang" VALUE="">
    <PARAM NAME="SAMIStyle" VALUE="">
    <PARAM NAME="SAMIFileName" VALUE="">
    <PARAM NAME="SelectionStart" VALUE="-1">
    <PARAM NAME="SelectionEnd" VALUE="-1">
    <PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
    <PARAM NAME="SendWarningEvents" VALUE="-1">
    <PARAM NAME="SendErrorEvents" VALUE="-1">
    <PARAM NAME="SendKeyboardEvents" VALUE="0">
    <PARAM NAME="SendMouseClickEvents" VALUE="0">
    <PARAM NAME="SendMouseMoveEvents" VALUE="0">
    <PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
    <PARAM NAME="ShowCaptioning" VALUE="0">
    <PARAM NAME="ShowControls" VALUE="-1">
    <PARAM NAME="ShowAudioControls" VALUE="-1">
    <PARAM NAME="ShowDisplay" VALUE="0">
    <PARAM NAME="ShowGotoBar" VALUE="0">
    <PARAM NAME="ShowPositionControls" VALUE="-1">
    <PARAM NAME="ShowStatusBar" VALUE="0">
    <PARAM NAME="ShowTracker" VALUE="-1">
    <PARAM NAME="TransparentAtStart" VALUE="0">
    <PARAM NAME="VideoBorderWidth" VALUE="0">
    <PARAM NAME="VideoBorderColor" VALUE="0">
    <PARAM NAME="VideoBorder3D" VALUE="0">
    <PARAM NAME="Volume" VALUE="-9640">
    <PARAM NAME="WindowlessVideo" VALUE="0">
</object>

/mvh
</bole>
Avatar billede molokyle Nybegynder
25. maj 2003 - 00:36 #2
<ole>OK</bole>

You got me...

point til dig :-)
Avatar billede olebole Juniormester
25. maj 2003 - 00:41 #3
Hehe ... thnx  ;o)
Avatar billede molokyle Nybegynder
25. maj 2003 - 00:43 #4
Hvor f... fik du det her fra ???

classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
Avatar billede olebole Juniormester
25. maj 2003 - 01:14 #5
Det kom bare lige pludselig til mig  ;oD

Det er jo i virkeligheden et ActiveX-object og Homesite har en samling af den slags inbygget. Så var det jo bare at hente parametrene ud med 'innerHTML' på objektet.
C'est tout  :)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester