sinta4
exempio applicazione comportamenti con frontpage 2003...vedi anche sinta5sinta6sinta8
<body onload="FP_preloadImgs(/*url*/'fragif2.gif',
/*url*/'fragif1.gif', /*url*/'neve3.jpg')">
<p>sinta4</p>
<p>exempio applicazione comportamenti con frontpage 2003</p>
<p><img border="0" src="comporta.GIF" width="450" height="460"></p>
<p><img border="0" src="comporta3.GIF" width="150" height="559"></p>
apri nuova finestra con clic...cliccare su riga
<b onclick="FP_openNewWindow('200', '200', false,
false, false, false, true, false, '', /*href*/'cla1.htm')">
apri nuova finestra con clic</b>...cliccare su riga</p>
vai a url con clic.....cliccare su riga
<p><b onclick="FP_goToURL(/*href*/'cla1.htm')">vai a
url con clic</b>.....cliccare
su riga</p>
suono da riprodurre con doppio click....doppio clic su riga
<p ondblclick="FP_playSound(/*url*/'suona.mid')"><b>suono
da riprodurre con doppio
click</b>....doppio clic su riga</p>
scambio di immagini con onmouseover e onmouseout...spostare mouse su immaginit
<img border="0" src="fragif1.gif" width="120" height="90"
id="img1" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img1',/*url*/'fragif2.gif',/*id*/'img2',/*url*/'fragif1.gif')">
<img border="0" src="fragif2.gif" width="120" height="90" id="img2"></p>
<p><b>scambio di immagini con onmouseover e onmouseout</b>...spostare mouse su
immaginit</p>
ripristina
scambia immagini con onmouseover e ripristino con onmouseout
<p onmouseout="FP_swapImgRestore()">
<img border="0" src="neve1.jpg" width="160" height="120" id="img3" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'neve3.jpg',/*id*/'img4',/*url*/'neve3.jpg')">
<img border="0" src="neve2.jpg" width="160" height="120" id="img4">ripristina</p>
<p>
<p><b>scambia immagini con onmouseover e ripristino con onmouseout</b></p>
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>sinta4</title>
<script language="JavaScript">
<!--
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,';
else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
if(h!="") windowProperties+='height='+h; if(windowProperties!="") {
if( windowProperties.charAt(windowProperties.length-1)==',')
windowProperties=windowProperties.substring(0,windowProperties.length-1); }
window.open(url,name,windowProperties);
}
function FP_goToURL(url) {//v1.0
window.location=url;
}
function FP_playSound(path) {//v1.0
var b,d=document,e,es,i,se="<EMBED SRC='"+path+"' HIDDEN=TRUE LOOP=FALSE
AUTOSTART=TRUE>";
if(d.body)b=d.body; if(d.getElementsByTagName) { es=d.getElementsByTagName('embed')
for(i=0;i<es.length;i++) { e=es(i); if( e.src==path ) { if(e.removeNode) e.removeNode();
break; } } if(b&&b.insertAdjacentHTML) b.insertAdjacentHTML("beforeend",se); }
}
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_swapImgRestore() {//v1.0
var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) {
var elm=doc.$imgSwaps[i]; if(elm) { elm.src=elm.$src; elm.$src=null; } }
doc.$imgSwaps=null; }
}
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; }
}
return null;
}
// -->
</script>
</head>
<p>