Archivlink: javarea.de Forum > JavaScript > Galaxy Skript
Vollständigen Link anzeigen: javarea.de Forum > JavaScript > Galaxy Skript

Pages: [1]

geschrieben von Soidberg am 26.07.2005 - 14:58
Hy @ all.

Ich probiere euer Galaxyskript ( http://www.javarea.de/index.php3?op....mp;id=341) vergeblich einzubauen. Wenn ich mir die Beschreibung sowie das Demo auf eurer Seite mit Firefox anschaue wird die Maus nicht verfolgt (was auch ok ist!). Ich sehe die "Sterne" einfach animiert oben rechts in der Ecke. Jetzt möchte ich diese "animierte ecke" auch bei mir einbauen, die Seite bleibt aber weiß.

Ich habe das Script einfach kopiert und im Webeditor eingefügt.

Gibt es nicht eigentlich auch Dateien zum Dowload bei diesem Skript?

Gruß Soidberg

geschrieben von Patrick am 02.08.2005 - 19:27
HAllo,

poste mal einen Link oder deinen Quelltext.

Es gibt keine Dateien zum Downloaden, da es scih bei den "Grafiken" um bunte Layer handelt.

mfG,
Patrick

geschrieben von Soidberg am 03.08.2005 - 17:56
Hy,

Hier mal der Code:

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: 
115: 
116: 
117: 
118: 
119: 
120: 
121: 
122: 
123: 
124: 
125: 
126: 
127: 
128: 
<html>

<head>
<title>Bunte Ecke</title>
</head>

<body>
<p> <body onload="" onmousemove="movehandler2()" setInterval('move()', 80)">

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

function movehandler2(){
Xpos=event.clientX;
Ypos=event.clientY;
}
userAgent=navigator.appName + " " + navigator.appVersion;
agentInfo=userAgent.substring(0, 12);
overLink = 0;
yBase = 200;
xBase = 200;
delay = 20;
yAmpl = 10;
yMax = 40;
step = .2;
ystep = .5;
currStep = 0;
tAmpl=1;
Xpos = 50;
Ypos = 50;
j = 0;
var breite;
if (document.layers)  {
     n = 1; ie = 0; }
else
{     n = 0; ie = 1;
}
function animateLogo()
{
if (n){
  yBase = window.innerHeight/6 ;
  xBase = window.innerWidth/8;
  for ( j = 0 ; j < 4 ; j++ )
  {
	   var layername="p"+j;
	   if (overLink==1)
	   {
		   document.layers["p"+j].top = Ypos + Math.sin(currStep+j*30)*yBase/4;
		   document.layers["p"+j].left = Xpos + Math.cos(currStep+j*30)*xBase/4;
	   }
	   else
	   {
document.layers["p"+j].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
document.layers["p"+j].left = Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
	   }
  }
  currStep += step;
  setTimeout("animateLogo()", delay ) ;
}
else {
  yBase = document.body.offsetHeight/6 ;
  xBase = document.body.offsetWidth/8;
  for ( j = 0 ; j < 4 ; j++ )
  {
	   var layername="p"+j;
	   if (overLink==1)
	   {
p0.style.top = Ypos + Math.sin(currStep)*yBase/4;
p0.style.left = Xpos + Math.cos(currStep)*xBase/4;
p1.style.top = Ypos + Math.sin(currStep + 30)*yBase/4;
p1.style.left = Xpos + Math.cos(currStep + 30)*xBase/4;
p2.style.top = Ypos + Math.sin(currStep + 60)*yBase/4;
p2.style.left = Xpos + Math.cos(currStep + 60 )*xBase/4;
p3.style.top = Ypos + Math.sin(currStep + 90)*yBase/4;
p3.style.left = Xpos + Math.cos(currStep + 90)*xBase/4;
	   }
	   else
	   {
p0.style.top=Ypos + Math.cos((20*Math.sin(currStep/20)))*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep)/10);
p0.style.left= Xpos + Math.sin((20*Math.sin(currStep/20)))*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep)/10);
p1.style.top=Ypos + Math.cos((20*Math.sin(currStep/20))+70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + 25)/10);
p1.style.left= Xpos + Math.sin((20*Math.sin(currStep/20)) + 70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + 25)/10);
p2.style.top=Ypos + Math.cos((20*Math.sin(currStep/20))+140)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + 50)/10);
p2.style.left= Xpos + Math.sin((20*Math.sin(currStep/20)) + 140)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + 50)/10);
p3.style.top=Ypos + Math.cos((20*Math.sin(currStep/20))+210)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + 75)/10);
p3.style.left= Xpos + Math.sin((20*Math.sin(currStep/20)) + 210)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + 75)/10)
	   }
  }
  currStep += step;
  setTimeout("animateLogo()", delay ) ;
}
}
function MoveHandler(evnt)
{
  Xpos = evnt.pageX ;
  Ypos = evnt.pageY ;
}
function Galaxy()
{
	if(agentInfo >= "Netscape 4.0")
	{
document.write("<layer NAME='p0' LEFT='10' TOP='10' Z-INDEX='10' VISIBILITY='SHOW' CLIP='0,0,12,12' IMG SRC='punkt.gif'></layer>");
document.write("<layer NAME='p1' LEFT='10' TOP='10' Z-INDEX='11' VISIBILITY='SHOW' CLIP='0,0,12,12' IMG SRC='punkt.gif'></layer>");
document.write("<layer NAME='p2' LEFT='10' TOP='10' Z-INDEX='12' VISIBILITY='SHOW' CLIP='0,0,12,12' IMG SRC='punkt.gif'></layer>");
document.write("<layer NAME='p3' LEFT='10' TOP='10' Z-INDEX='13' VISIBILITY='SHOW' CLIP='0,0,12,12' IMG SRC='punkt.gif'></layer>");
window.captureEvents(Event.MOUSEMOVE);
window.onMouseMove = MoveHandler;
		animateLogo();
	}
else
	{
		animateLogo();
	}
}
// -->
</script>
<div id="p0" style="position:absolute; LEFT:10; TOP:10; Z-INDEX:10; VISIBILITY:sHOW; CLIP:0,0,12,12;"><img SRC="punkt.gif" WIDTH="9" HEIGHT="9"></div>
<div id="p1" style="position:absolute; LEFT:10; TOP:10; Z-INDEX:10; VISIBILITY:sHOW; CLIP:0,0,12,12;"><img SRC="punkt.gif" WIDTH="9" HEIGHT="9"></div>
<div id="p2" style="position:absolute; LEFT:10; TOP:10; Z-INDEX:10; VISIBILITY:sHOW; CLIP:0,0,12,12;"><img SRC="punkt.gif" WIDTH="9" HEIGHT="9"></div>
<div id="p3" style="position:absolute; LEFT:10; TOP:10; Z-INDEX:10; VISIBILITY:sHOW; CLIP:0,0,12,12;"><img SRC="punkt.gif" WIDTH="9" HEIGHT="9"></div>
<script language="JavaScript">
<!--
	Galaxy();
