Solved

cross browser "window.innerHeight" and down side positioning

Posted on 2009-04-08
1
383 Views
Last Modified: 2013-11-19
I want to use this Javascript DHTML Tooltips cross browser library at http://www.walterzorn.com/tooltip/extensions.htm to display a balloon tooltip, and I want to position this tooltip attached to the low side of the window's clientarea.

This library provides the CENTERWINDOW parameter to position the tooltip in the horizontal&vertical center of the window's clientarea and in addition it provides the parameter OFFSETY to deviate from the center the specified number of pixels.

For example this line display the toolbar 200 pixels below the center:

onmouseover="Tip('Some text', CENTERWINDOW, true, OFFSETY, -200)"


The problem is: what *cross browser* function can I put in place of that "-200" to position it attached to the low side of the window's clientarea?


I tried to use the "window.innerHeight" command but this command is only supported in Firefox :(

How can I do?
0
Comment
Question by:lucavilla
1 Comment
 
LVL 9

Accepted Solution

by:
dan_neal earned 500 total points
Comment Utility
I use the document.documentElement.clientHeight property for my forms. Standard HTML DOM property that is cross browser supported.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now