ASP-FastBoard - Demo/Support-Forum
Forum anmelden / register Board
SearchSearch CalendarCalendar GalleryGalleryAuction-PortalAuctions GlobalGlobal Top-ListTopMembersMembers StatisticsStats
get your RSS-Feed
Language/Sprache:  Admin  
 Login: ChatChat (0) new User-MapUser-Mapsend Passwordsend Password RegisterRegister

Forum Overview » Homepagetools - Support » Wünsche » HTML Codes für den Header?
Pages: (2) [1] 2 »
Registration necessaryRegistration necessary
HTML Codes für den Header?
Guestno Access no Access first Post cannot be deleted -> delete the whole Topic 
Group: blocked




Posts: 1877
IP-Address: saved


Hallo

Ich hatte gerade ein wenig im Forum gelesen und in einem Thread habe ich gelesen das man HTML-Codes in den Header einbinden kann.
Da ich nur das Grundgerüst einer HTML Seite bauen kann und mehr nicht, habe ich es mit Javascripts & Html-codes von verschiedenen Seiten ausprobiert.
Nihcts davon hatte funktioniert.
Jetzt meine frage(bzw. Wunsch):
Kann irgend solche Scripts (Mausverfolger oder runterfallender Schnee usw.) erstellen welche in dem Forum funktionieren.
Oder gibt es irgend eine Seite wo solche Scripts schon geschrieben sind und die auch mit dem Forum kombatibel sind???
Hoffe mir kann irgend einer Helfen!

Danke schon mal im Vorraus.


3/4/2006 10:41:24 PM 
Cyberlordno Access no Access no Access 
Group: Administrator
Level: heavy Spammer


Posts: 3610
Joined: 3/11/2004
IP-Address: saved
offline


Hallo,

lösche mal alle Zeilenschaltungen in deinem Javascript.
Diese werden nämlich in HTML (<BR>) umgewandelt.
Dann sollte es funktionieren.
Falls nicht, poste den Link zu deinem Forum.

lg



Forum-Changelog || zu unseren Angeboten
3/4/2006 10:49:45 PM    
Guestno Access no Access no Access 
Group: blocked




Posts: 1877
IP-Address: saved


Wo und was sind Zeilenschaltungen???
Wie kann man die erkennen?


3/4/2006 10:52:10 PM 
Cyberlordno Access no Access no Access 
Group: Administrator
Level: heavy Spammer


Posts: 3610
Joined: 3/11/2004
IP-Address: saved
offline


Wenn eine neue Zeile begonnen wird.
Das komplette Javascript muß in einer einzigen Zeile stehen.



Forum-Changelog || zu unseren Angeboten
3/4/2006 10:53:47 PM    
Guestno Access no Access no Access 
Group: blocked




Posts: 1877
IP-Address: saved


Das geht trotzdem nicht!
Hier ein freies Beispiel:
Quote<SCRIPT language=JavaScript1.2>
var no = 12; // snow number
var speed = 6; // smaller number moves the shamrocks faster
var snowflake = "http://www.beepworld.de/memberdateien/members24/html-help/ball.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>

Wie muss ich das in den Titel einfügen das da Bälle runterfallen?


3/5/2006 10:49:51 AM 
Cyberlordno Access no Access no Access 
Group: Administrator
Level: heavy Spammer


Posts: 3610
Joined: 3/11/2004
IP-Address: saved
offline


Entferne einfach jede Zeilenschaltung und die Kommentare, dann gehts.

lg



Forum-Changelog || zu unseren Angeboten
3/5/2006 11:28:22 AM    
Guestno Access no Access no Access 
Group: blocked




Posts: 1877
IP-Address: saved


