aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Google's download window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Google Watch "Google New topic
Author

Google's download window

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi.
Did you see Google's home page ?
At the top right corner, there is a small window with close button.
Also, in InfoQ.com , when you click on Login link, a small window (with a form) moves from up to down and when you click on the close button, the window disappears.
How to create these effects ?
Well, I don't what is the name of this combination of these tricks so I can't google for them.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Originally posted by John Todd:
Hi.
Did you see Google's home page ?
At the top right corner, there is a small window with close button.
Also, in InfoQ.com , when you click on Login link, a small window (with a form) moves from up to down and when you click on the close button, the window disappears.
How to create these effects ?
Well, I don't what is the name of this combination of these tricks so I can't google for them.


It's just a hidden div that is turned on when a link is clicked.



GenRocket - A Test Data Generation Platform
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Sorry Gregg but your snippet doesn't work !
I copied it and paste it and nothing happened.
What about the small close button of Google's window (it is just like the close button of Windows OS) ?
An image with JavaScript associated with it maybe ?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
on click should be onclick

Eric
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

How to position the pop-uped div under the link not above it ?
(I'm really sorry, I'm not a JavaScript guy but I really like to know to perform these tricks).
Thanks.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Originally posted by John Todd:
How to position the pop-uped div under the link not above it ?
(I'm really sorry, I'm not a JavaScript guy but I really like to know to perform these tricks).
Thanks.


They aren't "tricks". It's just javascript/DHTML. You need to get the position of the link and dynamically adjust the popup div's LEFT and TOP positions accordingly. Getting the position of an element is a pretty easy google search or just search this forum.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Google's download window
 
Similar Threads
window close enent
javascript closing windows
Question About the EXHIBIT Button
When click on minimize button then it must goes to System Tray?
Closing parents parent html file