X-MAS Style mit Schneeflocken !!!?? == FRAGE ZU SCRIPT ==

Alles zu Styles, Templates, Icons und Smilies für phpBB 2.0, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Basti2003
Mitglied
Beiträge: 173
Registriert: 30.06.2002 16:31
Wohnort: hab ich...
Kontaktdaten:

X-MAS Style mit Schneeflocken !!!?? == FRAGE ZU SCRIPT ==

Beitrag von Basti2003 »

hi,


ich will zu weihnachzten ein style einbauen was so n bissl nach schnee und weihnachten aussieht.


1. wie mache ich das, dass auf der ganzen seite schneefolcken durch die gegend wehen ?

2. gibt es ein gutes wewihnachtsstyle für PHPBB und NUKE ?


THX !
Zuletzt geändert von Basti2003 am 23.12.2002 13:12, insgesamt 1-mal geändert.
Basti2003
Mitglied
Beiträge: 173
Registriert: 30.06.2002 16:31
Wohnort: hab ich...
Kontaktdaten:

Beitrag von Basti2003 »

also mit den schneeflcken hab ich schon hinbekommen, aber ich würd das gerne nur bei nem bestimmten theme haben (das suche ich ja auch noch:-))

Code: Alles auswählen

<script language="JavaScript1.2">
<!--

