![]() |
|
|
|
|
![]() |
|
LinkBack | Thread Tools |
Rating: ![]() |
Certified Pre-Owned
Join Date: Aug 2002
Location: Nanny State
Posts: 3,132
|
html newbie question about using a thumbnail image to launch video content...
Hi:
New with html and building a small table of thumbnail images that launch images and other content. All of my images are working...but I have a thumbnail snapshot of a video I wish to launch. The snapshot appears correctly in the table, I think my line of "code" is correct, and all of the images, files, etc. are in the same folder. When I click my thumbnail it launches windows media player, but gives me the following message: "Windows Media Player cannot play the file. If the file is on another computer, verify that you are connected to the network. If you typed a path, verify that it is correct. If the problem persists, the server might not be available." Here is my html line, see anything obvious? td a href="trackday.wmv" img src="trackday.jpg-thumb.jpg" border="3" /a /td (I had to remove all the < characters around the tags so it would display properly in this post) My browser is Firefox. Thanks BG
__________________
'84 Carrera Coupe Last edited by BGCarrera32; 10-22-2008 at 06:17 PM.. |
||
![]() |
|
The Unsettler
|
Try a specific vs relative url.
http://whateveryoursite.com/whateverfolder/trackday.wmv would be specific that img src tag looks funky, double file extensions? Post the full link, easier to help.
__________________
"I want my two dollars" "Goodbye and thanks for the fish" "Proud Member and Supporter of the YWL" "Brandon Won" |
||
![]() |
|
Registered
|
Use the [ html ] [ /html ] tags to put code in your post. Like this..
HTML Code:
<td> <a href="trackday.wmv"><img src="thumb.jpg" border="3"></a></td>
__________________
ßrandon |
||
![]() |
|
User
Join Date: Feb 2006
Location: Oakland
Posts: 940
|
Based on the error message, your HTML seems correct. This is a WMP error on your client.
http://www.microsoft.com/windows/windowsmedia/player/9series/playererrors.aspx If your link was wrong (invalid path/file in your href attribute), you'd get a "file not found" error instead.
__________________
82 Targa |
||
![]() |
|
Slackerous Maximus
Join Date: Apr 2005
Location: Columbus, OH
Posts: 18,164
|
What he said.
If the .wmv file is in a different folder(or on a different server), you need to specify the path.
__________________
2022 Royal Enfield Interceptor. 2012 Harley Davidson Road King 2014 Triumph Bonneville T100. 2014 Cayman S, PDK. Mercedes E350 family truckster. |
||
![]() |
|
Certified Pre-Owned
Join Date: Aug 2002
Location: Nanny State
Posts: 3,132
|
Quote:
When I chase this a little deeper in Windows Media Player it says: To enable all network protocols On the Tools menu, click Options, and then click the Network tab. In the Streaming protocols area, select all the protocol check boxes. And I do a tools>options>...and find no "Network tab" ![]() The files are all right there together in one folder on my desktop. I can go into the folder and double click my trackday.wmv video and it launches and plays fine.
__________________
'84 Carrera Coupe |
||
![]() |
|
![]() |
User
Join Date: Feb 2006
Location: Oakland
Posts: 940
|
Instead of pointing your link directly to the .wmv file, have it point to another .htm file (called trackdayvideo.htm in this example) that opens in a pop up:
HTML Code:
<a href="trackdayvideo.htm" onClick="window.open('trackdayvideo.htm','trackdayvideo','location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,height=445,width=560'); return false;"> <img src="trackday.jpg-thumb.jpg" border="0"> </a> HTML Code:
<object id="MediaPlayer" width=500 height=400 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab..."> <param name="filename" value="trackday.wmv"> <param name="Showcontrols" value="True"> <param name="autoStart" value="True"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="trackday.wmv" name="MediaPlayer" width=500 height=400></embed> </object>
__________________
82 Targa |
||
![]() |
|
Certified Pre-Owned
Join Date: Aug 2002
Location: Nanny State
Posts: 3,132
|
Thanks...the video not launching ended up being my folder name was "web class" and switching it to "web_class" did the trick (and switching it to match in my code.)
Oddly enough, my site works fine in Firefox, and then won't display my thumbnails in IE 6. My IT guy said that IE really needs to pull the file from a webserver...how do ever check your work locally without running a webserver program on your PC? Seems kinda silly...
__________________
'84 Carrera Coupe |
||
![]() |
|
The Unsettler
|
Quote:
A webserver is a specific suite of software that is intended to serve web pages. Why would you want to evaluate your work outside of the environment that it is created for? Look at and get MAMP. It's free.
__________________
"I want my two dollars" "Goodbye and thanks for the fish" "Proud Member and Supporter of the YWL" "Brandon Won" |
||
![]() |
|