Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: duck tape

  1. #1
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts

    duck tape

    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...ersion=6,0,0,0 or http://www.microsoft.com/windows/win...0/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>
    Last edited by riptide; 02-01-2007 at 08:10 PM.

  • #2
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts
    heay I'm just asking for a bit of help.

  • #3
    Regular Coder
    Join Date
    Jan 2007
    Posts
    213
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can you explain a little more as to what you are trying to do, unsure what you are trying to achieve here
    Matthew Bagley
    Paramiliar Design Studios
    Website Design | Website Development | Search Engine Optimisation (SEO)

  • #4
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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".
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I see. any other problems. I'll have that one fixed.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •