...

View Full Version : duck tape



riptide
01-31-2007, 11:07 PM
I don't know if this right or if this will work but....see if there is somthing wrong with this.
I'm trying to make a popup div that plays the movie of what you clicked on and has the links to all the shows from the same season as links in the navi




<script language="javascript" type="text/javascript" >

/*function to make the new movie <div> and find what HTML <li> was clicked*/

function misterio(){
var Mpdiss=document.get.ElementById("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 plugin*/
function plugoff(){var tork=document.getElementById("plugs");
tork.style.display="none"}
setTimeout("plugoff():"18000);}


/*function that gets the right clasid for the object tag and makes another div so the user can go to the sites if they don't have a plugin*/

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 embed 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="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 that 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>

riptide
02-01-2007, 02:19 PM
heay I'm just asking for a bit of help.

neomaximus2k
02-01-2007, 06:17 PM
can you explain a little more as to what you are trying to do, unsure what you are trying to achieve here

riptide
02-01-2007, 07:07 PM
you you are on a web page and there is a list of links. lets say to a show. you pick a show from season one. a div pops up and in it it plays the show with the controls. for quick time or what every you have.

the div has a section to the left where a link for all the other shows in the same season are. when you click on them they play in the div.

the first function makes the div and hides it. it also gets the right show and season to be displayed. there are functions to get the right codebase classid and pluginspage for the object and embed tag.

and a code that writes out the object and embed tags.

I the stuff in the /* */ explains it but when I edited my post the changes didn't work :confused:

_Aerospace_Eng_
02-01-2007, 07:35 PM
Okay please try typing in proper English. Its really hard to understand you. Look in the Multimedia forum under the thread that is a sticky titled "Embedded Windows Media Player".

riptide
02-03-2007, 08:11 PM
I see. any other problems. I'll have that one fixed.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum