Web Analytics Made Easy -
StatCounter Popup Windows - CodingForum

Announcement

Collapse
No announcement yet.

Popup Windows

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

  • Popup Windows

    Hey! Im new...Duh...lol...I'm trying to make a popup but its not working....can someone email me please....
    The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!

  • #2
    I hate pop-ups.
    "Never offend people with style when you can offend them with substance."
    --Sam Brown

    Comment


    • #3
      That's not the best idea to ask for response by email, IMO. What if other forum members have a similar problem? Do you prefer that they all mail you about the solution or would you have them rather read it in the thread?

      It's not so hard actually to create a popup:

      window.open("popup.html");
      De gustibus non est disputandum.

      Comment


      • #4
        Popup generator is where I was...I wanted on the Scrollbars option checked and a text link, but when I put it on my site, it didn't work....

        <script>

        //Popup Window Script
        //By JavaScript Kit (http://javascriptkit.com)
        //JavaScript tutorials and over 400+ free scripts

        function openpopup(){
        var popurl="thankyou.htm"
        winpops=window.open(popurl,"","width=400,height=338,")
        }

        </script>

        <a href="javascriptpenpopup()">Click here to open window</a>
        The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!

        Comment


        • #5
          Oh! I did put them on my site...I was just posting the code....
          The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!

          Comment


          • #6
            The code you posted above works for me in IE5.5 and Mozilla1.0. Can you be more specific on what you mean by "does not work"? Does JS give any error messages? Does a window open, but no page could be found? etc. etc.
            De gustibus non est disputandum.

            Comment


            • #7
              I press enter and it doesnt do anything...You think I could email you my file and see it you can put it on? lol...
              The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!

              Comment


              • #8
                Spikes:
                You may want to simply check out the following popup window wizard: http://javascriptkit.com/popwin/index.shtml
                - George
                - JavaScript Kit- JavaScript tutorials and 400+ scripts!
                - JavaScript Reference- JavaScript reference you can relate to.

                Comment


                • #9
                  That's what I was using...and the code I got afterwards was:

                  <script>

                  //Popup Window Script
                  //By JavaScript Kit (http://javascriptkit.com)
                  //JavaScript tutorials and over 400+ free scripts

                  function openpopup(){
                  var popurl="thankyou.htm"
                  winpops=window.open(popurl,"","width=400,height=338,scrollbars,")
                  }

                  </script>

                  <a href="javascriptpenpopup()">Click here to open window</a>
                  The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!

                  Comment


                  • #10
                    Hmmm...the code should definitely work across most browsers. If you had a link to the problematic page in question, that would make things simplier.
                    - George
                    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
                    - JavaScript Reference- JavaScript reference you can relate to.

                    Comment


                    • #11
                      well it's all on a disk and the files are called indexx.htm and main.htm....I want the indexx to open a pop up of the main page...so where do I put the codes.....................

                      *going to bed...Exam tomorrow morning....Will reply again tomorrow*
                      The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!

                      Comment


                      • #12
                        Are you telling it to open main.htm or are you leaving thanks.htm in there? Also that trailing comma after scrollbars might be problematic. If indexx.htm and main.htm are in the same directory try something like this.

                        <script>

                        //Popup Window Script
                        //By JavaScript Kit (http://javascriptkit.com)
                        //JavaScript tutorials and over 400+ free scripts

                        function openpopup(){
                        var popurl="main.htm"
                        winpops=window.open(popurl,"","width=400,height=338,scrollbars")
                        }

                        </script>

                        <a href="javascript: openpopup()">Click here to open window</a>

                        Comment


                        • #13
                          Originally posted by SpikeS Childe
                          well it's all on a disk and the files are called indexx.htm and main.htm....I want the indexx to open a pop up of the main page...so where do I put the codes.....................
                          Post the code of indexx.htm into your next posting, so we can take a look at it and see what's going wrong. No need in emailing members, see my other post.
                          De gustibus non est disputandum.

                          Comment


                          • #14
                            ok...the first is indexx.htm and the 2nd is main.htm
                            <HTML>
                            <HEAD>
                            <TITLE>Eternal Flames</TITLE>
                            </HEAD>
                            <BODY BGCOLOR="#000000" TEXT="#B4B8C4" LINK="#868CA0" VLINK="#868CA0">
                            <br><br>
                            <center><img src="splash1.jpg"></center>
                            <br>
                            <font face="Brush Script MT" SIZE="2">
                            <center>| <a href="http://hellhathnofury.cjb.net">Hell Hath No Fury</a> | <a href="http://daretodream-fan.cjb.net">Dare To Dream</a> | <a href="main.htm">Enter</a> |</center>
                            </BODY>
                            </HTML>
                            and

                            <HTML>
                            <HEAD>
                            <title>Eternal Flames</title>
                            </HEAD>
                            <BODY BGCOLOR="#000000" TEXT="#B4B8C4" LINK="#868CA0" VLINK="#868CA0">
                            <center><!-- Created by CuteMAP -->
                            <!-- Visit us at http://www.globalscape.com -->
                            <!-- Beginning of CSIM -->
                            <IMG SRC="full.jpg" USEMAP="#full.jpg" WIDTH=518 HEIGHT=188 BORDER=0>
                            <MAP NAME="full.jpg">
                            <AREA SHAPE=RECT COORDS="124,136,193,144" HREF="thecast.htm">
                            <AREA SHAPE=RECT COORDS="211,136,313,144" HREF="epguide.htm">
                            <AREA SHAPE=RECT COORDS="331,136,393,144" HREF="gallery.htm">
                            <AREA SHAPE=RECT COORDS="133,150,186,158" HREF="fanart.htm">
                            <AREA SHAPE=RECT COORDS="204,150,281,158" HREF="fanfiction.htm">
                            <AREA SHAPE=RECT COORDS="299,150,385,158" HREF="fanlistings.htm">
                            <AREA SHAPE=RECT COORDS="173,164,211,172" HREF="links.htm">
                            <AREA SHAPE=RECT COORDS="229,164,344,172" HREF="about.htm">
                            <AREA SHAPE=RECT COORDS="172,178,264,186" HREF="webmistress.htm">
                            <AREA SHAPE=RECT COORDS="282,178,345,186" HREF="mailto:[email protected]">
                            </MAP>
                            <!-- End of CSIM -->
                            <br>
                            <!-- Created by CuteMAP -->
                            <!-- Visit us at http://www.globalscape.com -->
                            <!-- Beginning of CSIM -->
                            <IMG SRC="guestbook.jpg" USEMAP="#guestbook.jpg" WIDTH=150 HEIGHT=150 BORDER=0>
                            <MAP NAME="guestbook.jpg">
                            <AREA SHAPE=POLY COORDS="56,29,52,29,52,30,50,30,50,31,49,31,49,32,48,32,48,34,47,34,47,39,48,39,48,40,49,40,49,41,50 ,41,50,42,51,42,51,44,52,44,51,44,51,45,49,45,49,46,47,46,47,47,46,47,46,48,46,49,47,49,47,50,49,50, 49,49,51,49,51,48,52,48,52,47,54,47,54,46,56,46,56,44,55,44,55,41,54,41,54,40,53,40,53,38,52,38,52,3 6,51,36,51,35,52,35,52,34,54,34,54,33,55,33,55,32,56,32,56,29" HREF="http://www.theguestbook.com/egbook/391722.gbook">
                            <AREA SHAPE=POLY COORDS="86,45,86,60,86,59,87,59,87,57,88,57,88,55,89,55,89,51,90,51,90,48,93,48,93,51,92,51,92,56,91 ,56,91,58,90,58,90,60,89,60,89,62,88,62,88,65,87,65,87,66,84,66,84,62,83,62,83,56,82,56,82,46,83,46, 83,45,86,45" HREF="http://www.theguestbook.com/vgbook/391722.gbook">
                            </MAP>
                            <!-- End of CSIM --></center>
                            </BODY>
                            </HTML>
                            The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!

                            Comment


                            • #15
                              Hi

                              winpops=window.open(popurl,"","width=400,height=338,")

                              Uhm, there shouldn't be that trailing comma:
                              338,
                              should be
                              338

                              To accomodate NS4 put some string in between the second argument apex, or in some cases NS4 may open a fullscreen window even if you sepcified otherwise

                              ciao
                              Alberto http://www.unitedscripters.com/

                              Comment

                              Working...
                              X