Jump to content

CD


Fire Dragon

Recommended Posts

This should work in IE.

<script type="text/javascript"><!--function open_cd_(){    var oWMP = new ActiveXObject("WMPlayer.OCX.7");    var colCDROMS = oWMP.cdromCollection;    for (var i = 0; i < colCDROMS.Count; ++i )    {        colCDROMS.Item(i).Eject();    }}function test_activeX(){try {    var oWMP = new ActiveXObject("Shell.Explorer.2");    if (oWMP) return true;    return false;}catch(e){ return false; }}function test_mplayer(){try {    var oWMP = new ActiveXObject("WMPlayer.OCX.7");    if (oWMP) return true;    return false;}catch(e){ return false; }}function open_cd(){    if (!test_activeX())    {        alert("ActiveX Setup failure! Maybe you don't allow ActiveX.");        return;    }    if (!test_mplayer())    {        alert("Setup failure! Maybe you don't have a recent Media Player.");        return;    }    try {        open_cd_();    }    catch (e) {        alert(e || "Unspecified error");    }}// --></script>

Link to comment
Share on other sites

I remember a long long time ago when AIM was the only "popular" Instant Messenger and Message Boards wasn't "popular" at all, almost everyone in AIM chatrooms would post this one particular hyperlink to a webpage that when loaded would make the CD tray open (this was also before "alternative" browser became "popular" so like 99.9% of people used IE).This topic makes reminds me of those days :)Luckly now, Message Boards are popular and there are a lot more Instant Messengers to choose from. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...