The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Help with snow

2 posters

Go down

Help with snow Empty Help with snow

Post by Liquid December 11th 2008, 7:10 pm

Hi
I did ask this in the thread but got no reply and now it is locked.
So i got the code, pasted it in the welcome message and saved.
I look at my forum and all i can see are images falling down, but with no image?

Do i need to like add the image to my forum so it knows of the image?
Here is the link so you can see for your self

http://the-pivot-forum.niceboard.com/forum.htm

Thanks
avatar
Liquid
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Help with snow Empty Re: Help with snow

Post by kirk December 11th 2008, 7:55 pm

lol
the same thing happen to me. that's not a code with a functional image of the snow. the image must have bin deleted or removed from what ever host it was uploaded to..

try this. it's two codes in one. it's for small snow at the top of the page and large snow that will fall through the whole board.
just copy the whole thing and past it.

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

/******************************************
* Εφέ χιονιού για τα φόρουμ σας.
* Ευχαριστούμε τον dj laz που φιλοξενεί την φωτογραφία χιονιού στην ιστοσελίδα του (www.djlaz.com.gr)
* Jorfan:
Μόνο εγγεγραμμένοι χρήστες μπορούν να διαβάσουν τις υπογραφές σε αυτό το forum!
Γραφτείτε ή Συνδεθείτε στο φόρουμ!

| Website: http://staff.forumup.gr
* Original script By Altan d.o.o. (http://www.altan.hr/snow/index.html)
******************************************/
 
  //Άν θέλετε δική σας φωτογραφία για τις νιφάδες χιονιού αλλάξτε την διεύθυνση της φωτογραφίας
  var snowsrc="http://www.djlaz.com.gr/images/snow.gif"
  // Αριθμός νιφάδων χιονιού
  var no = 10;
  // Ρύθμιση μετά απο x δευτερόλεπτα (0=ποτέ):
  var hidesnowtime = 0;
  // Ρυθμίστε πόσο χιόνι θα πέσει πρίν να εξαφανιστεί ("windowheight" or "pageheight")
  var snowdistance = "pageheight";

///////////Τέλος ρυθμίσεων//////////////////////////////////

  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("staff.forumup.gr")!=-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)
      }

</script>

<div id="snow" style="font-family: comic sans ms,arial,times new roman; color: rgb(204, 204, 204); font-weight: bold; font-style: normal; background-color: transparent; z-index: 2;"><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 120px; top: 50px; width: 8px; height: 850px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 170px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="position: absolute; left: 220px; top: 90px; width: 8px; height: 650px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="6" style="position: absolute; left: 270px; top: 30px; width: 8px; height: 770px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 320px; top: 30px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 240px; top: 30px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 140px; top: 30px; width: 8px; height: 500px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 290px; top: 30px; width: 8px; height: 460px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 100px; top: 130px; width: 8px; height: 480px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 360px; top: 30px; width: 8px; height: 730px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 390px; top: 50px; width: 8px; height: 800px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 440px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 470px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 560px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 590px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 520px; top: 170px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 610px; top: 200px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 650px; top: 250px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 290px; width: 8px; height: 780px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 660px; top: 40px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 60px; width: 8px; height: 490px;"><b>°</b></marquee></div>

here i also have this game if you want to add that too.
it all fits. but past the game first and then the snow under it.
<embed src="http://downloads.kewlbox.com/games_online/adventure-elf.dcr" pluginspage="http://www.macromedia.com/shockwave/download/" width="512" height="384"></embed>
Code:
<embed src="http://downloads.kewlbox.com/games_online/adventure-elf.dcr" pluginspage="http://www.macromedia.com/shockwave/download/" width="512" height="384"></embed>
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Help with snow Empty Re: Help with snow

Post by Liquid December 11th 2008, 8:08 pm

Kirk, Thank you very much Smile
The game however, doesn't work as it says 'Click ok to activate active x' or something.
avatar
Liquid
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Help with snow Empty Re: Help with snow

Post by kirk December 11th 2008, 8:12 pm

Liquid wrote:Kirk, Thank you very much Smile
The game however, doesn't work as it says 'Click ok to activate active x' or something.

oh that means your shock-wave flash player is not installed or updated.
if you click the thing on the game it will set it up for ya.it's up to you.
but haveing that will allow you to see or do other things when it comes down to something being on the flash players Smile
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Help with snow Empty Re: Help with snow

Post by Liquid December 12th 2008, 9:59 pm

Sorry, this thread is only a day old and I didn't want to make a new thread just for this..but

How can I make it so the snow falls all the way down, as at the moment, it only goes to what appears to be the browser's page.

Thanks
avatar
Liquid
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum