Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Sedo.com

exitpop script

Status
Not open for further replies.

Dingo

Level 5
Legacy Platinum Member
Joined
Dec 3, 2002
Messages
273
Reaction score
0
Can anyone point me to where I might find a script for

popunder on exit "do you want to make this your home page" box? yes or no.

Thanks
Dingo
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
**EDIT**

wrong script... :shy:
 

izopod

Level 8
Legacy Platinum Member
Joined
Jun 6, 2002
Messages
2,234
Reaction score
2
Originally posted by Dingo
Can anyone point me to where I might find a script for

popunder on exit "do you want to make this your home page" box? yes or no.

Thanks
Dingo

Before you put a pop-under on your site, ask yourself this question: Do I like going to other sites where I'm asked if I want to alter my browser homepage selection??? My personal belief on pop-ups/unders is that they hurt more than help, unless you have a porn site where you'd almost expect them.

Either way, that was nice of brn2h8 to give you that script.

izopod
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
**EDIT**

wrong script, again...
 

izopod

Level 8
Legacy Platinum Member
Joined
Jun 6, 2002
Messages
2,234
Reaction score
2
Originally posted by brn2h8
I didn't read your thread properly. The previous script is for exit popup's, not popups requesting bookmarks. Below is that script:

Remember to edit the URL and title...


Actually I think dingo was wanting a pop-up up that asked if you wanted to make the page your homepage.... not to bookmark it.

izopod
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
D'oh...

I feel like such a moron. I think I have one of those also. I'll check and post it if found... :D

Originally posted by izopod


Actually I think dingo was wanting a pop-up up that asked if you wanted to make the page your homepage.... not to bookmark it.

izopod
 

izopod

Level 8
Legacy Platinum Member
Joined
Jun 6, 2002
Messages
2,234
Reaction score
2
Originally posted by brn2h8
D'oh...

I feel like such a moron. I think I have one of those also. I'll check and post it if found... :D


Nah, you were just trying to help. I am going to throw some DNF your way for the trouble. I may use the bookmark script on one of my sites.

izopod
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
Thanks guys...

The only homepage scripts that I have are below:

1. Click link to make homepage
2. Auto homepage - no popups though

If you're interested in these, please let me know. I would have to upload the auto homepage script.
 

Dingo

Level 5
Legacy Platinum Member
Joined
Dec 3, 2002
Messages
273
Reaction score
0
Originally posted by brn2h8
Thanks guys...

The only homepage scripts that I have are below:

1. Click link to make homepage
2. Auto homepage - no popups though

If you're interested in these, please let me know. I would have to upload the auto homepage script.

brn

does the homepage script have a "yes or no" option or just "ok"
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
I believe the the link to make homepage asks "yes or no", but the auto page doesn't ask crap. It will just change their default page without even asking them. This makes alot of people mad, since alot of users don't even know how to change their homepage...
 

Dingo

Level 5
Legacy Platinum Member
Joined
Dec 3, 2002
Messages
273
Reaction score
0
Originally posted by brn2h8
I believe the the link to make homepage asks "yes or no", but the auto page doesn't ask crap. It will just change their default page without even asking them. This makes alot of people mad, since alot of users don't even know how to change their homepage...

Yeah I certainly don't want the auto one.
I am interested in the opt in opt out one though.
How can I get this from you?
 

dtobias

Level 6
Legacy Platinum Member
Joined
Sep 1, 2002
Messages
590
Reaction score
1
Fortunately, the browser I use (Mozilla) ignores sites that attempt to get it to change the browser startup page, so such attempts have no effect here.
 

Nexus

DNF Addict
Legacy Exclusive Member
Joined
Sep 11, 2002
Messages
1,495
Reaction score
0
Unless there is a BUG, there is NO WAY for Javascript to automatically make another page your homepage in IE. There is a method that puts up a box that asks you YES or NO, but that is all. If "automatic" homepage resetting was an option, everyone would do it.

Also, Dingo, your original question seemed a little odd. You said: "popunder on exit "do you want to make this your home page" box? yes or no." You're probably looking for an alert box, and not a "pop-under", especially if you're just looking for "yes/no".

Here are some basics:
1. To create an action as a user LEAVES a page, you need to use "onunload" as an attribute of your "body" tag. So, for example, it would look like this:

Code:
<html>
<body bgcolor="white" 
      text="black" onunload="alert();">
My Page Text
</body>
</html>
The code above creates a blank "alert" box.

2. Now, you can do one of two things. #1. Ask a user if they want to make your page their homepage. #2. Ask a user if they they would like to bookmark your site (and then do it if they say "yes").

The code to ask a user if they'd like to make someone's page their homepage is this simple javascript command: "setHomePage('http://www.sample.com/mypage.html');" So, if you wanted, you can combine the "onunload" attribute with the "setHomePage" function. Note: This function is only in IE.

Code:
<html>
<body bgcolor="white" 
  text="black" 
  onunload="setHomePage('http://www.sample.com/');">
My Page Text
</body>
</html>

So, this gets you what you want. If you want to do the bookmark thing, its a little more complicated if you're asking first. If you want to force them to decide by "cancelling" the "add bookmark" dialogue, just replace the "setHomePage" function with this: "window.external.window.external.AddFavorite('http://www.sample.com/mypage.html','Title of Link')"

Example:
Code:
<html>
<body bgcolor="white" 
   text="black" 
   onunload="window.external.AddFavorite(
    'http://www.sample.com/',
    'Title of Link');">
My Page Text
</body>
</html>
Now you can ruin someone's browsing experience with conviction! :) Just kidding.

This code hasn't really been tested, but you shouldn't run into any problems.

~ Nexus
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
Here's the code to make a link requesting your users to change their default page. Just copy this code into the body of your HTML document where you would like the text link to be.

<script language="javascript" type="text/javascript">
<!-- Startpage script

var s_url="http:/www.yourwebsite.com";
var s_mouseo="Startpage";
var s_text="Make Us Your Homepage";
var s_nn="To startpage:\n1.) Go to Edit\n2.) Go to Preferences...\n3.) Choose Navigator\n4.) Write "+ (s_url) +" in the home page location field";
var s_op="To startpage:\n1.) Go to Navigation\n2.) Go to Set home page...\n3.) Write "+ (s_url) +" in the Global home page field";
var s_other="Unable to startpage";

// do not edit below this line
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
document.write('<a href="javascript:void(0);" ');
document.write('onclick="this.style.behavior=');
document.write("'url(#default#homepage)'");
document.write("; this.setHomePage(s_url);");
document.write('" onmouseover="window.status=');
document.write("(s_mouseo); return true");
document.write('">'+ s_text +'</a>'); }
else if (navigator.appName == "Netscape") {
document.write('<a href="javascript:void(0);" onclick="alert(s_nn);">'+ s_text +'</a>'); }
else if (navigator.appName == "Opera") {
document.write('<a href="javascript:void(0);" onclick="alert(s_op);">'+ s_text +'</a>'); }
else {
document.write(""+ s_other +""); }
// do not edit above this line -->
</script>
<noscript>Unable to startpage</noscript>
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom