Can I change the embed tag in the Insert_Media.asp script?

  •  12-06-2004, 12:04 AM

    Can I change the embed tag in the Insert_Media.asp script?

    I am just full of questions now.  :)
     
    We have a specific way we use media on our site.  Because we're running Windows 2003, we use Media 9 and the mms:// tag.
     
    Can I have the insert_media script use our format instead of the <embed> tag that's default?  I tried changing what I thought would be it but I got an "Expected ;" error at line 113 when I did it. 
     
    Here's where I THOUGHT that tag was used:
    strmedia = "<embed name=\"MediaPlayer1\" src=\"" + medianame.value + "\" autostart=\"" + autostart + "\" showcontrols=\"" + showcontrols + "\"  width=\"" + width + "\" height=\"" + height + "\" type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer\" ></embed>\n";
     
    I wanted to make it:
     
    strmedia=" <a href=\"mms://www.nlgaming.com/nlgaming" + medianame.value + "\"><img src="/images/movie.jpg" border="0"></a>\n";
     
    Is this possible, or is there a proper place to put this?
View Complete Thread