<SCRIPT language=JavaScript1.2>var no = 12; var speed = 6; var snowflake = "http://www.beepworld.de/memberdateien/members24/html-help/ball.gif";var ns4up = (document.layers) ? 1 : 0; var ie4up = (document.all) ? 1 : 0;var dx, xp, yp; var am, stx, sty; 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; xp = Math.random()*(doc_width-50); yp = Math.random()*doc_height;am = Math.random()*0; stx = 0.02 + Math.random()/10; sty = 0.7 + Math.random(); if (ns4up) { 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() { for (i = 0; i < no; ++ i) { 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() { for (i = 0; i < no; ++ i) { 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>


jetzt ist alles in einer reihe und es funktioniert immer noch nicht.
Woran leigt das?


3/5/2006 11:36:23 AM 
Cyberlordno Access no Access no Access 
Group: Administrator
Level: heavy Spammer


Posts: 3610
Joined: 3/11/2004
IP-Address: saved
offline


Wenn du mir den Link zu deinem Forum postest kann ich dir sagen wieso.

lg



Forum-Changelog || zu unseren Angeboten
3/5/2006 11:55:12 AM    
Guestno Access no Access no Access 
Group: blocked




Posts: 1877
IP-Address: saved


Der Html-Code für das Favicon (in der Adressleiste ganz links) funktioniert in meinem Forum auch nicht, wenn man es mit dem Internet Explorer anzeigt. Den gleichen Code habe ich in einer anderen Webseite gesehen:

<head> <link rel="SHORTCUT ICON" href="http://www.tvmatrix.net/favicon.ico">

(Warum dieser zur Zeit bei mir auch nicht geht, weiß ich nicht)

Jedenfalls könnte es daran liegen, weil dieser Code nicht im Head ist, sondern im Body-Bereich. Vielleicht ist das auch hier der Grund, weswegen es mit den herunter fallenden Bällen nicht geht.


3/5/2006 12:09:17 PM 
PyR4M!D3no Access no Access no Access 
Group: User
Level: Frischling


Posts: 3
Joined: 3/5/2006
IP-Address: saved
offline


ich hab dir ne PN mit dem Link geschrieben.
Hoffe du kannst mir sagen wieso das nicht funktioniert.


3/5/2006 12:09:51 PM  
PyR4M!D3no Access no Access no Access 
Group: User
Level: Frischling


Posts: 3
Joined: 3/5/2006
IP-Address: saved
offline


written by dieweltist at 05.03.2006 12:09:17
Der Html-Code für das Favicon (in der Adressleiste ganz links) funktioniert in meinem Forum auch nicht, wenn man es mit dem Internet Explorer anzeigt. Den gleichen Code habe ich in einer anderen Webseite gesehen:

<head> <link rel="SHORTCUT ICON" href="http://www.tvmatrix.net/favicon.ico">

(Warum dieser zur Zeit bei mir auch nicht geht, weiß ich nicht)

Jedenfalls könnte es daran liegen, weil dieser Code nicht im Head ist, sondern im Body-Bereich. Vielleicht ist das auch hier der Grund, weswegen es mit den herunter fallenden Bällen nicht geht.


Das mit dem Body könnte es natürlich sein.
Gibt es irgend eine Chance den Code in den Headbereich zu bekommen?


3/5/2006 12:12:10 PM  
gkreuzno Access no Access no Access 
Group: Moderator
Level: treuer Stammposter

Posts: 518
Joined: 8/4/2004
IP-Address: saved
offline


Ich habe es bei mir so geregelt, daß ich folgende Zeile direkt unter die Meta-Tags im Head Bereich reingeschrieben habe:
<link rel="shortcut icon" href="bilder/icetiger.ico">
Wobei natürlich die Angaben bei href= entsprechend dem Verzeichnis sein müssen.
Vielleicht hilft das etwas?

Ups, sehe gerade, daß das das Gleiche ist wie bei dieweltist. Sorry.


edited by gkreuz on 3/5/2006 2:23:28 PM
Gruß, Günther
3/5/2006 1:28:01 PM   
PyR4M!D3no Access no Access no Access 
Group: User
Level: Frischling


Posts: 3
Joined: 3/5/2006
IP-Address: saved
offline


hat den jetzt irgend einer ne Lösung dafür?

@Cyberlord
Kannst du nihct irgendwie machen das man statt im Body Bereich im Head bereich schreiben kann?

oder kann man einen Solchen code in den Body-Bereich bringen?


3/5/2006 6:24:44 PM  
Cyberlordno Access no Access no Access 
Group: Administrator
Level: heavy Spammer


Posts: 3610
Joined: 3/11/2004
IP-Address: saved
offline


Hallo,

man kann den Code genauso im Body-Bereich einfügen.



Forum-Changelog || zu unseren Angeboten
3/5/2006 8:35:54 PM    
Guestno Access no Access no Access 
Group: blocked




Posts: 1877
IP-Address: saved


Ich glaube, dass diese Diskussion wohl in die Irre gegangen ist.

Wenn man einen Html-Code in den Titel schreibt, ist dieser ja schon im Body-Bereich. Das Problem war ja, ob es bei manchen Codes besser wäre, wenn diese oben im Head-Bereich wären, damit sie funktionieren.


3/5/2006 8:48:21 PM 
Registration necessaryRegistration necessary
Pages: (2) [1] 2 »
all Times are GMT +1:00
Thread-Info
AccessModerators
Reading: all
Writing: all
Group: general
Cyberlord
Forum Overview » Homepagetools - Support » Wünsche » HTML Codes für den Header?

.: Script-Time: 0.227 || SQL-Queries: 6 || Active-Users: 2,815 :.
Powered by ASP-FastBoard HE v0.8, hosted by cyberlord.at