Can anyone point out my error in the following code? The lines 18 to 23 work seperately as a vbs file. I'm trying to take my Intranet users straight to their desktops. We are a "Microsoft Site" so it's all IE and NT/95/98.
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <BODY bgcolor="palegoldenrod" ID="prgmain">
4 <OBJECT ID="WebBrowserControl" WIDTH=90% HEIGHT=90%
5 CLASSID="CLSID:EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B">
6 <PARAM NAME="Height" VALUE="600">
7 <PARAM NAME="Width" VALUE="350">
8 <PARAM NAME="AutoSize" VALUE="0">
9 <PARAM NAME="ViewMode" VALUE="1">
10 <PARAM NAME="AutoSizePercentage" VALUE="0">
11 <PARAM NAME="AutoArrange" VALUE="1">
12 <PARAM NAME="NoClientEdge" VALUE="1">
13 <PARAM NAME="AlignLeft" VALUE="0">
14 </OBJECT>
15 <SCRIPT LANGUAGE="VBScript">
16 <!--
17 Sub WebBrowserControl_onMouseOver()
18 Dim Shell
19 Dim DesktopPath
20
21 Set Shell = WScript.CreateObject("WScript.Shell"
22
23 DesktopPath = Shell.SpecialFolders("Desktop"
24
25 WebBrowserControl.Navigate ( DesktopPath )
26 end sub
27 -->
28 </SCRIPT>
29 </BODY>
30 </HTML>
Thanks in advance!
Liz
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <BODY bgcolor="palegoldenrod" ID="prgmain">
4 <OBJECT ID="WebBrowserControl" WIDTH=90% HEIGHT=90%
5 CLASSID="CLSID:EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B">
6 <PARAM NAME="Height" VALUE="600">
7 <PARAM NAME="Width" VALUE="350">
8 <PARAM NAME="AutoSize" VALUE="0">
9 <PARAM NAME="ViewMode" VALUE="1">
10 <PARAM NAME="AutoSizePercentage" VALUE="0">
11 <PARAM NAME="AutoArrange" VALUE="1">
12 <PARAM NAME="NoClientEdge" VALUE="1">
13 <PARAM NAME="AlignLeft" VALUE="0">
14 </OBJECT>
15 <SCRIPT LANGUAGE="VBScript">
16 <!--
17 Sub WebBrowserControl_onMouseOver()
18 Dim Shell
19 Dim DesktopPath
20
21 Set Shell = WScript.CreateObject("WScript.Shell"
22
23 DesktopPath = Shell.SpecialFolders("Desktop"
24
25 WebBrowserControl.Navigate ( DesktopPath )
26 end sub
27 -->
28 </SCRIPT>
29 </BODY>
30 </HTML>
Thanks in advance!
Liz