![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||||
| ||||||
|
|
SCRIPT type="text/javascript" |
|
function findLivePageHeight() { if (window.innerHeight != null) return window.innerHeight; if (document.body.clientHeight != null) return document.body.clientHeight; return (0); |
|
var lw = findLivePageWidth(); if (img.width > lw) { img.height = img.height * lw / img.width; img.width = lw; } var lh = findLivePageHeight(); if (img.height > lh) { img.width = img.width * lh / img.height; img.height = lh; } |
|
In FireFox funziona che è una meraviglia!!! [..] Quello che proprio non capisco è come mai in FF funziona e in IE no. |
|
Tra l'altro in FF ho gli strumenti per debuggare il JS,mentre in IE, se esistono, non li conosco. |
|
Qualcuno usa screen.availWidth e screen.availHeight per reperire le dimensioni della pagina ma, provando, non ho notato differenze. |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |