Results 1 to 8 of 8
Thread: Noob question- easy
- 04-20-2008, 01:54 AM #1
Member
- Join Date
- Apr 2008
- Posts
- 2
- Rep Power
- 0
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, 03:06 AM #2
Member
- Join Date
- Apr 2008
- Posts
- 2
- Rep Power
- 0
Anything? At least maybe a direction to point me in?
- 04-21-2008, 11:00 AM #3
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
me! :cool:
- 04-21-2008, 01:07 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 04-21-2008, 06:38 PM #5
Then why are you having trouble?
I'm not sure where to throw the bone at you.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.
If the members here had a nickel for every time someone came here with a Javascript question we'd all be super rich.Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 04-22-2008, 01:51 AM #6
Member
- Join Date
- Apr 2008
- Posts
- 28
- Rep Power
- 0
they should really change the java in javascript to something else, it confuses people
- 04-22-2008, 02:14 AM #7
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 06-13-2008, 12:26 AM #8
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.
Similar Threads
-
Noob
By nokomis in forum IntroductionsReplies: 2Last Post: 03-06-2009, 05:10 PM -
[noob]Problem with TOS .bat
By fred33 in forum Advanced JavaReplies: 0Last Post: 03-19-2008, 02:04 PM -
help me with a realy easy program (substring)
By michcio in forum New To JavaReplies: 7Last Post: 01-27-2008, 12:41 AM -
Ah! Help a Java Noob
By Snejana in forum New To JavaReplies: 4Last Post: 01-24-2008, 03:52 AM -
Easy question
By JavaNoob in forum New To JavaReplies: 10Last Post: 08-03-2007, 10:28 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks