ADD THE SLIDER CODE HERE

 

Sep 4, 2012

////
function getTopLeft(obj){
    var x, y = 0;

    //declare the x & y offset
    x = obj.offsetLeft;
    y = obj.offsetTop;

    //override obj with the parent element's offset
    obj = obj.offsetParent;


    //Add the offset values until obj is null; meaning we've reach the parent document
    while(obj != null){
        x = parseInt(x) + parseInt(obj.offsetLeft);
        y = parseInt(y) + parseInt(obj.offsetTop);
        obj = obj.offsetParent;
    }
    return {_top:y, _left: x}; //returns object
}

// Usage:
var obj=document.getElementById('mydiv');
var offset=getTopLeft(obj);
var left = offset._left;
var top = offset._top;

Jun 30, 2012

////
$fields['test']='';
$ch = curl_init();
$uri = 'http://sample.com';
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
$response=curl_exec($ch);

Dec 20, 2011

////

If you are a lazy web developer, you may want to consider using the HTML5 BOILERPLATE ;-)