Valentin1918,
и где проблема?
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function() {
var pictureChange = document.getElementById("logoMogo");
function logoClick () {
alert("Ширина фото: " + pictureChange.scrollWidth);
}
pictureChange.onclick = logoClick;
});
</script>
</head>
<body>
<div id="logoMogo"><img src="http://javascript.ru/forum/images/ca_serenity/misc/logo.gif"></div>
</body>
</html>