Forums

This topic is locked

Intelligent Add To Favorites

Posted 13 May 2003 18:31:42
1
has voted
13 May 2003 18:31:42 Greg Crockatt posted:
I want a script or some dhtml that will allow me to offer a popup to my visitors requestiong they add my site to their favorites.. However, I want this popup script to be intelligent enough to recognize that the user ALREADY HAS my site IN their favorites and thus NOT popup.

I don't want someone who has already bookmarked me to continue to se the popup. Sort of a friendly bookmark us popup..

Appreciate any help on this.. Thanks.

Replies

Replied 21 May 2003 20:20:30
21 May 2003 20:20:30 Jonathan Danylko replied:
No offense, skinNCNmaster, but if I had a pop-up in my face every time I came to a web site, I wouldn't go to the web site any more.

If you selected yes (add the bookmark) and the next time I visit the web site, a dialog box would not appear, correct?

Just my usability attitude showing through..But...On with the show... <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

<pre id=code><font face=courier size=2 id=code>
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
&lt;!-- Begin
if ((navigator.appName == "Microsoft Internet Explorer" && (parseInt(navigator.appVersion) &gt;= 4)) {

var url="www.myweb.something";
var title="the title";

document.write('&lt;A HREF="javascript:window.ext');
document.write('ernal.AddFavorite(url,title);" ');
document.write('onMouseOver=" window.status=');
document.write("'add this site to your favorites'; return true ";
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ";
document.write('"&gt;add this site to your favorites&lt;/a&gt;');
} else {
var msg = "Don't forget to bookmark us!";
if(navigator.appName == "Netscape" msg += " (CTRL-D)";
document.write(msg);
}
// End --&gt;
&lt;/script&gt;
</font id=code></pre id=code>

To check whether it's already IN the list....Hmm...need to think about that. Unless anyone has anything else to add.

Hope this helps....

L8R,
Vitoman, M CIW D, MMCP
----------------------------------
He conquers who endures. - Persius
Replied 21 May 2003 22:12:47
21 May 2003 22:12:47 Greg Crockatt replied:
right I wouldnt go to a site that popped it up on me every time either..

Script looks good.. but the main thing I'm looking for is the ability to only popup the box once per user. Preferrably depending on whether the url exists in their favorites... but secondarily I guess it would be ok to popup once per ip address... not offering itsself to the same ip twice..?

Reply to this topic