Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 My Favorites Icon or Shortcut to Desktop
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

NiteOwl
Junior Member

Canada
403 Posts

Posted - 16 July 2005 :  14:34:42  Show Profile  Visit NiteOwl's Homepage
How can I embed a specific graphic to be used when someone decides to add my site to their favorites selection or to their desktop?



-=NiteOwl=-

dabugster
Junior Member

USA
168 Posts

Posted - 16 July 2005 :  16:19:25  Show Profile  Visit dabugster's Homepage  Send dabugster an AOL message  Send dabugster a Yahoo! Message
In you inc_header.asp page, after the last %> ad this code:

<center>
<SCRIPT>
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0)
  && (parseInt(navigator.appVersion) >= 4)) {
    var sText = "<U><SPAN STYLE='color:blue;cursor:hand;'";
    sText += "onclick='window.external.AddFavorite(location.href,";
    sText += "document.title);'>Add this page to your favorites</SPAN></U>";
    document.write(sText);
}
//-->
</SCRIPT>
</center>

It is a simple java script, so where it says Add this page to your favorites
just add <img src="yourpicture.jpg" height="#" width="#" alt="your picture">

Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 16 July 2005 :  17:06:24  Show Profile  Visit NiteOwl's Homepage
Thank you so much, I will try that now. BTW, will this also add the icon if someone just sends this page to the desktop or adds to favorites without using the new link?




-=NiteOwl=-

Edited by - NiteOwl on 16 July 2005 17:08:39
Go to Top of Page

dabugster
Junior Member

USA
168 Posts

Posted - 16 July 2005 :  17:26:10  Show Profile  Visit dabugster's Homepage  Send dabugster an AOL message  Send dabugster a Yahoo! Message
No that one is just to add to the favorites.

Sorry i didn't say that before, I don't know how to do the other one.
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 17 July 2005 :  00:35:43  Show Profile  Visit muzishun's Homepage
Make a small (I think 16x16 or 32x32) graphic of the icon you want your site to use. Then simply save it in your root directory as favicon.ico. That'll do the trick.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 17 July 2005 :  10:41:22  Show Profile  Visit NiteOwl's Homepage
Cool, I will try that also, thanks guys!

-=NiteOwl=-
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07