View Full Version : need an add to favorites pop up
-dark
02-24-2006, 01:17 AM
i just need a simple pop-up that says "would you like to add us to your favorites"
thx in advance,
-dark
ps- i do like pop-ups
felgall
02-24-2006, 09:09 PM
Why not just add the text:
In Opera press CTRL-T to Bookmark.
In Firefox, Netscape, and Mozilla press CTRL-D to bookmark.
Only Internet Exploder allows access to add directly.
_Aerospace_Eng_
02-24-2006, 09:29 PM
With all of these popups you have requested your site is going to end up looking like crap.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">
var detect = navigator.userAgent.toLowerCase();
var browser,thestring;
var message = confirm("Would you like to bookmark our site?");
if(message)
{
bookmarksite('mySite','http://www.codingforums.com');
}
function bookmarksite(title, url){
if(checkIt('msie'))
{
window.external.AddFavorite(url, title);
}
else if(checkIt('firefox'))
{
window.sidebar.addPanel(title, url, "")
}
else if(checkIt('netscape'))
{
alert('You need to press CTRL + D to bookmark our site.');
}
else if(checkIt('opera'))
{
alert('You need to press CTRL + T to bookmark our site.');
}
else
{
alert('In order to bookmark this site you need to do so manually through your browser.');
}
}
function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
}
</script>
</head>
<body>
</body>
</html>
-dark
02-25-2006, 12:03 AM
ok, thanks lots!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.