Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thumbnail control
Message
From
18/11/2002 14:25:22
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
18/11/2002 05:51:55
General information
Forum:
Internet
Category:
DHTML
Miscellaneous
Thread ID:
00723454
Message ID:
00723984
Views:
7
Hi Len,

Thanks for the very informative reply. I'd found a solution prior to your response. It involved some VBscript in the window_load() event. As you said, there's more than one way to skin a cat :) I'll give your suggestions a try.

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.htm
>The description of the thumbnail viewer is about 3/4's of the way down
Previous
Reply
Map
View

Click here to load this message in the networking platform