I've had this code for a wile I made it but I'm not sure if it's right.
I have some avi files. the URL or the file is the URL or the link so I thought to use
setAttribute('src',divs[mist].id.getAttribute('href')) to take the URL from the link and run it throuth this function that writes out the object and embed tags.
now I also want to know if I can send the codebase and CLASSID to a function that writes out the code and tries it to see if the user has realplayer quicktime or WMP
Code:function playMTV() if{ (! document.getElementById)return; divs=document.getElementByTagName(a); var playcode=setAttribute('src',divs[mist].id.getAttribute('href')); var seplaycod=setAttribute('value',divs[mist].id.getAttribute('href')); for (mist=0;mist<divs.length;mist++) { document.write('<div id="Mplayer"><object id=" '+' W '+ divs[mist].id + '"standby="this will take some time"<img src="misterioloder" '); document.write('CLASSID="'+reader()+ ' " width="640" height="504" '); document.write ('codebase=" '+quick()+ '> <param name="autoStart" value="false" /> <param name="EnableJavaScript" value="true"/> <param name="PlayCount" value="1"/> <param name=showControls" value="1"/> <param name="EnableFullScreenControls" value="0"> <param name="ShowControls" value="-1"> <param name="ShowAudioControls" value="-1"> <param name="ShowStatusBar" value="1"> <param name="HREF" value=" '+seplaycod+ ' "/>'); document.write( '<embed id=" '+divs[mist].id+'"'); document.write('pluginspage="' +emplug()+ '" src=" '+playcode+ '" width="640" height="504" autostart="false" enablejavascript="true"></embed></object></div>'); MisterioProgram.toplogo.Vrip.onload=playMTV(R);}}



Reply With Quote
Bookmarks