Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto play a .dat file through media player

Status
Not open for further replies.

bigbird3156

Programmer
Feb 20, 2001
183
AU
Hi, I posted this question earlier but it seems to have disapeared so soory if I doubled up...

I am creating a HTML based information cd that has 2 videos in .dat format that I want to play...

basically using javascript (I assume this is what I would use) I want to create a simple link on a html page that will call up windows media player (externally, not in the browser) and play the particular .dat file.

any ideas?

[wiggle]The Bird from Down Under- Bigbird 3156
Programmer?? - I thought the option was pretender not programmer!![jester]
 
Code:
<a href="datFileName.dat">Click here</a>

Of course, each user would need to make sure that the ".dat" extension was registered to their WMP... but if you can't be sure of this, perhaps converting your ".dat" files to a more well-known format (e.g. wmv, etc) would be a better idea.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top