|
Add To Favorites Button
Home :: 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: 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 itTo become a member and get immediate access to the course please join here Free!
Next >> Request Collection
|
|