giorno giorno!
ho appena visitato un sito con una particolarità. avevo la mia finestra del browser di dimensioni ridotte, e non appena ho digitato l'indirizzo del sito in questione, la stessa si è ingrandita a tutto schermo, non in FullScreen, il browser era ancora ben visibile. cos'è? uno JavaScript? se si me lo passate che mi sembra molto interessante?
Questo lo JavaScript che ho trovato nel codice del sito, mi basta copiarlo nel mio di sito per avere lo stesso effetto? oppure c'è qualcosa che posso omettere?
grassie!![]()
<SCRIPT LANGUAGE="JavaScript">
<!--
var init='0';
if (init=='0'){
init='1';
window.resizeTo(screen.availWidth,screen.availHeig ht);
window.moveTo(0,0);
}
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
ns6 = (document.getElementById &&! document.all)? true:false
yourBrowser = ( navigator.appname == "Microsoft Internet Explorer" )? 'IE':'NS'
var pos = 1
var doNav = 0
loadingDone = 0
theDir = new Array()
theDir[0] = "program/nl/"
theDir[1] = "actual/nl/"
theDir[2] = "coll/nl/"
theDir[3] = "service/nl/"
theDir[4] = "info/nl/"
theDir[5] = "educatie/nl/"
theDir[6] = "shop/nl/"
theDir[7] = "general/nl/"
theDir[8] = "contact/nl/"
//var pad = window.location.href.substring(0,window.location.h ref.lastIndexOf("/")+1)
//var padie = window.location.href.substring(0,window.location.h ref.lastIndexOf("\\")+1)
//if (padie.length > pad.length) { pad = padie }
function toMain(num) {
frames[1].location.href = theDir[num] + "index.html"
}
function toSub(num,which) {
frames[1].location.href = theDir[num] + which + ".html"
}
function toTop() {
////if (parent.frames[0].document.anchors.length != 0) { parent.frames[0].scroll(0,0) }
frames[1].scroll(0,0)
}
//De volgende parameter wordt gezet om vanuit de scrollbalk rechtstreeks
//naar de educatie-site door te gaan
var initBody=window.location.search.indexOf("showBody= ");
if (initBody != -1){doNav=5}
//-->
</SCRIPT>