|
|
|
|
Oggi è mercoledì 20 agosto 2008, 20:02
|
|
Pagina 1 di 1
|
[ 3 messaggi ] |
|
| Autore |
Messaggio |
|
alessio
Utente Senior Avanzato
Iscritto il: giovedì 29 novembre 2007, 17:51 Messaggi: 36
|
 aiuto
ò trovato questo codice per cambiare sfondo, ora la mia domanda è si può uttilizzare questo codice sul mio foum ? se è si come come bisogna fare? il codice è questo <script language="JavaScript" type="text/javascript"> <!-- Start
var background = "Indirizzo_immagine" var speed = 0;
browserName = navigator.appName; browserVer = parseInt(navigator.appVersion);
if (browserName != "Netscape" || browserVer >= 4.5) {
function moveback(movert,movedn,hPos,vPos) { if (arguments[4]) document.body.style.backgroundImage = "url(\"" + arguments[4] + "\")"; if (arguments[5]) document.body.style.backgroundRepeat = arguments[5] if (!isNaN(hPos)) { if ((movert!=0) && (hPos>0)) hPos=-0 hPos += movert } if (!isNaN(vPos)) { if ((movedn!=0) && (vPos>0)) vPos=-0 vPos+= movedn } document.body.style.backgroundPosition= hPos + " " + vPos if (isNaN(hPos)) hPos = "\"" + hPos + "\"" if (isNaN(vPos)) vPos = "\"" + vPos + "\"" setTimeout("moveback("+movert+","+movedn+","+hPos+","+vPos+")",speed) } moveback(1,1,0,0, background); } // End --> </script> grazie
_________________ http://ilcanecorsodeimonti.ilmioforum.net/
|
| sabato 19 gennaio 2008, 16:31 |
|
 |
|
 |
|
Supporto
Amministratore
Iscritto il: domenica 18 settembre 2005, 13:39 Messaggi: 422
|
 Re: aiuto
alessio ha scritto: ò trovato questo codice per cambiare sfondo, ora la mia domanda è si può uttilizzare questo codice sul mio foum ? se è si come come bisogna fare? il codice è questo <script language="JavaScript" type="text/javascript"> <!-- Start
var background = "Indirizzo_immagine" var speed = 0;
browserName = navigator.appName; browserVer = parseInt(navigator.appVersion);
if (browserName != "Netscape" || browserVer >= 4.5) {
function moveback(movert,movedn,hPos,vPos) { if (arguments[4]) document.body.style.backgroundImage = "url(\"" + arguments[4] + "\")"; if (arguments[5]) document.body.style.backgroundRepeat = arguments[5] if (!isNaN(hPos)) { if ((movert!=0) && (hPos>0)) hPos=-0 hPos += movert } if (!isNaN(vPos)) { if ((movedn!=0) && (vPos>0)) vPos=-0 vPos+= movedn } document.body.style.backgroundPosition= hPos + " " + vPos if (isNaN(hPos)) hPos = "\"" + hPos + "\"" if (isNaN(vPos)) vPos = "\"" + vPos + "\"" setTimeout("moveback("+movert+","+movedn+","+hPos+","+vPos+")",speed) } moveback(1,1,0,0, background); } // End --> </script> grazie Qui non è disponibile questa funzione...
_________________ Prima di postare....cerca la soluzione...
|
| sabato 19 gennaio 2008, 17:41 |
|
 |
|
alessio
Utente Senior Avanzato
Iscritto il: giovedì 29 novembre 2007, 17:51 Messaggi: 36
|
 Re: aiuto
grazie 
_________________ http://ilcanecorsodeimonti.ilmioforum.net/
|
| sabato 19 gennaio 2008, 19:24 |
|
 |
|
|
Pagina 1 di 1
|
[ 3 messaggi ] |
|
Chi c’è in linea |
Visitano il forum: Nessuno e 0 ospiti |
|
Non puoi aprire nuovi argomenti Non puoi rispondere negli argomenti Non puoi modificare i tuoi messaggi Non puoi cancellare i tuoi messaggi Non puoi inviare allegati
|
|