I'll post the code again with it fixed and readable, I'm working out all the html and css that's needed.
okay I see the mistake but the if true thing was the one thing I wan't sure if it would work. I had a code made by some one else that used = as an comparison operator and it still worked so I didn't really think about it but with a code like this I guess I should be more careful.
HTML Code:
function misterio(){
var Mpdiss=document.getElementById("misterioProgram")
var Watching=watchShows.childNode.childNode.a
function MakeDiv{
if (Mpdiss.display="none")
{Mpdiss.display="block"}
if(!e)
var e=window.event; whichlink=(e.target) ? e.target.id: e.srcElement.id;
switch (whichlink) {case "watchshows.tt1.ChildNode.a" : misterioProgram.ChooseSeason.Mtt1.display="block";misterioProgram.ChooseSeason.Mtt1.zIndex="100";
break; }}}
/*function to display a div with the links to plus ins*/
function plugoff(){var tork=document.getElementById("plugs");
tork.style.display="none"}
setTimeout("plugoff():"18000);}
/*function to make the html object and embed tags and get the right code for the users plug in*/
function reader(){
try {document.write ("clsid:6BF52A52-394A-11d3B153-00C04F79FAA")};
catch(e){ try { document.write ("clsid:02BF2505-8C17-4B23-BC80-D3488ABDDC6B")};
catch(e){try{document.write ("clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA")};
catch {confirm("you don't have anything to play AVIs. To get something click okay")
if(true){document.write("<div id='plugs'> for quick time http://www.apple.com/qtactivex/qtplugin.cab For windosw media http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0 or http://www.microsoft.com/windows/windowsmedia/player/10/default.aspx for realplayer http://www.real.com/ </div>")};
/*function to find the right pluginspage for the embed tag*/
function emplug{ if (clsid=="02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ){ 'http://www.apple.com/quicktime/download/'}if else(clsid=="6BF52A52-394A-11d3B153-00C04F79FAA"){'http://microsoft.com/windows/mediaplayer/ en/download/'} if else (clsid=="CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"){'http://www.real.com/products/player/'}}
/*a function that adds the codebase*/
function quick() {if(clsid=="6BF52A52-394A-11d3B153-00C04F79FAA") ('http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0')
if else (clsid=="02BF25D5-8C17-4B23-BC80-D3488ABDDC6B") {document.write('http://www.apple.com/qtactivex/qtplugin.cab')}
/*function that writes all the object and emb tags*/
function playMTV()
if{ (! document.getElementById)return;
divs=document.getElementByTagName(li);
for (mist=0;mist<divs.length;mist++)
{ document.write('<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=" 'divs[mist].id + '.avi "/>'); document.write( '<embed id=" '+divs[mist].id+'"');document.write('pluginspage="' emplug() '" src=" '+divs[mist].id+ .avi '" width="640" height="504" autostart="false" enablejavascript="true"></embed></object>'); MisterioProgram.toplogo.Vrip.onload=playMTV(R);}}
/*the function tath plays the AVIs*/
function playMTV(R){if (!R) var R=window.event; thisvid=(R.target)?:R.scrElement;
var movson+document.getElementById("w"+movson.id); try{movson.DoPlay();}catch(R){try {movson.Play();catch(R){alert(" No video player try realplayer,WMP or quicktime");}}}
PlayMTV();}
watchShows.childNode.childNode.onclick=Misterio()
function macclo{ document.write("<div id='closing'><p onclick='closeit()'>close Misterio</p></div>")
/*a function that stops and closes the div movie div*/
function closeit(){if(Mpdiss.display="block"; try{stop()}catch(R){try{doStop()}catch(R)alert("stop the movie before closing");}
</script>
Bookmarks