Untitled

 avatar
Esbjerg82
php
a year ago
308 B
6
Indexable
Never
<?php
$sizeonimg2  = "<script>document.write($('#img-upload').width());</script>";

if($sizeonimg2 > '700' && $sizeonimg2 < '800') {
   print '70%';
} elseif ($sizeonimg2 > '600' && $sizeonimg2 < '700') {
   print '60%';
}
?>


<script>
$("#sizeonimg2").text($("#img-upload").width());
</script>