Oggi è mercoledì 20 agosto 2008, 20:02





Apri un nuovo argomento Rispondi all’argomento  [ 3 messaggi ] 
 aiuto 
Autore Messaggio
Utente Senior Avanzato
Utente Senior Avanzato
Avatar utente

Iscritto il: giovedì 29 novembre 2007, 17:51
Messaggi: 36
Messaggio 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
Profilo Invia messaggio privato E-mail




Amministratore
Amministratore
Avatar utente

Iscritto il: domenica 18 settembre 2005, 13:39
Messaggi: 422
Messaggio 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
Profilo Invia messaggio privato
Utente Senior Avanzato
Utente Senior Avanzato
Avatar utente

Iscritto il: giovedì 29 novembre 2007, 17:51
Messaggi: 36
Messaggio Re: aiuto
grazie :D

_________________
http://ilcanecorsodeimonti.ilmioforum.net/


sabato 19 gennaio 2008, 19:24
Profilo Invia messaggio privato E-mail
Visualizza ultimi messaggi:  Ordina per  
Apri un nuovo argomento Rispondi all’argomento  [ 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

Vai a:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.
Traduzione Italiana phpBB.it