Exit popup code needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BradM
    Confirmed User
    • Dec 2003
    • 3397

    #1

    Exit popup code needed

    Hey folks hoping you can give me a hand. Programmer here says it is impossible to do, and I am pretty sure he's wrong so let's embarrass him a bit ;)

    I need some code that will launch an exit ONLY if the browser has been closed or the domain has been left. So they go to www.xxx.com and then go to www.www.com, they would get it.

    I don't want it to launch if they go from the index page to another page on the site.

    Anyone know of anything? I googled but nothing exactly like this.
    Thanks!
  • {fusion}
    Confirmed User
    • Sep 2003
    • 1650

    #2
    do a sneeky popunder

    Comment

    • jimmyf
      OU812
      • Feb 2001
      • 12651

      #3
      I'd 2 have that code also, when they leave the domain...
      Epic CashEpic Cash works for me
      Solar Cash Paysite Plugin
      Gallery of the day freesites,POTD,Gallery generator with free hosting

      Comment

      • DutchTeenCash
        I like Dutch Girls
        • Feb 2003
        • 21684

        #4
        hahahahahahahaha LANGUAGE="hahahahahahahahahaha">
        var goneaway;

        function showPopup() {
        if( goneaway ) {
        NewWindow=windowhahahahahaha("http://www.yoursiteexitpopup.com"); }
        }
        </hahahahahahahaha


        </head>
        <body bgcolor="FFE9B8" topmargin="0" marginheight="0" hahahahahahahaha"goneaway=true" ONUNLOAD="showPopup();">


        make sure you add the onclick false on every link you DONT want the exit to popup :

        <a href="members/pictures.php" ONCLICK="goneaway=false;">

        ICQ 16 91 547 - SKYPE dutchteencash
        bob AT dutchteencash DOT com
        ... did you see our newest Sweet Natural Girl Priscilla (18)?

        Comment

        • DutchTeenCash
          I like Dutch Girls
          • Feb 2003
          • 21684

          #5
          that looks cool drop me a line to get the code ok bob AT thinkx DOT tv

          ICQ 16 91 547 - SKYPE dutchteencash
          bob AT dutchteencash DOT com
          ... did you see our newest Sweet Natural Girl Priscilla (18)?

          Comment

          • BradM
            Confirmed User
            • Dec 2003
            • 3397

            #6
            Thanks Bob, emailing you now!

            Comment

            • QualityMpegs
              Confirmed User
              • Feb 2003
              • 3521

              #7
              Your programmer said that's impossible?

              PAYSITES CATEGORIZED AND THUMBNAILED BY NICHE - 69767780

              Comment

              • Tom_PMs
                Confirmed User
                • Jun 2004
                • 2049

                #8
                That looks like a normal exit popup code. If I go from index to page 1 then back button, it'll pop even if I'm on the same domain.

                Or, if that code is only on index, and I go to page 1 then close browser, it wont pop.

                I dont think thats the answer you're looking for, but I may be just sleepy.

                You've read it, you can't unread it.

                Comment

                • BradM
                  Confirmed User
                  • Dec 2003
                  • 3397

                  #9
                  Originally posted by QualityMpegs
                  Your programmer said that's impossible?
                  Hahaha. Tell me about it.

                  Comment

                  • Jman
                    Already an AI veteran
                    • Sep 2003
                    • 22838

                    #10
                    Originally posted by BradM
                    Hahaha. Tell me about it.
                    He comes from and Island, I beleive he does not go out that much
                    Orkestrait NSFW AI
                    FantasyXXX.AI
                    Email: [email protected] TG: @jman1216

                    Comment

                    • BradM
                      Confirmed User
                      • Dec 2003
                      • 3397

                      #11
                      Bump. Thanks to Bob for the code but it's not exactly what I need. This one is a bit flawed... having to add the onclick to all links is not really an option.

                      I'm going to keep hunting too.

                      Comment

                      • Tom_PMs
                        Confirmed User
                        • Jun 2004
                        • 2049

                        #12
                        Just thinking out loud here.
                        If you want to pop a window when a browser is trying to *leave* a domain, you'd have to be examining the URI that is being requested, and before it's displayed.

                        That is, IF currently on mydomain AND IF new action will exit mydomain, THEN pop.

                        So you cant really examine the current state, you'd have to examine a future state when a link or button is clicked.

                        You could probably do a custom mod_rewrite script.
                        Use the rewriterule to pass the request_uri as a query_string to the script, then do an IF THEN ELSE type of thing..

                        There ya go, lol

                        You've read it, you can't unread it.

                        Comment

                        • BradM
                          Confirmed User
                          • Dec 2003
                          • 3397

                          #13
                          lol Tom I haven't touched any sort of scripting in a long ass time. You ALMOST lost me.

                          The question is... do I feel like programming. ;)

                          Comment

                          • Tom_PMs
                            Confirmed User
                            • Jun 2004
                            • 2049

                            #14
                            Hmm actually I doubt that would cover it anyway, lol. Like I said just thinking out loud.

                            If you were to click a link off your domain, your htaccess wouldnt kick in anyway. Maybe you can use php or a cookie, I dunno.

                            You've read it, you can't unread it.

                            Comment

                            • PrivateIvy
                              Confirmed User
                              • Oct 2003
                              • 4257

                              #15
                              In your header you put this:

                              hahahahahahahaha language="hahahahahahahahahaha">
                              <!--
                              var exit=true;
                              function xit()
                              {
                              if (exit)
                              open("http://www..com","copy");
                              }
                              //-->
                              </hahahahahahahaha

                              Then in the body tag put this:

                              onunload="xit()"

                              Then on every other link that you don't want to pop that window you add :

                              onclick="exit=false


                              Very simplified way to do this:



                              Ivy

                              Comment

                              • PrivateIvy
                                Confirmed User
                                • Oct 2003
                                • 4257

                                #16
                                Originally posted by BradM
                                Bump. Thanks to Bob for the code but it's not exactly what I need. This one is a bit flawed... having to add the onclick to all links is not really an option.

                                I'm going to keep hunting too.
                                sorry...didn't see that you didn't want to add that snippet to your other links....ok...back to the drawing board for you

                                Ivy

                                Comment

                                • BradM
                                  Confirmed User
                                  • Dec 2003
                                  • 3397

                                  #17
                                  I spammed devshed. Maybe someone there will know

                                  Comment

                                  • BradM
                                    Confirmed User
                                    • Dec 2003
                                    • 3397

                                    #18
                                    bumpppp

                                    Comment

                                    • fuelcell
                                      Confirmed User
                                      • Jun 2003
                                      • 1525

                                      #19
                                      It's been awhile since I've had to do this but . . .

                                      If memory serves, you can frame your site leaving a 1 pixel top frame which ensures that the popup code will not launch until they actually leave the site or close the browser.

                                      Of course, far fewer people actually see popups anymore with all the blockers out there and Microsoft's update to IE is just around the corner.
                                      Beat it. Nothing to see here.

                                      Comment

                                      • Reak
                                        So Fucking Banned
                                        • Mar 2003
                                        • 17920

                                        #20

                                        Comment

                                        • macho
                                          Confirmed User
                                          • Nov 2001
                                          • 2875

                                          #21
                                          Check some java script tutorial something like that:
                                          http://www.webteacher.com/hahahahaha...aha/index.html
                                          GayPay X2 -- #1in the niche! $35 per sign! Up to 70% revenue share! http://www.gaypay.com

                                          Comment

                                          • BradM
                                            Confirmed User
                                            • Dec 2003
                                            • 3397

                                            #22
                                            Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.

                                            Comment

                                            • fuelcell
                                              Confirmed User
                                              • Jun 2003
                                              • 1525

                                              #23
                                              Originally posted by BradM
                                              Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.
                                              Then your programmer is right.
                                              Beat it. Nothing to see here.

                                              Comment

                                              • emthree
                                                Dialer Kingpin
                                                • Jun 2003
                                                • 10816

                                                #24
                                                Originally posted by BradM
                                                having to add the onclick to all links is not really an option.
                                                You're assed.

                                                Sell Patches & Pills

                                                Comment

                                                • emthree
                                                  Dialer Kingpin
                                                  • Jun 2003
                                                  • 10816

                                                  #25
                                                  Originally posted by BradM
                                                  Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.
                                                  You're assed 99%.

                                                  Sell Patches & Pills

                                                  Comment

                                                  • enigma
                                                    Registered User
                                                    • Jun 2003
                                                    • 67

                                                    #26
                                                    Uh.... just make your index page a frameset with a hidden frame and a 100% visible frame. Load your site in the 100% visible frame, load your popup code in the hidden frame, and there ya go.

                                                    Checkout http://www.valmalone.com/ for an example of how to do this.

                                                    I ICQed you in case you miss this reply...
                                                    -Enigma
                                                    ICQ: 142592982

                                                    Comment

                                                    • Trax
                                                      [----------------------]
                                                      • Aug 2001
                                                      • 14486

                                                      #27
                                                      fire your programmer
                                                      that code with onexit and co has been around since day 1 of the internet

                                                      Comment

                                                      • Fizzgig
                                                        Registered User
                                                        • Feb 2004
                                                        • 9649

                                                        #28
                                                        I have to ask...

                                                        Why is that not an option? As far as I know it's the only way...

                                                        But, why is it not an option?
                                                        If you have a ton of links to edit, you do an edit/replace and it's really easy (tedious, but easy).
                                                        ---'-,-{@ Sassy Grrrl @}-'-,---

                                                        Comment

                                                        • enigma
                                                          Registered User
                                                          • Jun 2003
                                                          • 67

                                                          #29
                                                          Originally posted by BradM
                                                          Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.
                                                          Okay, I'll admit it--I didn't read the whole thread before I replied either (like Ivy), lol. Why don't you just put all your SEO stuff on the index page, though? Just repeat everything you have on your current index page and put it between the <noframes></noframes> tags. Won't that work? I'm no SEO, but...
                                                          -Enigma
                                                          ICQ: 142592982

                                                          Comment

                                                          Working...