Webpage:  Default static image on unplayed windows media video?

Posted on 2008-11-19
Last Modified: 2013-12-25

please visit this page using Internet Explorer.  How do I get a default picture to show up on the blank screen?

my code:
    document.write('<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase=",4,5,715" border="0" standby="Loading Windows Media Player components..." type="application/x-oleobject" width="509" height="375"><param name="fileName" value=""><param name="ShowStatusBar" value="1" /><param name="animationatStart" value="1" /><param name="transparentatStart" value="0" /><param name="ShowAudioControls" value="1" /><param name="AllowScan" value="1" /><param name="ShowPositionControls" value="1" /><param name="showControls" value="1" /><param name="autoStart" value="0" /><param name="Volume" value="-0"> </object>')
Question by:arthurh88
    LVL 14

    Expert Comment

    there is no fix really, since outlook is a PITA, see my findings here:
    LVL 14

    Expert Comment

    sorry, misplaced my text in a hurry, which was designed for a topic one row below, but not yours - - -

    Author Comment

    no biggie, i figured it out anyway :)

    Accepted Solution

    The answer I used:

    <SCRIPT type="text/javascript">
          if(-1 != navigator.userAgent.indexOf("MSIE"))
            document.write('<div id="video_29">')
                 document.write ('<a style="position: relative; left: 0px; top: 0px; display: block; width: 509px; height: 374px; background: url( no-repeat center center;" href="PATH" onclick="document.getElementById(\'video_29\').innerHTML=\'<object id=&quot;MediaPlayer1&quot; CLASSID=&quot;CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95&quot; codebase=&quot;http:\/\/,4,5,715&quot; border=&quot;0&quot; standby=&quot;Loading Windows Media Player components...&quot; type=&quot;application/x-oleobject&quot; width=&quot;509&quot; height=&quot;374&quot;><param name=&quot;fileName&quot; value=&quot;http:\/\/;><param name=&quot;ShowStatusBar&quot; value=&quot;1&quot; /><param name=&quot;animationatStart&quot; value=&quot;1&quot; /><param name=&quot;transparentatStart&quot; value=&quot;0&quot; /><param name=&quot;ShowAudioControls&quot; value=&quot;1&quot; /><param name=&quot;AllowScan&quot; value=&quot;1&quot; /><param name=&quot;ShowPositionControls&quot; value=&quot;1&quot; /><param name=&quot;showControls&quot; value=&quot;1&quot; /><param name=&quot;autoStart&quot; value=&quot;1&quot; /><param name=&quot;Volume&quot; value=&quot;-0&quot;> </object>\';return false;"></a>')
          else if(-1 != navigator.userAgent.indexOf("Firefox"))
             document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,40,0" width="480" height="360"> <param name="flashvars" value="file=" /> <param name="movie" value="" /> <embed src="" width="480" height="360" type="application/x-shockwave-flash" pluginspage="" flashvars="file=" /></object>')


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now