PhoneGap Build makes apps in the cloud for multiple platforms including iOS, Andriod, webOS, Symbian, BlackBerry .
By using Javascript, HTML and CSS and then builds apps with phonegap.
Can create an app for your website in simple steps.

Also we can use the jQuery mobile version for Javascript and CSS

For more details visiti : http://www.phonegap.com/

The purpose of these functions is to find the absolute X and Y co-ordinates of an HTML element. They work well in both Internet Explorer and Firefox

function getPositionX(objx) {
var curleft = 0;
if (objx.offsetParent) {
while (1) {
curleft += objx.offsetLeft;
if (!objx.offsetParent) {
break;
}
objx = objx.offsetParent;
}
} else if (objx.x) {
curleft += objx.x;
return curleft;
}
return curleft;
}

function getPositionY(objy) {
var curtop = 0;
if (objy.offsetParent) {
while (1) {
curtop += objy.offsetTop;
if (!objy.offsetParent) {
break;
}
objy = objy.offsetParent;
}
} else if (objy.y) {
curtop += objy.y;
return curtop;
}
return curtop;
}

var cursorX = getPositionX(obj);
var cursorY = getPositionY(obj);

Hope this code will help you …

© 2014 Developers Corner Suffusion theme by Sayontan Sinha