var snowsrc="snow.gif"
var no = 10;
var ns4up = (document.layers) ? 1 : 0;  
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;    
var am, stx, sty; 
var i, doc_width = 1024, doc_height = 768;
if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
  } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
  }

  dx = new Array();
  xp = new Array();
  yp = new Array();
  am = new Array();
  stx = new Array();
  sty = new Array();
  
  for (i = 0; i < no; ++ i) {  
    dx[i] = 0;                        
    xp[i] = Math.random()*(doc_width-50);  
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;         
    stx[i] = 0.02 + Math.random()/10; 
    sty[i] = 0.7 + Math.random();     
    if (ns4up) {                      
      if (i == 0) {
        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><a href=\"http://www.jswelt.de/\"><img src='"+snowsrc+"' border=\"0\"></a></layer>");
      } else {
        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>");
      }
    } else if (ie4up) {
      if (i == 0) {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://java.topcool.de\"><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 snowNS() {  
    for (i = 0; i < no; ++ i) {  
      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();
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
      }
      dx[i] += stx[i];
      document.layers["dot"+i].top = yp[i];
      document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", 10);
  }
  function snowIE() {  
    for (i = 0; i < no; ++ i) {  
      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();
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
      }
      dx[i] += stx[i];
      document.all["dot"+i].style.pixelTop = yp[i];
      document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", 10);
  }

  if (ns4up) {
    snowNS();
  } else if (ie4up) {
    snowIE();
  }
// -->
</script>

</script>
SQRT
Mitglied
Beiträge: 452
Registriert: 17.05.2002 15:10
Wohnort: Köln
Kontaktdaten:

Beitrag von SQRT »

hast schon mal bei www.forumimages.com geschaut, die haben so ein Script! SIeht auch cool aus zusehen ist das zum Beispiel hier
Dwing
Ehrenadmin
Beiträge: 1965
Registriert: 17.06.2001 02:00

Beitrag von Dwing »

also ich hab da auch eins...

öffne
templates/subsilver/overall_header.tpl

Scrolle nach unten und füge:

Code: Alles auswählen

<script LANGUAGE="JavaScript1.2">
<!-- Copyright:  Andre Göntgen -->
<!-- Begin
var no = 15; // Anzahl der Bilder

var xp, yp;    // Koordination- und Positionsvariablen

var i, doc_width = 800, doc_height = 600;

var st, w;

var ns4up = (document.layers) ? 1 : 0;  // Browseridentifizierung

var ie4up = (document.all) ? 1 : 0;

if (ns4up) {

 doc_width = self.innerWidth;
 doc_height = self.innerHeight;

} else if (ie4up) {

 doc_width = document.body.clientWidth;

 doc_height = document.body.clientHeight;

}

xp = new Array();
yp = new Array();
st = new Array();
pic = new Array();

pic[0]="S1.gif"
pic[1]="S1.gif"
pic[2]="S1.gif"
pic[3]="S2.gif"
pic[4]="S2.gif"
pic[5]="S2.gif"
pic[6]="S3.gif"
pic[7]="S3.gif"
pic[8]="S3.gif"
pic[9]="S4.gif"
pic[10]="S4.gif"
pic[11]="S4.gif"
pic[12]="S5.gif"
pic[13]="S5.gif"
pic[14]="S5.gif"

st[0]=1
st[1]=1.1
st[2]=1.2
st[3]=2
st[4]=2.1
st[5]=2.2
st[6]=3
st[7]=3.1
st[8]=3.2
st[9]=4
st[10]=4.1
st[11]=4.2
st[12]=5
st[13]=5.1
st[14]=5.2

w = 3.14 / 360 * 2;  //winkelfunktion

for (i = 0; i < no; ++ i) {
   xp[i]=Math.random()*(doc_width-35);
   yp[i]=Math.random()*(doc_height-20);

  if (ns4up) {                      // Bereiche anlegen
   document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");

   document.write("top=\"15\" visibility=\"show\"><img src=\"");

   document.write(pic[i] + "\" border=\"0\"></layer>");

 } else

  if (ie4up) {

    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");

    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");

    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");

    document.write(pic[i] + "\" border=\"0\"></div>");
     }

}

function snowNS() {  // Animationsfunktion fuer Netscape

 for (i = 0; i < no; ++ i) {  // Ein Schleifendurchlauf fuer jedes Objekt

 yp[i] = yp[i] + st[i];
 xp[i] = xp[i] + Math.sin(yp[i]*w+st[i])*2;
   if (yp[i] > doc_height) {
   xp[i]=Math.random()*(doc_width-35);
   yp[i]=0;
   }

 document.layers["dot"+i].top = yp[i];
 document.layers["dot"+i].left = xp[i];

 }

 setTimeout("snowNS()", 20);

}

function snowIE() {  // Animationsfunktion fuer Internet Explorer

 for (i = 0; i < no; ++ i) {  // Ein Schleifendurchlauf fuer jedes Objekt
 yp[i] = yp[i] + st[i];
 xp[i] = xp[i] + Math.sin(yp[i]*w+st[i])*2;
   if (yp[i] > doc_height) {
   xp[i]=Math.random()*(doc_width-35);
   yp[i]=0;
   }

 document.all["dot"+i].style.pixelTop = yp[i];
 document.all["dot"+i].style.pixelLeft = xp[i];

 }

 setTimeout("snowIE()", 20);

}

if (ns4up) {snowNS();}

else if (ie4up) {snowIE();}

// End -->
</script>
ein.

Lade folgende pics runter:
http://www.dseitz.de/main/s1.gif
http://www.dseitz.de/main/s2.gif
http://www.dseitz.de/main/s3.gif
http://www.dseitz.de/main/s4.gif
http://www.dseitz.de/main/s5.gif

und kopiere sie in den phpBB2 Ordner

Fertig.
Zu sehen unter http://www.dseitz.de nach dem klicken auf Enter
Basti2003
Mitglied
Beiträge: 173
Registriert: 30.06.2002 16:31
Wohnort: hab ich...
Kontaktdaten:

Beitrag von Basti2003 »

das prob ist deine grafiken haben eine hintergundfarbe...



gibts die auch "transparent" ?

also ohne hintergrund(farbe) ?
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

...die gelinkten gif´s sind transparent.
Basti2003
Mitglied
Beiträge: 173
Registriert: 30.06.2002 16:31
Wohnort: hab ich...
Kontaktdaten:

Beitrag von Basti2003 »

nein, denn wenn ich die bei mir hochlade und einbinde, sind die schnee flicken immer mit so einem grau/weiß hinterlegt !
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

Sicher das die Bilder die *.gif Endung haben, wenn Du sie herunterlädst ?


Ich hab vorhin die Bilder ma testweise in eine *.html mit schwarzem Background eingefügt... und es war ka Hintergrund bei den Bildern zu sehen.
fussle
Mitglied
Beiträge: 1246
Registriert: 25.06.2002 07:31

Beitrag von fussle »

hier hast du ein x-mas theme ...

demo theme

download theme
Basti2003
Mitglied
Beiträge: 173
Registriert: 30.06.2002 16:31
Wohnort: hab ich...
Kontaktdaten:

Beitrag von Basti2003 »

hab noch ne farge zu dem shcneeflocken-script von dwing !!


wie kann ich das so machen, dass der schnee bis runter zum ende der seite weht und nicht nur bis zur hälfte ??
Antworten

Zurück zu „phpBB 2.0: Styles, Templates und Grafiken“