#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    4
    Rep Power
    0

    Javascript Embed mpeg in other window


    Hello, I have a problem with this code that is not allowing it to play in a different window. I know the mpeg works, and I'm sure the embed code is right, so what is wrong?


    <script language="JavaScript">
    function openindex(myvar)
    {
    OpenWindow=window.open("", "newwin",

    "height=350,width=300,toolbar=no,scrollbars=1,menubar=no");
    OpenWindow.document.write('<embed src= "' + myvar + '"

    autostart=true></embed>\n')
    OpenWindow.document.write('<a href="javascript:window.close();">Return to

    Article</a>')
    OpenWindow.document.close()
    self.name="main"
    }
    </SCRIPT>

    <a href="javascript:openindex('cls182kk.avi')">SuperNova Video MPEG</a>
    </body>

    </html>
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,253
    Rep Power
    2222
    You might get better results posting this in the Javascript section:
    http://forums.devshed.com/f1/s

IMN logo majestic logo threadwatch logo seochat tools logo