Archivlink: javarea.de Forum > JavaScript > Probleme mit Statik-Script
Vollständigen Link anzeigen: javarea.de Forum > JavaScript > Probleme mit Statik-Script

Pages: [1]

geschrieben von Melanie01 am 09.02.2006 - 17:25
Hallo zusammen,

hab da ein Problem mit dem Statik-Script, welches ich hier aus dem Forum habe. Könnte mir wohl jemand den Link von dem Logo nehmen? Ich bin dazu nicht imstande.

Gruß
Melanie

HTML-Quelltext
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
31: 
32: 
33: 
34: 
35: 
36: 
37: 
38: 
39: 
40: 
41: 
42: 
43: 
44: 
45: 
46: 
47: 
48: 
49: 
50: 
51: 
52: 
53: 
54: 
55: 
56: 
57: 
58: 
59: 
60: 
61: 
62: 
63: 
64: 
65: 
66: 
67: 
68: 
69: 
70: 
71: 
72: 
73: 
74: 
75: 
76: 
77: 
78: 
79: 
80: 
81: 
82: 
83: 
84: 
85: 
86: 
87: 
88: 
89: 
90: 
91: 
92: 
93: 
94: 
95: 
96: 
97: 
98: 
99: 
100: 
101: 
102: 
103: 
104: 
105: 
106: 
107: 
108: 
109: 
110: 
111: 
112: 
113: 
114: 
<STYLE TYPE="text/css">
<!--
	#logo{position: absolute;visibility: hide;}

// -->
</style>

<script language="JavaScript">
<!--

// Bildinformationen
var imgURL	= "http://www.javarea.de/banner/anim_banner_k02.gif";
var imgWidth	= 136;	// Breite
var imgHeight = 30;	// Hoehe

// Intervall fuer Positionspruefung in ms
var posInterval= 25;

// Extraabstaende
var extraX	= 20;	// Abstand fuer vertikalen Rollbalken
var extraY	= 20;	// Abstand fuer horizontalen Rollbalken

// Position
var wPosition	= 3;	// 1: oben links, 2: oben rechts, 3: unten rechts, 4: unten links

// Zentrieren des Hintergrundbilds
function positionierung()
{
var	ntop;
var	nleft;

if(document.logo)
{
with(document.logo)
{
ntop	= window.pageYOffset;
nleft	= window.pageXOffset;
if(wPosition == 3 || wPosition == 4)
ntop	+= innerHeight - imgHeight;
if(wPosition == 2 || wPosition == 3)
nleft	+= innerWidth - imgWidth
if(scrollbars.visible)
{
if(wPosition == 3 || wPosition == 4)
ntop	-= extraX;
if(wPosition == 2 || wPosition == 3)
nleft	-= extraY;
}
if(ntop != top || nleft != left)
{
top	= ntop;
left	= nleft;
}
}
}
else if(logo)
{
with(logo)
{
ntop	= document.body.scrollTop;
nleft	= document.body.scrollLeft;
if(wPosition == 3 || wPosition == 4)
ntop	+= Number(document.body.clientHeight) - imgHeight;
if(wPosition == 2 || wPosition == 3)
nleft	+= Number(document.body.clientWidth) - imgWidth;
if(ntop != style.top || nleft != style.left)
{
style.top	= ntop;
style.left	= nleft;
}
}
}
else
return
}

// Initialisierung der Darstellung
function init()
{
if(document.logo)
with(document.logo.document)
{
open("text/html")
write("<A HREF=\"http://javarea.de\" onClick=\"positionierung(); return true\">"+
"<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\"></A>");
close()
width	= imgWidth;
height	= imgHeight;
}
else if(logo)
with(logo)
{
innerHTML	= "<A HREF=\"http://javarea.de\" onClick=\"positionierung(); return true\"> "+
"<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\"></A>"
style.width	= imgWidth;
style.height	= imgHeight;
}
else
return
positionierung()
if(document.logo)
document.logo.visibility	= "show";
else
logo.visibility	= "visible";
setInterval("positionierung()", posInterval)
}
// -->
</script>
<DIV ID="logo"></DIV>


<body onload="init()" onResize="positionierung()" onScroll="positionierung()">


geschrieben von Melanie01 am 13.02.2006 - 00:48
Kann mir denn wirklich niemand hier den Link aus dem Logo nehmen???

geschrieben von Matneu am 13.02.2006 - 08:42
Ist nicht wirklich schwer, Du musst lediglich das <a href=.....> und das </a> aus der Ausgabe entfernen.

So far...
Matthias

geschrieben von Cluster am 14.02.2006 - 09:20
Zitat
 Original geschrieben von Melanie01 am 09.02.2006 - 17:25
HTML-Quelltext
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
31: 
32: 
33: 
34: 
...
// Initialisierung der Darstellung
function init()
{
if(document.logo)
with(document.logo.document)
{
open("text/html")
write("<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\">");
close()
width	= imgWidth;
height	= imgHeight;
}
else if(logo)
with(logo)
{
innerHTML	= "<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\">"
style.width	= imgWidth;
style.height	= imgHeight;
}
else
return
positionierung()
if(document.logo)
document.logo.visibility	= "show";
else
logo.visibility	= "visible";
setInterval("positionierung()", posInterval)
}
// -->
</script>
...



geschrieben von Melanie01 am 14.02.2006 - 10:03
Hallo Ihr Beiden,

DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANKE!!!

Werd´s gleich mal ausprobieren. Der Link könnte theoretisch auch dort bleiben, aber wenn man es auf die gleiche Seite verlinkt, rutscht alles nach unten ab. Warum auch immer.

Anyway - noch mal danke!

LG
Melanie

geschrieben von Melanie01 am 14.02.2006 - 10:39
Hat gefunzt! Nochmal vielen Dank!


Powered by: JBB v.2.0.4 Copyright ©2000-2006, www.javarea.de.