AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old May 29, 2004, 14:22   #1
Младенец
 
Join Date: Mar 2003
Location: SJ/SF
Posts: 7
Rep Power: 0
Reputation: 10
как лучше посадить иконку на desktop клиента?

хочу иметь линк (button) на своей страничке, если удаленный клиент нажмет на нее - иконка с линком на некий (приятный клиенту) web site сядет на его desktop.
какой вариант кода лучше для виндуза? (red hat linux, Mac??)
bVahan2 is offline   Reply With Quote Quote selected
Old May 29, 2004, 14:45   #2
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: Jul 2002
Location: /dev/null
Posts: 250
Rep Power: 7
Reputation: 10
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;
_ WOLF _ is offline   Reply With Quote Quote selected
Old May 29, 2004, 16:46   #3
Младенец
 
Join Date: Mar 2003
Location: SJ/SF
Posts: 7
Rep Power: 0
Reputation: 10
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 ?
bVahan2 is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Какой модем лучше взять? Bizon Hardware 15 Nov 13, 2002 21:28
ЧТо лучше: повеситься, застрелиться... Lyoshkin Psychology and Philosophy 78 Oct 30, 2002 06:27
Show desktop Tivin Fun 1 Sep 23, 2002 18:54
Разгоним все!!!!! DRUID Fun 0 Jul 22, 2002 14:08
dlinniy flame ;) m4ng0 Test 0 Jun 5, 2002 11:16


All times are GMT. The time now is 00:57.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link