Computerhilfen.de Logo
Forum
Tipps
News
Frage stellen

Skript Code einbinden?

Hallo,

ich hab mir ein HTML Code aus dem internet gezogen.
Der Code soll es auf meiner HP Feuer Regnen Lassen und nun möcht ich wissen wo ich den Code in den Quelltext einbinden muss!

Kann mir da wer weiter helfen?


Gruß Jonny

« Letzte Änderung: 12.03.05, 12:39:23 von Jonny83 »

Antworten zu Skript Code einbinden?:

Hat dir diese Antwort geholfen?

Danke ButtonHilfreiche Antwort Button

Und der Code?

was und der Code?


bei www.bambusratte.de gibts den code zu sehen!


Gruß Jonny

Hat dir diese Antwort geholfen?

Danke ButtonHilfreiche Antwort Button
was und der Code?
Na den müsste man schon mal sehen.
bei www.bambusratte.de gibts den code zu sehen!
Ne du, geht irgendwie nicht.

Generell solltest du den Code einfach da einbauen, wo das, was dahintersteckt, erscheinen soll. Also zum Beispiel in eine Tabellenzeile.

greez 8)
JoSsiF

klar gibts da nen Code ....
geh auf HTML Codes du schlaumeier!

hier sind die Codes:

http://bambusratte.com/html-htmlcodes.php


und so sieht der Code aus den ich einbauen will...

Zitat
<SCRIPT language=JavaScript1.2>
var no = 5; // snow number
var speed = 7; // smaller number moves the shamrocks faster
var snowflake = "http://www.nightfire.ch/java/jscript/fire.gif";
var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
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 (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 = 0;                        // set coordinate variables
xp = Math.random()*(doc_width-50);  // set position variables
yp = Math.random()*doc_height;
am = Math.random()*0;         // set amplitude variables
stx = 0.02 + Math.random()/10; // set step variables
sty = 0.7 + Math.random();     // set step variables
if (ns4up) {                      // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
   }
} else if (ie4up) {
if (i == 0) {
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(snowflake + "\" border=\"0\"></div>");
} else {
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(snowflake + "\" border=\"0\"></div>");
      }
   }
}
function snowNS() {  // Netscape main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp += sty;
if (yp > doc_height-50) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx += stx;
document.layers["dot"+i].top = yp;
document.layers["dot"+i].left = xp + am*Math.sin(dx);
}
setTimeout("snowNS()", speed);
}
function snowIE() {  // IE main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp += sty;
if (yp > doc_height-50) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx += stx;
document.all["dot"+i].style.pixelTop = yp;
document.all["dot"+i].style.pixelLeft = xp + am*Math.sin(dx);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
</SCRIPT>

Gruß Jonny

Hat dir diese Antwort geholfen?

Danke ButtonHilfreiche Antwort Button
klar gibts da nen Code ....
geh auf HTML Codes du schlaumeier!
>:( Fällt dir irgendwas auf? Schonmal gecheckt, was für eine Domain du vorher gepostet hast? Klar, kann jedem mal passieren. Aber dann halt mal die Bälle flach...

Also: das ist JavaScript. Ohne jetzt alles zu durchforsten würde ich spontan sagen, dass du das Skript mal in den Head deiner HTML-Datei reinkopierst.

greez
JoSsiF

« DownloadsFrage zu Frontpage »
 

Schnelle Hilfe: Hier nach ähnlichen Fragen und passenden Tipps suchen!

Fremdwörter? Erklärungen im Lexikon!
HTML
HTML steht für Hyper Text Markup Language, ist die Sprache, mit der Internetseiten kodiert werden. Es handelt sich dabei um ASCII Text, in den die HTML Befehle einge...

XHTML
Die Extensible Hypertext Markup Language, kurz XHTML, ist eine textbasierte Auszeichnungssprache zur semantischen Auszeichnung von Bildern, Texten und Hyperlinks in Dokum...

Quellcode
Ein Quellcode, auch als Quelltext bekannt, bezeichnet den unkompilierten Programm-Code einer Software. Quell- oder Programm-Code ist der auch für Menschen lesbare Co...