Dynamic height and width on resizing in jquery


//jQuery solution
var me = jQuery || $.noConflict();
me(document).ready(function() {
me(‘#heightSpan’).html(me(window).height());
me(‘#widthSpan’).html(me(window).width());

me(window).on(‘resize’, function(){
me(‘#heightSpan’).html(me(window).height());
me(‘#widthSpan’).html(me(window).width());
});
});

width: px

height: px
[/sourcecode]

Getting width and height of image – javascript



function getImgSize(imgSrc)
{
var newImg = new Image();
newImg.src = imgSrc;
var heightd = newImg.height;
var widthd = newImg.width;
alert ('The image size is '+widthd+'*'+heightd);
}
getImgSize('http://images.google.com/intl/en_ALL/images/logos/images_logo_lg.gif')

Creating two functions in AJAX with Javascript


= 60 && $arr[1]!=0)
{
$h = floor($tim/60); $m = $tim%60;
$res = $h.’ Hrs ‘.$m.’ Mins’;
}
else if($tim >= 60 && $arr[1]==0)
{
$h = floor($tim/60); $m = $tim%60;
$res = $h.’ Hrs ‘;
}

return $res;
}
?>

<?php
while($row = mysql_fetch_array($result1)) {
$str = str_replace(' ', '', $row['remark']);
$sr = str_replace('On Time', '',$str);
$s = str_replace('Delay', 'late by', $sr);

$ar = explode(" ", $s);
$me = strtolower($row['arrived']);
$mea = ucwords($me);
$z = $row['image'];
echo "

“;
echo “

To Schduled Status
“.”
Back to top