Run your own MMO
Run your own Strategy MMO! Easy to customize, addictive, and great for building a community of regular visitors!

 

Useful Functions

In category Javascript

This category is for functions that do not provide a complete product or script, but that will hopefully prove to be very useful for your code.

Articles

There are currently 3 Articles in this category.

Browser Display

Browser Display

Created 28/02/2011 08:17:04pm

A simple cross-browser function to return the information needed to determine the currently displayed area of the webpage by returning the current scroll-offset as well as the width and height of the browser display area.

Find Array value

Find Array value

Created 28/02/2011 12:09:33pm

A simple function to easily find the key for an Array value in Javascript, or return -1 if the value has not been found in the target Array. The function extends the existing Array object so can easily be called on any Array.

Find top z-index

Find top z-index

Created 12/01/2010 04:41:00pm

If you want to dynamically move an element on a webpage to the "top" position, this function lets you find the current top z-index on the fly. Extremely important if you need to overlay content on a page with changing content!