|
|
|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

04-20-2008, 03:54 AM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 2
|
|
|
Noob question- easy
This should be super simple, at least I think.
Here's the goal. Clean window (no scroll bars) same size as image(link) in the center of the browser.
Linking through the image is not a problem, resizing the window is not a problem (in itself.)
Here we go: The window moves to the top left of the browser with scroll bars for both the horizontal and vertical, even though "window.resizeTo" is the same dimensions as the image. As far as moving goes the best I could come up with are "moveTo" and "moveBy", but those both run off coordinates. Is there an easier way to center?
Throw me a freaking bone here.
|
|

04-20-2008, 05:06 AM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 2
|
|
|
Anything? At least maybe a direction to point me in?
|
|

04-21-2008, 01:00 PM
|
 |
Moderator
|
|
Join Date: Aug 2007
Location: London, UK
Posts: 239
|
|
|
Is this a Java question or a JavaScript question? It sounds like JavaScript to me..
In which case, you should find a JavaScript forum. Java and JavaScript are two different languages.
__________________
Did this post help you? Please To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. me! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-21-2008, 03:07 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
|
|
Not clear that question me too. Seems more like a JavaScript, moveTo confusing me.
My friend mattonitto, provide more details. At least a code segment may help to all of us . As Don says, Java and JavaScript are totally different.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-21-2008, 08:38 PM
|
 |
Moderator
|
|
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
|
|
Originally Posted by mattonitto
This should be super simple, at least I think.
Then why are you having trouble?
Here we go: The window moves to the top left of the browser with scroll bars for both the horizontal and vertical, even though "window.resizeTo" is the same dimensions as the image. As far as moving goes the best I could come up with are "moveTo" and "moveBy", but those both run off coordinates. Is there an easier way to center?
Throw me a freaking bone here.
I'm not sure where to throw the bone at you.
If the members here had a nickel for every time someone came here with a Javascript question we'd all be super rich.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. !
Got a little Capt'n in you? (drink responsibly)
|
|

04-22-2008, 03:51 AM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 28
|
|
|
they should really change the java in javascript to something else, it confuses people
|
|

04-22-2008, 04:14 AM
|
 |
Moderator
|
|
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
|
|
Originally Posted by rico16135
they should really change the java in javascript to something else, it confuses people
Agreed. This is has been one of the worst names in the biz.... unfortunately, Sun doesn't have a say in the matter, if they did it wouldn't have been named the way it was. 
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. !
Got a little Capt'n in you? (drink responsibly)
|
|

06-13-2008, 02:26 AM
|
 |
Senior Member
|
|
Join Date: Jun 2008
Location: Southwest
Posts: 684
|
|
|
Java v JavaScript - I got my first one a few days ago. In Java, there shoud be some way to get screen size and so on. If it is Java, they have sample code in the tutorials that will center();//
It is remarkably deep to dig into everything well enough to actually get enough information to proxy for the LayoutManagers.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
All times are GMT +3. The time now is 10:47 AM.
|
|
VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org