Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling different image maps based on platform

Status
Not open for further replies.

pwinstanley

IS-IT--Management
Nov 23, 2000
22
GB
Is there anyway with Javascript to detect the platform and then load up an image map based on this?

Sounds easy but I'm a Javascript novice trying to do more than I know.

please help
 
Hi pwinstanley !
You may extract this value from navigator.appVersion - last chars of this string contain information about OS.

The question is what is exact number of chars!
if you know it, you can use substring() function:
OS = navigator.appVersion.substring(navigator.appVersion.length - x, navigator.appVersion.length)

where X is number of chars. Unfortunately, this number is not constant, as I know.

Andrew | starway@mail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top