Would you help me with this script please? It is [I]supposed
I have searched the forum and tried the w3c tutorial and others to no avail.
[code=php]
<SCRIPT LANGUAGE=”JavaScript”>
<!–
// Set the Maximum Width and Height
var maxImageWidth = 350;
var maxImageHeight = 350;
function resizeImage(thisimage) {
if (thisimage.height > thisimage.width) {
// check and modify height if needed
if (thisimage.height > maxImageHeight) {
thisimage.height = maxImageHeight;
thisimage.style.cursor=’hand’;
}
} else {
// check and modify width if needed
if (thisimage.width > maxImageWidth) {
thisimage.width = maxImageWidth;
thisimage.style.cursor=’hand’;
}
}
}
// End –>
</script>