javascript help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alky
    Confirmed User
    • Apr 2002
    • 5651

    #1

    javascript help

    this was a post on webmaster q and fuckin a from me:


    I'm trying to do a simple javascript...

    What it does:
    If a person views my page and exits without clicking any links, a popup window comes up. But if they click a link, no popup comes up when the page unloads.

    I know its something with onClick="set a variable'

    then a function that is called in onUnload that checks the var value, but since I do not know Javascript at all, and I am lost.

    Any help is appreciated, thanks.
  • Seaz
    Confirmed User
    • Mar 2002
    • 773

    #2
    is anything in java simple ???

    Comment

    • Tedster
      So Fucking Banned
      • Mar 2002
      • 224

      #3
      check out http://javascriptkit.com

      Comment

      • XXXManager
        So Fucking Banned
        • Mar 2002
        • 893

        #4
        sent you a complete solution for that.
        Better post 1 time only

        Comment

        • XXXManager
          So Fucking Banned
          • Mar 2002
          • 893

          #5
          Hey.
          HTML code wont paste easy - so i changed all the "<" to "< " (added space so it wont fuckup the reply)...
          So here it is
          <HR>

          < HTML>
          < HEAD>
          < SCRIPT>
          var clicked = 0;
          function click_link (url){
          clicked = 1;
          window.open(url);
          };

          function closewin()
          {
          if (clicked==0) {window.open('http://www.xxxmanager.com');};
          };

          < /SCRIPT>
          < /HEAD>
          < BODY ONUNLOAD="closewin();">
          < A

          HREF="Javascript:click_link('http://www.tgplay.com');">http://ww

          w.tgplay.com< /A>
          < BR>
          < A

          HREF="Javascript:click_link('http://www.gofuckyourself.com');">h

          ttp://www.gofuckyourself.com< /A>
          < BR>
          < BR>
          courtesy of XXXManager.com ;)
          < /BODY>
          < /HTML>

          Comment

          • Alky
            Confirmed User
            • Apr 2002
            • 5651

            #6
            thanks man

            Comment

            Working...