// -->
</script></p>
</body>

</html>


Bei mir bleibt die Seite komplett weiß, die layer sind ebenfalls weiß.

Gruss Soidberg

geschrieben von weisnix am 04.08.2005 - 08:44
Hallo,

so mal neben bei, hast du das punkt.gif auch im selben Ordner, oder etwa gar nicht drin?

Gruß

geschrieben von Soidberg am 04.08.2005 - 13:06
Zitat
  Original geschrieben von Patrick am 02.08.2005 - 19:27
Es gibt keine Dateien zum Downloaden, da es scih bei den "Grafiken" um bunte Layer handelt.


Das war ja meine Frage...habe das Punk.gif mal von dir "geklaut". Jetzt Funzt es! Super danke...

Soidberg




geschrieben von Patrick am 04.08.2005 - 17:31
Zitat
  Original geschrieben von Soidberg am 04.08.2005 - 13:06
Zitat
  Original geschrieben von Patrick am 02.08.2005 - 19:27
Es gibt keine Dateien zum Downloaden, da es scih bei den "Grafiken" um bunte Layer handelt.


Das war ja meine Frage...habe das Punk.gif mal von dir "geklaut". Jetzt Funzt es! Super danke...

Soidberg






Da hatte ich wohl was an den Augen... Sorry


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