Cycling and bicycle discussion forums. 
   Click here to join our community Log in to access your Control Panel  


Go Back   > >

Foo Off-Topic chit chat with no general subject.

User Tag List

Reply
 
Thread Tools Search this Thread
Old 02-07-04, 09:46 PM   #1
closereveryday
Junior Member
Thread Starter
 
Join Date: Jan 2004
Location: Southern California
Bikes:
Posts: 15
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
closereveryday is offline   Reply With Quote
Old 02-07-04, 10:02 PM   #2
pitboss
cxmagazine dot com
 
pitboss's Avatar
 
Join Date: Jun 2003
Location: WI
Bikes: Titus road, Fort CX
Posts: 8,269
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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!
pitboss is offline   Reply With Quote
Old 02-07-04, 10:48 PM   #3
geneman
rider of small bicycles
 
geneman's Avatar
 
Join Date: Dec 2003
Location: Rochester, New York
Bikes: Cannondale
Posts: 1,686
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
geneman is offline   Reply With Quote
Old 02-07-04, 11:52 PM   #4
closereveryday
Junior Member
Thread Starter
 
Join Date: Jan 2004
Location: Southern California
Bikes:
Posts: 15
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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 !!!
closereveryday is offline   Reply With Quote
Old 02-08-04, 02:53 PM   #5
iamlucky13
Footballus vita est
 
iamlucky13's Avatar
 
Join Date: Jun 2002
Location: Portland, OR
Bikes: Trek 4500, Kona Dawg
Posts: 2,118
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
iamlucky13 is offline   Reply With Quote
Old 02-08-04, 03:26 PM   #6
cycletourist
opinionated SOB
 
cycletourist's Avatar
 
Join Date: Jul 2000
Location: Branson, Missouri USA
Bikes:
Posts: 968
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
JavaScript- UGHH!
HTML and CSS I can handle. And WCTL (web crossing template language). But JS, forget it.
cycletourist is offline   Reply With Quote
Old 02-12-04, 10:22 AM   #7
poululla
Great guy
 
poululla's Avatar
 
Join Date: Apr 2002
Location: Denmark
Bikes:
Posts: 397
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Please do not create more pop-ups - my pop-up killer needs a break...
poululla is offline   Reply With Quote
Old 02-12-04, 12:01 PM   #8
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
www.sitepoint.com is another good site for tutorials and stuff.
Maelstrom is offline   Reply With Quote
Old 02-12-04, 04:00 PM   #9
closereveryday
Junior Member
Thread Starter
 
Join Date: Jan 2004
Location: Southern California
Bikes:
Posts: 15
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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...
closereveryday is offline   Reply With Quote
Old 02-12-04, 04:24 PM   #10
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
Maelstrom is offline   Reply With Quote
Old 02-12-04, 07:22 PM   #11
closereveryday
Junior Member
Thread Starter
 
Join Date: Jan 2004
Location: Southern California
Bikes:
Posts: 15
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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 >>>
closereveryday is offline   Reply With Quote
Old 02-12-04, 08:54 PM   #12
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
Maelstrom is offline   Reply With Quote
Old 02-12-04, 09:09 PM   #13
Moonshot
Now with racer-boy font!
 
Moonshot's Avatar
 
Join Date: Jan 2004
Location: East Alabama
Bikes: 2004 Litespeed Tuscany, Trek 5500, Breezer Storm, Bianchi road bike (fixed)
Posts: 1,272
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Hey, even adbots tryin' to help ya!

Atta boy, adbot!
__________________

www.eastalabamacycling.org
Moonshot is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 07:33 PM.