Add To Favorites Button
Skip Navigation Links.

Add To Favorites Button

Skip Navigation LinksHome :: Classic ASP :: Add To Favorites

Here's a simple Vb function you can use on active server pages to allow users to add your webpage to their favorites (IE only so you won't see it if you don't have it!).

Call like this: WriteFavorites
Returns this: add to favorites Try clicking it.
Also requires: images/addfav.gif on your server

<%
Sub WriteFavorites()
'display 'add to favorites' button
    If InStr(1, Request.ServerVariables("HTTP_USER_AGENT"), "msie", vbTextCompare) Then
        Response.Write "<A HREF=""#"" onClick='window.external.AddFavorite(document.location.href, document.title);'>"
            Response.Write "<IMG SRC=""images/addfav.gif"" alt=""add to favorites"" border=0>"
  

The rest of this page is hidden, you must be a member to view it

To become a member and get immediate access to the course please join here Free!

Already Enrolled? please click here to Login

Next >> Request Collection
top of page
all content ©1996/2012 BennySutton.com
all images © their respective owners This site uses Thumbshots previews