Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 29.05.2004, 15:22   #1
Младенец
 
Join Date: 03 2003
Location: SJ/SF
Posts: 7
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default как лучше посадить иконку на desktop клиента?

хочу иметь линк (button) на своей страничке, если удаленный клиент нажмет на нее - иконка с линком на некий (приятный клиенту) web site сядет на его desktop.
какой вариант кода лучше для виндуза? (red hat linux, Mac??)
Reply With Quote
Old 29.05.2004, 15:45   #2
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: 07 2002
Location: /dev/null
Age: 72
Posts: 250
Downloads: 0
Uploads: 0
Reputation: 0 | 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
Reply With Quote
Old 29.05.2004, 17:46   #3
Младенец
 
Join Date: 03 2003
Location: SJ/SF
Posts: 7
Downloads: 0
Uploads: 0
Reputation: 0 | 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 With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 06:43.


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