CD-Based Web "Eject CD" Code?

R

Russell

I create custom Drivers and Software support CDs for custom-made computers
that we sell, using CD-Based webs with FP2003. Works great, but I have a
question. I currently have an interactive button on a DWT non-editable
region that is titled "Exit CD", using the following javascript code:

<a href="javascript:window.close();">
<img border="0" id="img16"
src="../../images/buttons/interactive/exitcd1.jpg" height="20" width="100"
alt="Exit CD" fp-style="fp-btn: Embossed Rectangle 5; fp-font: Verdana;
fp-font-style: Bold; fp-font-size: 8; fp-font-color-hover: #000080;
fp-proportional: 0; fp-orig: 0" fp-title="Exit CD"
onmouseover="FP_swapImg(1,0,/*id*/'img16',/*url*/'../../images/buttons/inter
active/exitcd2.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img16',/*url*/'../../images/buttons/intera
ctive/exitcd1.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img16',/*url*/'../../images/buttons/inter
active/exitcd3.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img16',/*url*/'../../images/buttons/interac
tive/exitcd2.jpg')"></a>

This works great, but I'd like for the button to be able to both close the
window AND eject the CD from the drive when the person has finished using
the CD. Is there some sort of code that can accomplish this, and if there
is, can it differentiate between the drive that the CD is in and another
optical drive, if that particular computer has more than one CD/DVD drive?

This isn't something critical, just a nicety I'd like to add if anyone knows
of an elegant way to do this.

Thanks for any suggestions,
Russ
 
T

Thomas A. Rowe

The following might offer a solution:

http://www.6bytes.com/autoruncd.html

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top