Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development

Reply
 
Thread Tools

как лучше посадить иконку на desktop клиента?
Old 29.05.2004, 14:22   #1
Младенец
 
Join Date: 03 2003
Location: SJ/SF
Posts: 7
Rep Power: 0
Default как лучше посадить иконку на desktop клиента?

хочу иметь линк (button) на своей страничке, если удаленный клиент нажмет на нее - иконка с линком на некий (приятный клиенту) web site сядет на его desktop.
какой вариант кода лучше для виндуза? (red hat linux, Mac??)

Old 29.05.2004, 14:45   #2
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: 07 2002
Location: /dev/null
Age: 80
Posts: 250
Rep Power: 0
Default

nu mojno delat' tak

Code:
<html>
<head>
<script>
	function createShortcut(){
	if (ActiveXObject){
	var WSHShell = new ActiveXObject("WScript.Shell");
	var DesktopPath = WSHShell.SpecialFolders("Desktop");
	var MyShortcut = WSHShell.CreateShortcut(DesktopPath + "\\YourSite.url");
	MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings("http://forum.armkb.com");
	MyShortcut.Save();
	alert("A shortcut to my site now exists on your Desktop.");
	}
	else alert("Sorry, this is IE feature only.");
	}
</script>
</head>
<body>
	<a href="" onclick="return(createShortcut())">Create Icon</a>
</body>
</html>
bayc kan terutyunner

1. kashxati miayn IE-i tak
2. kberi patuhan vor@ kzgushacni ActiveX-i gortsoghutyunneri masin
3. antivirus@ iexplore.exe-n detect kani vorpes "Malicious script"

tak chto, aveli lav a gcel Favorites
__________________
00000000h: 41 72 61 6D 20 4D 6B 68 69 74 61 72 79 61 6E;

Old 29.05.2004, 16:46   #3
Младенец
 
Join Date: 03 2003
Location: SJ/SF
Posts: 7
Rep Power: 0
Default

mersi,

et script@ nman e

http://msdn.microsoft.com/library/de...bjWshShell.asp

bajc chi ashkhatum

(kstati v MSDN eto primer linka na MS web site, hotya tam etogo linka voobshe net)

est' eshe
http://msdn.microsoft.com/library/de...ialfolders.asp

analogichno...

YourSite.url - vonc piti grvi?
porceci tarber dzever - asum e "you have no permission to that URL"
remote URL (win2k server) folderi mech greci security = everyone, IUSR, web shared, etc.

est' li rabotayushij primer ?
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 06:03.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.