What is wrong with this code? Popup a New Window!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darren
    Confirmed User
    • Sep 2001
    • 5994

    #1

    What is wrong with this code? Popup a New Window!

    Code for opening a new window when a picture is clicked.

    This in head

    <script LANGUAGE="javascript">
    <!--
    function win(url){
    p = window.open(url,"Pop","width=330,height=280,scroll bars=no,location=no,resizable=no,status=no,menubar =no,toolbar=yes,valign=center,align=center")
    p.focus()
    }
    //-->
    </script>

    & this is how i link to the new popup window

    Javascript:win('thevids\alana\popup.html');

    The popup comes up but says server not found even though the location is correct. Im using Internet explorer and fromtpage to test this.


    Penis enlargement / male enhancement pills - earn up to $229.48 per signup

    ICQ: 46335817
  • DjSap
    Confirmed User
    • Jul 2002
    • 3869

    #2
    just guessing but try / instead of \
    Blog Themes, TGP Design, Writing Services, Grunt Work
    ICQ: 66871495

    Comment

    • jimmyf
      OU812
      • Feb 2001
      • 12651

      #3
      Originally posted by DjSap
      just guessing but try / instead of \
      This is correct.
      Epic CashEpic Cash works for me
      Solar Cash Paysite Plugin
      Gallery of the day freesites,POTD,Gallery generator with free hosting

      Comment

      • Darren
        Confirmed User
        • Sep 2001
        • 5994

        #4
        why would it be like that?

        still doesnt work that way either?


        Penis enlargement / male enhancement pills - earn up to $229.48 per signup

        ICQ: 46335817

        Comment

        • flashfreak
          Confirmed User
          • Jun 2002
          • 4396

          #5
          cause that's the way you adress directories in unix.
          SEO Mogul | ICQ: 163671223

          Comment

          • jimmyf
            OU812
            • Feb 2001
            • 12651

            #6
            Originally posted by Darren
            why would it be like that?

            still doesnt work that way either?
            Because that's just the way it is. Maybe if you posted the whole thing someone could help you. Code.

            -----------------------------
            And if you really want to know....why would it be like that? You will have to ask Al Gore... After all he invented the Internet.
            -----------------------------
            Last edited by jimmyf; 07-18-2002, 07:14 AM.
            Epic CashEpic Cash works for me
            Solar Cash Paysite Plugin
            Gallery of the day freesites,POTD,Gallery generator with free hosting

            Comment

            • grumpy
              Too lazy to set a custom title
              • Jan 2002
              • 9870

              #7
              put the complete url in there like
              Javascript:win("http://domain/thevids/alana/popup.html");
              and use the slash the right way and " instead of '
              Don't let greediness blur your vision | You gotta let some shit slide
              icq - 441-456-888

              Comment

              Working...