how to open site in popunder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to open site in popunder

    here is popunder code

    <script>
    var popunder="http://coding-talk.com"
    var winfeatures="width=600,height=600,scrollbars=1,res izable=1,toolbar=1,location=1,menubar=1,status=1,d irectories=0"
    var once_per_session=1
    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
    offset += search.length
    // set index of beginning of value
    end = document.cookie.indexOf(";", offset);
    // set index of end of cookie value
    if (end == -1)
    end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(off set, end))
    }
    }
    return returnvalue;
    }
    function loadornot(){
    if (get_cookie('popunder')==''){
    loadpopunder()
    document.cookie="popunder=yes"
    }
    }
    function loadpopunder(){
    win2=window.open(popunder,"",winfeatures)
    win2.blur()
    window.focus()
    }
    if (once_per_session==0)
    loadpopunder()
    else
    loadornot()
    </script>

    i want to open "openwin" from following script(in above code 2nd line)

    <script type="text/javascript">
    function openwin()
    {
    <? echo "window.open(\"".$poplink2."\")"; ?>
    }
    </script>


    how to do this ???????

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    #2
    no 1 is there?

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    Comment


      #3
      plz bhai log.. help me. atleast give a hint

      http://WapTops.com- Get Real High Traffic
      http://WapFun.info-Fun 4 Wap

      Comment


        #4
        You Have Posted The Answer In Your First Post...... Everything you Need Is in Your First Post ?

        Comment


          #5
          bro i tried all thoings. its not working. plz solve this

          http://WapTops.com- Get Real High Traffic
          http://WapFun.info-Fun 4 Wap

          Comment


            #6
            this javascript has to be placed in the <head> section of your page for it to work

            Comment


              #7
              i want to open "openwin" from following script(in above code 2nd line)

              <script type="text/javascript">
              function openwin()
              {
              <? echo "window.open(\"".$poplink2."\")"; ?>
              }
              </script>


              how to do this ???????

              how to put openwin in link???

              http://WapTops.com- Get Real High Traffic
              http://WapFun.info-Fun 4 Wap

              Comment


                #8
                oh so u want the popunder to open when a link is clicked rather than when page is opened?
                if so it would be on the lines of this:
                PHP Code:
                <a href="javascript:openwin()">Link</a
                But You would also need to open your original link in the function openwin() aswell

                Comment


                  #9
                  you r not getting me bro..

                  how to code so that i it can automatically open open()


                  means how to put oenwin() in var popunder="http://coding-talk.com"

                  http://WapTops.com- Get Real High Traffic
                  http://WapFun.info-Fun 4 Wap

                  Comment


                    #10
                    just put your first code in the head of your page then as soon as that page opens it opens another page (popunder) .... it works fine for me

                    Comment


                      #11
                      bro its also working for me. and its opening site.
                      but i want to put openwin() from second code in place of http://codingtalk.com
                      how to put that?????

                      http://WapTops.com- Get Real High Traffic
                      http://WapFun.info-Fun 4 Wap

                      Comment

                      Working...
                      X