Advertise on Bikeforums.net



User Tag List

Results 1 to 13 of 13
  1. #1
    Junior Member
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    who knows Javascript???

    i need help...what's the js for centering a pop-up window???

    I'm trying to create a pop-up, I have the size and window features:

    height=400,width=400,toolbar=no,scrollbars=yes...etc etc, but I can't figure out centering, i can position via pixel placement...left=50,top=50

    i think it's a formula of some sort

    any help appreciated

  2. #2
    cxmagazine dot com pitboss's Avatar
    Join Date
    Jun 2003
    Location
    WI
    My Bikes
    Titus road, Fort CX
    Posts
    8,270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One resource you can try:
    http://groups.google.com/groups?hl=e...ith+javascript

    Google groups is a good place to start. That's how I dig the BS out of registry whenever needed.
    Give it a spin...you may just find what you need!
    Deathlap - cyclocross, training, beer,...escape hatch

  3. #3
    rider of small bicycles geneman's Avatar
    Join Date
    Dec 2003
    Location
    Rochester, New York
    My Bikes
    Cannondale
    Posts
    1,686
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go find a site that uses centered pop-ups and "lift" a little code. It's a js tradition (as long as you cite the owner that is).

    -mark

  4. #4
    Junior Member
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by 165-48:17
    One resource you can try:
    http://groups.google.com/groups?hl=e...ith+javascript

    Google groups is a good place to start. That's how I dig the BS out of registry whenever needed.
    Give it a spin...you may just find what you need!
    THANK YOU, that link helps a lot, never knew these groups existed. The first few hits were way confusing, seems I have to add variables and then a division formula arhhhh !!! I think I'll just specify left and top px coordinates.

    Quote Originally Posted by geneman
    Go find a site that uses centered pop-ups and "lift" a little code. It's a js tradition (as long as you cite the owner that is).

    -mark
    Go tip, I try that but I'm an artist (non-linear thinking) and when I "view source" I get a migraine !!!

  5. #5
    Footballus vita est iamlucky13's Avatar
    Join Date
    Jun 2002
    Location
    Portland, OR
    My Bikes
    Trek 4500, Kona Dawg
    Posts
    2,118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's more of a resource for specific scripts, but you might also check out http://hotscripts.com/ for help with this or other projects.
    "The internet is a place where absolutely nothing happens. You need to take advantage of that." ~ Strong Bad

  6. #6
    opinionated SOB cycletourist's Avatar
    Join Date
    Jul 2000
    Location
    Branson, Missouri USA
    Posts
    968
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    JavaScript- UGHH!
    HTML and CSS I can handle. And WCTL (web crossing template language). But JS, forget it.

  7. #7
    Great guy poululla's Avatar
    Join Date
    Apr 2002
    Location
    Denmark
    Posts
    397
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please do not create more pop-ups - my pop-up killer needs a break...

  8. #8
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    www.sitepoint.com is another good site for tutorials and stuff.

  9. #9
    Junior Member
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by poululla
    Please do not create more pop-ups - my pop-up killer needs a break...
    nah, I'm not doing those evil rapid-fire pop-ups and pop-unders, this is a personal site...pop-ups by choice

    Quote Originally Posted by iamlucky13
    It's more of a resource for specific scripts, but you might also check out http://hotscripts.com/ for help with this or other p
    Quote Originally Posted by cycletourist
    JavaScript- UGHH!
    Quote Originally Posted by Maelstrom
    Posted by Maelstrom - 02-12-04 at 10:01 AM
    www.sitepoint.com is another good site for tutorials and stuff.
    Thanks for all the input, the fustrating part is alot of sites give free cut-paste scripts but it's still difficult trying to put them inside the right <tags>, God forbid you leave out a space or parthesis...

  10. #10
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sitepoint offers full tutorials. Go to their forums, they have one of the strongest around. They have a 5 part (I believe) javascript tutorial to help you out and it is very good.

    As for syntax errors, welcome to coding.

    If you don't like them consider finding the Marcromedia suite and skip the coding yourself and let the program generate it. It isn't pretty but it works.

  11. #11
    Junior Member
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Maelstrom
    Sitepoint offers full tutorials. Go to their forums, they have one of the strongest around. They have a 5 part (I believe) javascript tutorial to help you out and it is very good.

    As for syntax errors, welcome to coding.

    If you don't like them consider finding the Marcromedia suite and skip the coding yourself and let the program generate it. It isn't pretty but it works.
    Thanks, yeah I was also looking for a way to close a window by clicking inside it...turns out you can only close a window via javascript IF the window was open via javascript... I hate javascript >>>

  12. #12
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats a new thing. Javascript used to be able to close any window...but it is a big security risk to have that much control over a window.

  13. #13
    Now with racer-boy font! Moonshot's Avatar
    Join Date
    Jan 2004
    Location
    East Alabama
    My Bikes
    2004 Litespeed Tuscany, Trek 5500, Breezer Storm, Bianchi road bike (fixed)
    Posts
    1,272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, even adbots tryin' to help ya!

    Atta boy, adbot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •