>Hi All,
>
>I am trying to create an html page that can show thumbnails of images and other document types (Word, Excel, etc.)
>
>I've discovered the class to do this but after placing the following line in the body of my page, what do I need to do so that the thumbnails show?
>
>
<OBJECT border="1" id="Thumbnail" classid=clsid:71650000-E8A8-11D2-9652-00C04FC30871></OBJECT>
>
>I know that I should be setting Thumbnail.DisplayFile("some document here") but where on my page should this be put?
>
>BTW, I'm a newbie to this HTML stuff.
>
>TIA
>
>Mike
Using Win98 & IE6 I have a different CLSID for the thumbnail control.
The following HTML file may be of help - in addition you will need 3 additional files in the root directory of C: (test1.html, test1.jpg, test2.jpg - though you can change these if you change the file names).
The file shows three methods of displaying the thumbnail, script in the html, use of a link & use of a button. There's many other methods too.
The script after the object tag displays a thumbnail immediately, the next link tries to display a non-existent file so the thumbnail view should disappear, the next link displays a thumbnail of a jpg file as does the button to give you another method of displaying the thumbnail.
<html>
<head>
<script language="JavaScript">
function ThumbnailReady()
{
Thumbnail.style.display = "";
}
function test( flenme )
{
Thumbnail.style.display = "none";
Thumbnail.displayFile( flenme ) ;
}
</script>
<script language="JavaScript" for="Thumbnail" event="OnThumbnailReady">
ThumbnailReady();
</script>
</head>
<body>
<object id=Thumbnail classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92" style="display:none"></object><br>
<script>
test( "c:\\test1.html" )
</script>
<a href="javascript:test('c:\\test1.html2')">This</a> should fail & thumbnail disappear<br>
<a href="javascript:test('c:\\test1.jpg')">This</a> should work<br>
<button onclick="test('c:\\test2.jpg')">And This</button>
</body>
</html>
This link gives a good description of the implementation in Windows Explorer.
http://www.clipcode.net/content/shell_guide/11_webview.htmThe description of the thumbnail viewer is about 3/4's of the way down
Len Speed