-
.
INSERITE IL CODICE per la neve che scende o cade sul forum (Guida) IN Codice HTML che sarà mostrato in FONDO a tutte le pagine. CODICE<!-- Prelevato nel Forum Pokèstrong su ForumCommunity -->
<body onLoad="snow()">
<script type="text/javascript">
<!-- Snow Script by kurt.grigg@virgin.net
N = 40;
Y = new Array();
X = new Array();
S = new Array();
A = new Array();
B = new Array();
M = new Array();
V = (document.layers)?1:0;
iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;
iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i < N; i++){
Y[i]=Math.round(Math.random()*iH);
X[i]=Math.round(Math.random()*iW);
S[i]=Math.round(Math.random()*5+2);
A[i]=0;
B[i]=Math.random()*0.1+0.1;
M[i]=Math.round(Math.random()*1+1);
}
if (V){
for (i = 0; i < N; i++)
{document.write("<layer NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,"+M[i]+","+M[i]+"'></layer>")}
}
else{
document.write('<div style="position:fixed;top:0px;left:0px">');
document.write('<div style="position:fixed">');
for (i = 0; i < N; i++)
{document.write('<div id="si" style="position:fixed;top:0;left:0;width:'+M[i]+';height:'+M[i]+';background:#fffff0;font-size:'+M[i]+'"></div>')}
document.write('</div></div>');
}
function snow(){
var H=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var W=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var T=(document.layers)?window.pageYOffset:document.body.scrollTop;
var L=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < N; i++){
sy=S[i]*Math.sin(90*Math.PI/180);
sx=S[i]*Math.cos(A[i]);
Y[i]+=sy;
X[i]+=sx;
if (Y[i] > H){
Y[i]=-10;
X[i]=Math.round(Math.random()*W);
M[i]=Math.round(Math.random()*1+1);
S[i]=Math.round(Math.random()*5+2);
}
if (V){document.layers['sn'+i].left=X[i];document.layers['sn'+i].top=Y[i]+T}
else{si[i].style.pixelLeft=X[i];si[i].style.pixelTop=Y[i]+T}
A[i]+=B[i];
}
setTimeout('snow()',10);
}
//-->
</script>
<script type="text/javascript">
/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
//Configure below to change URL path to the snow image
var snowsrc="http://3zufng.blu.livefilestore.com/y1pevZcfnk7TaossQ5W2BV51SFemUofw4A2DuY1jYpIir5jUbt9MSf0kYgdt4kSQQwcRL_1eVbbYFCq2QKDSd2V3BsfZLEyWvRR/cristalli.gif"
// Configure below to change number of snow to render
var no = 25;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "windowheight";
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("http://pokemon.world.battle.forumcommunity.net/")!=-1)? "http://digilander.libero.it/matrixfile0/11kw0h0.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: fixed; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION:fixed; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
</script>
Edited by Anty01 - 13/1/2024, 10:45. -
Genesect.
User deleted
Mmmm grazie credo che mi servirà quando ho l'influenza per fare una specie di "annuncio" nel mio foro xD . -
.
Altra tipologia di neve che puoi inserire nello sfondo del tuo forum su Forumcommunity, BlogFree e Forumfree. CODICE/* NEVE SUL FORUM */
@keyframes nevica {0% {background-position: 0 0, 0 0, 0 0}
100% {background-position: 600px 600px, 400px 400px, 200px 200px}}
@-webkit-keyframes nevica {0% {background-position: 0 0, 0 0, 0 0}
100% {background-position: 600px 600px, 400px 400px, 200px 200px}}
body:not(.mobile) .snow_effect {position: relative; width: 100%; background-image: url(https://mod.forumfree.it/img/neve/set2_img1.png), url(https://mod.forumfree.it/img/neve/set2_img2.png), url(https://mod.forumfree.it/img/neve/set2_img3.png); animation: nevica 30s linear infinite; -webkit-animation: nevica 30s linear infinite; margin-top: -30px}
.post .nick {text-align: center; white-space: normal; word-wrap: break-word; font-weight: bold; font-size: 15px; color: #888; color: rgba(0, 0, 0, .45); font-family: georgia}
.post .nick:hover {font-family: georgia; font-style: italic}
Come inserire la neve da cellulare/mobile sul tuo forum del circuito Forumcommunity, BlogFree e ForumfreeCODICE/* NEVE SUL FORUM */
@keyframes nevica {0% {background-position: 0 0, 0 0, 0 0}
100% {background-position: 600px 600px, 400px 400px, 200px 200px}}
@-webkit-keyframes nevica {0% {background-position: 0 0, 0 0, 0 0}
100% {background-position: 600px 600px, 400px 400px, 200px 200px}}
header, nav .menuwrap_bg {width: 100%; background-image: url(https://mod.forumfree.it/img/neve/set2_img1.png), url(https://mod.forumfree.it/img/neve/set2_img2.png), url(https://mod.forumfree.it/img/neve/set2_img3.png) !important; animation: nevica 30s linear infinite; -webkit-animation: nevica 30s linear infinite}
Come inserire il cappello di Babbo Natale vicino agli avatar/immagini degli utenti da PCCODICE.topic .avatar::before {content: url(https://upload.forumfree.net/i/fc2505398/santacornerhat.png); margin-left: -12px; margin-top: -5px; position: absolute}
Come inserire il cappello di Babbo Natale vicino agli avatar/immagini degli utenti da mobileCODICE.topic .avatar::before {content: url(https://upload.forumfree.net/i/fc2505398/santacornerhat.png); margin-left: -12px; margin-top: -5px; position: absolute}.