Lorenzo Pascucci
a- a+

Banner 468x60 che si ingrandisce al passaggio del mouse

Abbiamo già parlato dei vari nuovi metodi pubblicitariutilizzati inizialmente in America ed ora anche in Italia,come per esempio i banner 468x60px che al passaggio del mousevisualizzano una nuova immagine molto più grande(468x400px) o del testo in più...

Questo nuovo strumento ha sicuramente un click-troughtmaggiore rispetto ai normali banner, quindi abbiamo pensatodi spiegarvi come realizzarlo! (visualizza esempio)

Tra i tag BODY:

<script language="JavaScript"><!--function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);// -->function MM_findObj(n, d) { //v4.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x;}function MM_showHideLayers() { //v3.0  var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v; }}//--></script>

Questo è il codice che permette il banner diespandersi. Ora il codice per richiamare il banner 468x60 pxsempre da inserire nei tag BODY

<A HREF=sponsor.htm onMouseOver="MM_showHideLayers('banner','','show')" onMouseOut="MM_showHideLayers('banner','','hide')"><IMG SRC=immagine.gif Width=468 Height=60 BORDER=0></A> <div id="banner" style="position:absolute; width:468px; height:400px; z-index:99; left: 8px; top: 68px; background-color: #800000; layer-background-color: #800000; visibility: hidden"><A HREF=esempio5.htm onMouseOver="MM_showHideLayers('banner','','show')" onMouseOut="MM_showHideLayers('banner','','hide')"><IMG SRC=bannerone.gif WIDTH=468 HEIGHT=400 BORDER=0></A></div>

Logicamente le dimensioni sono modificabili, ma gli standardormai si sono affermati con dimensioni pari a 468x400 px.

VISUALIZZA ESEMPIO