• Notice regarding image hosts and attachments. See here.

Quick HTML Question

Permabanned
Joined
22 Apr 2007
Posts
1,805
I've seen this done before but not sure how as I've never needed to know, but now I do :)

Click on an icon within a webpage and it will open an application, be it Word, Excel, etc.

Can someone give me some pointers?
 
You could simple link to a .xls/.doc file within your page, like so:

Code:
<a href="../your/dir/file.xls" title="Excel Doc"><img src="../your/dir/icon.gif" alt="Icon for Excel" /></a>

Depending on the users local settings, this would bring up the dialog "Open/Save As" etc, off the top of my head I'm not sure whether it would open the program directly, worth a shot though.

Hope that helps.
 
Thats the thing. I don't want to link to a file as such, just the application. So when they click on the link it will open a blank word doc, etc.
 
No idea about that then sorry. If push comes to shove, use the above method and link to a blank doc. I'm sure someone will be able to shed some light on it for you though.
 
ok, got it working.

What I've done is make a shortcut to word, etc from within my local root. This is a .ink file and I've called it word.ink.

Then just done this

<a href="links/Word.lnk"><img src="images/word.gif" border="0"></a>Microsoft Word<br>(Word Processor)
 
The best way is is to create a new .doc file, and "open" that. As said above.

Unless of course you can convince the browser to scan the computer/registry to find office installations ;)
 
Back
Top Bottom