By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,039 Members | 1,824 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,039 IT Pros & Developers. It's quick & easy.

Timer to launch VB code?

P: 118
I am making a CD based website. I have made the code to open the CD tray... (below)

Expand|Select|Wrap|Line Numbers
  2. <!--
  4. Set oWMP = CreateObject("WMPlayer.OCX.7" )
  5. Set colCDROMs = oWMP.cdromCollection
  7. if colCDROMs.Count >= 1 then
  8.         For i = 0 to colCDROMs.Count - 1
  9.                 colCDROMs.Item(i).Eject
  10.         Next ' cdrom
  11. End If
  13. -->
  14. </SCRIPT>
This code has to be placed in the <head> tag but will execute automatically on the loading of the page. Is it possible to set a timer for it to execute after 60 seconds, for example; or on the click of a button?


Apr 25 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 5K+
P: 8,434
I'd suggest you also try asking in the HTML forum. This sounds like their kind of question.
Apr 25 '07 #2

Expert 100+
P: 2,364
Good point, also look in JavaScript...
Apr 26 '07 #3

Expert 5K+
P: 8,434
Good point, also look in JavaScript...
Yeah, wouldn't hurt I suppose.

If anyone gives you any stick about multiple posts, tell 'em we sent you. (We'll deny it, of course. :D)
Apr 26 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.