Sfondo cliccabile

Astuzia Sfondo cliccabile

Messaggio Da the crow Dom 9 Ott 2011 - 16:10

Sfondo cliccabile

Visualizzazione > Immagini & Colori > Colori > Foglio di stile css

Codice:
body{
background-image: url(http://i42.servimg.com/u/f42/16/52/86/08/defaul10.jpg);
}

Visualizzazione > Prima pagina > Generalita' > Messaggio sull' indice ....Contenuto del messaggio :

Codice:
<body onClick="location.href='PUNTAMENTO DELLA PAGINA'">

Tutoriale :The crow
Copyrigth © FORUMATTIVO.COM
the crow
the crow
Veterano dello staff
Veterano dello staff

Sesso : Maschio
Età : 32
Messaggi : 8782
Località : Roma

https://aiuto.forumattivo.it/forum
the crow è stato ringraziato dall'autore di questo topic.

Astuzia Re: Sfondo cliccabile

Messaggio Da the crow Gio 20 Ott 2011 - 20:49

Sfondo cliccabile Vers.2
Lo script è questo:

Codice:
<script type="text/javascript">

   /*
      Cliccable Background Script written by Gusts Fridrihsons.
      Public Domain License.

      http://www.gustblabla.com
   */

   function setkeypresshandler () {
   
      var d = document;
      if (d.addEventListener) {      
         d.addEventListener('click', getKeyCode, false);         
      } else {      
         if(d.attachEvent) {         
            d = (d.documentElement.clientHeight)? d.documentElement : d.body;
            d.attachEvent('onclick',getKeyCode);
         } else {
            d = document.getElementsByTagName("body")[0];
            d.onclick = getKeyCode;
         }
      }
      
      document.getElementsByTagName("body")[0].style.cursor = 'pointer';
      document.getElementsByTagName("body")[0].style.background = " #eef url('LINK IMMAGINE') repeat fixed top center";      
      document.getElementById("header").style.cursor = 'default';
      document.getElementById("content").style.cursor = 'default';
   }

   function getKeyCode(e){
   
      var targ;
      if (!e) var e = window.event;
      if (e.target) targ = e.target;
      else if (e.srcElement) targ = e.srcElement;
      if (targ.nodeType == 3) targ = targ.parentNode;
      
      if (targ.tagName == 'BODY' || targ.tagName == 'body') {
      
         window.location='LINK CUI DIRIGE IL CLICK';
      }
   }

   setkeypresshandler ();
</script>

Testato in Phpbb2.
Lo mettete in: PDA ---> Visualizzazione ---> Template: Generale...  " overall_footer "
cliccate su:  :mod: e modificate il template mettendo questo script PRIMA della chiusura del body.

Se potete non cancellare la fonte all'interno dello script

Tutoriale da : CG 92
Copyrigth ©️ FORUMATTIVO.COM
the crow
the crow
Veterano dello staff
Veterano dello staff

Sesso : Maschio
Età : 32
Messaggi : 8782
Località : Roma

https://aiuto.forumattivo.it/forum
the crow è stato ringraziato dall'autore di questo topic.

Visualizza l'argomento precedente Visualizza l'argomento successivo Torna in alto

- Argomenti simili

 
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.