INFO UTENTE: A QUANTI COLORI HA IL VIDEO E A QUALE RISOLUZIONE

I due script inseriti in una tabella, hanno un effetto piacevole ed informativo.

Autori: unknown, modified and explained from www.webmasterpaolo.com 

RITORNA ALLA PAGINA DELLE JAVASCRIPT

Lo script da inserire in html

<script language="Javascript"><!--

// ***********************************************
// Autori: unknown, modified and explained from // www.webmasterpaolo.com 
// ***********************************************

if( self.screen ) {
numbage = screen.pixelDepth
? Math.pow( 2, screen.pixelDepth ) // in N4
: Math.pow( 2, screen.colorDepth ) // in E4
}
else { numbage = "I dunno!" }
document.write( 'Il suo video č configurato a ' +numbage+ ' colori.' ) 

//-->
</script>

 

Lo script da inserire in html

<script language="Javascript"><!--

// ***********************************************
// Autori: unknown, modified and explained from // www.webmasterpaolo.com 
// ***********************************************

// for NN4/IE4
if (self.screen) { 
width = screen.width
height = screen.height
}

// for NN3 w/Java
else if (self.java) { 
var javakit = java.awt.Toolkit.getDefaultToolkit();
var scrsize = javakit.getScreenSize(); 
width = scrsize.width; 
height = scrsize.height; 
}
else {

// N2, E3, N3 w/o Java (Opera and WebTV)
width = height = '?' 
}

document.write("La vostra risoluzione video: "+ width +"×"+ height)

//-->
</script>

 

RITORNA ALLA PAGINA DELLE JAVASCRIPT

RITORNA ALLA PAGINA DELLE ALTRE JAVASCRIPT