Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

cross browser "window.innerHeight" and down side positioning

Posted on 2009-04-08
1
Medium Priority
?
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

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

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

604 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