SnowWWWw
5 posters
Page 1 of 1
SnowWWWw
Anyone know how to make it snow on your forum?
IA03- New Member
- Posts : 21
Reputation : 6
Language : infect ME WITH LOVE HOT STUFF
Location : MAGNET HOT HOT HOT
Re: SnowWWWw
ok is no one goings to help me??
IA03- New Member
- Posts : 21
Reputation : 6
Language : infect ME WITH LOVE HOT STUFF
Location : MAGNET HOT HOT HOT
Re: SnowWWWw
IM GETTINGS POSSED OFF! ANSWER NOW
IA03- New Member
- Posts : 21
Reputation : 6
Language : infect ME WITH LOVE HOT STUFF
Location : MAGNET HOT HOT HOT
Re: SnowWWWw
IA03 wrote:IM GETTINGS POSSED OFF! ANSWER NOW
There's no need for that attitude. If someone has an answer, then they will reply in their own time. Please be patient, we can't reply to your question immediately. Also, please don't double post - posts should be separated by 24 hours. Use the edit button. Thank you for your understanding.
Re: SnowWWWw
well ur a mod so answer my question
IA03- New Member
- Posts : 21
Reputation : 6
Language : infect ME WITH LOVE HOT STUFF
Location : MAGNET HOT HOT HOT
Re: SnowWWWw
I will when I have an answer. I am no different to other members, I don't have an answer just like that.
I am actively looking for a solution to your problem, and once I have that solution I will most certainly post it.
Edit: Add this to your homepage message for a snowing effect:
I am actively looking for a solution to your problem, and once I have that solution I will most certainly post it.
Edit: Add this to your homepage message for a snowing effect:
- Code:
<script type="text/javascript">
var speed=40; // Speed
var flakes=20; // Number of flakes
var flake_image="http://icons.iconarchive.com/icons/aha-soft/jewelry/24/Snowflake-icon.png"; //url of the image
var swide, shigh;
var dx=new Array();
var xp=new Array();
var yp=new Array();
var am=new Array();
var sty=new Array();
window.onload=function() { if (document.getElementById) {
var k, f, b;
b=document.createElement("div");
b.style.position="absolute";
b.setAttribute("id", "bod");
document.body.appendChild(b);
set_scroll();
set_width();
for (var i=0; i<flakes; i++) {
dx[i]=0;
am[i]=Math.random()*20;
xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
yp[i]=Math.random()*shigh;
sty[i]=0.75+1.25*Math.random();
f=document.createElement("div");
f.style.position="absolute";
f.setAttribute("id", "flk"+i);
f.style.zIndex=i;
f.style.top=yp[i]+"px";
f.style.left=xp[i]+"px";
k=document.createElement("img");
k.src=flake_image;
f.appendChild(k);
b.appendChild(f);
}
setInterval("winter_snow()", speed);
}}
window.onresize=set_width;
function set_width() {
if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (typeof(self.innerHeight)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
else {
swide=800;
shigh=600
}
}
window.onscroll=set_scroll;
function set_scroll() {
var sleft, sdown;
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
document.getElementById("bod").style.top=sdown+"px";
document.getElementById("bod").style.left=sleft+"px";
}
function winter_snow() {
for (var i=0; i<flakes; i++) {
yp[i]+=sty[i];
if (yp[i]>shigh-30) {
xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
yp[i]=0;
sty[i]=0.75+1.25*Math.random();
}
dx[i]+=0.02+Math.random()/10;
document.getElementById("flk"+i).style.top=yp[i]+"px";
document.getElementById("flk"+i).style.left=(xp[i]+am[i]*Math.sin(dx[i]))+"px";
}
}
</script>
Re: SnowWWWw
Asriel wrote:IA03....so rude!
I have already dealt with IA03. There is no need for any further comments. Please do not post if you don't have an answer for the question at hand, thank you.
Re: SnowWWWw
Hello,
You may also try this code:
Regards!
You may also try this code:
- Code:
//Image
var snowsrc="http://astuforum.free.fr/images/neige.gif"
// How much images
var no = 10;
/ / If you wants snow stop after a while, you may set this here(0 = never):
var hidesnowtime = 0;
/ / Configures the distance ("windowheight"or "PageHeight")
var snowdistance = "pageheight";
///////////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("dynamicdrive.com")!=-1)? "snow.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: absolute; 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: absolute; 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)
}
Regards!
FDF Portuguese- New Member
- Posts : 5
Reputation : 2
Language : Portuguese, English
Re: SnowWWWw
OK THAN!
ARSIEL SHUT UR MOUTH NOBODY WANNA HEAR UR RUDE COMMMENT
ARSIEL SHUT UR MOUTH NOBODY WANNA HEAR UR RUDE COMMMENT
IA03- New Member
- Posts : 21
Reputation : 6
Language : infect ME WITH LOVE HOT STUFF
Location : MAGNET HOT HOT HOT
Re: SnowWWWw
Garbaged, since member is banned.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum