Archivlink: javarea.de Forum > JavaScript > Problem mit Script
Vollständigen Link anzeigen: javarea.de Forum > JavaScript > Problem mit Script

Pages: [1]

geschrieben von t1mm3y am 11.08.2006 - 01:44
Hi leute,habe folgendes Problem,bin grad ne Homepage am basteln und wollte da 2 Java scripts einfügen,zum einen nen Mausbanner und zum zweiten einen Durchlaufenden Text am Ende der Seite!Leider Funzt eins von beidem immer nicht wenn ich die daten in den HTML Code eingegeben habe=(...Hoffe ihr könnt mir vllt weiter helfen!

Bin Langsam echt schon am verzweifeln...

MFG Tim

geschrieben von t1mm3y am 11.08.2006 - 01:45
Hier noch der HTML 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: 
129: 
130: 
131: 
132: 
133: 
134: 
135: 
136: 
137: 
138: 
139: 
140: 
141: 
142: 
143: 
144: 
145: 
146: 
147: 
148: 
149: 
150: 
151: 
152: 
153: 
154: 
155: 
156: 
157: 
158: 
159: 
160: 
161: 
162: 
163: 
164: 
165: 
<html>

<head>
<meta http-equiv="Content-Language" content="de">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Start</title>
</head>

<body bgcolor="#F6A712">

<div align="left">
	&nbsp;<table border="0" cellpadding="0" cellspacing="0" width="985" height="956">
		<!-- MSTableType="layout" -->
		<tr>
			<td valign="top">
			<!-- MSCellType="DecArea" -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
				<!-- MSCellFormattingTableID="4" -->
				<tr>
					<td bgcolor="#000000" colspan="2" height="2">
					<img alt="" width="1" height="2" src="images/MsSpacer.gif"></td>
				</tr>
				<tr>
					<td bgcolor="#000000" width="2">
					<img alt="" width="2" height="1" src="images/MsSpacer.gif"></td>
					<td valign="top" height="100%" width="100%">
					<!-- MSCellFormattingType="content" -->
					&nbsp;</td>
				</tr>
			</table>
			</td>
			<td valign="top">
			<!-- MSCellType="ContentHead" -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
				<!-- MSCellFormattingTableID="2" -->
				<tr>
					<td bgcolor="#000000" colspan="2" height="2">
					<img alt="" width="1" height="2" src="images/MsSpacer.gif"></td>
				</tr>
				<tr>
					<td valign="top" width="100%">
					<!-- MSCellFormattingType="content" -->
					<object classid="clsid27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="845" height="160">
						<param name="movie" value="Movie.swf">
						<param name="quality" value="High">
						<param name="bgcolor" value="#f6a712">
						<param name="loop" value="false">
						<param name="menu" value="false">
						<embed src="Movie.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="845" height="160" quality="High" bgcolor="#f6a712" loop="false" menu="false"></object>
					</td>
					<td bgcolor="#000000" height="100%" width="2">
					<img alt="" width="2" height="1" src="images/MsSpacer.gif"></td>
				</tr>
				<tr>
					<td bgcolor="#000000" colspan="2" height="1">
					<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
				</tr>
			</table>
			</td>
		<td height="123"></td>
		</tr>
		<tr>
			<td valign="top" width="136" height="833">
			<!-- MSCellType="NavBody" -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
				<!-- MSCellFormattingTableID="3" -->
				<tr>
					<td bgcolor="#000000" width="2">
					<img alt="" width="2" height="1" src="images/MsSpacer.gif"></td>
					<td valign="top" width="100%">
					<!-- MSCellFormattingType="content" -->
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center"><a href="Impressum.htm">
					<img border="0" src="Impressum.jpg" width="129" height="14"></a></p>
					<p align="center"><a href="disclamer.htm">
					<img border="0" src="Disclaimer.jpg" width="124" height="14"></a></p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">&nbsp;</p>
					<p align="center">
					<img border="0" src="Links.jpg" width="92" height="20"></p>
					<p align="center"><font face="Arial" size="2"><b>
					<a href="http://www.kult-online.com/"><font color="#FFFFFF">
					Rock Café Kult Frankenberg</font></a></b></font></p>
					<p align="center"><a href="http://www.kult-online.com/">
					<img border="0" src="KultOnline.jpg" width="112" height="112"></a></td>
					<td bgcolor="#000000" height="100%" width="1">
					<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
				</tr>
				<tr>
					<td bgcolor="#000000" colspan="3" height="2">
					<img alt="" width="1" height="2" src="images/MsSpacer.gif"></td>
				</tr>
			</table>
			</td>
			<td valign="top" width="847">
			<!-- MSCellType="ContentBody" -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
				<!-- MSCellFormattingTableID="1" -->
				<tr>
					<td bgcolor="#000000" colspan="3" height="1">
					<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
				</tr>
				<tr>
					<td bgcolor="#000000" width="1">
					<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
					<td valign="top" width="100%">
					<!-- MSCellFormattingType="content" -->
					&nbsp;</td>
					<td bgcolor="#000000" height="100%" width="2">
					<img alt="" width="2" height="1" src="images/MsSpacer.gif"></td>
				</tr>
				<tr>
					<td bgcolor="#000000" colspan="3" height="2">
					<img alt="" width="1" height="2" src="images/MsSpacer.gif"></td>
				</tr>
			</table>
			</td>
			<td height="833" width="2"></td>
		</tr>
	</table>
</div>

<body onload="makesnake()">

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

	  var timerID = null;
          var timerRunning = false;
          var id,pause=0,position=0;
          function marquee() {
                  var i,k,msg="Hier den Text für den Durchlauf am ende der Seite";
                  k=(75/msg.length)+1;
                  for(i=0;i<=k;i++) msg+=" "+msg;
                  document.marqueeform.marquee.value=msg.substring(position,position+180);
                  if(position++==180) position=0;
                  id=setTimeout("marquee()",1000/10); }
          function action() {
                  if(!pause) {
                          clearTimeout(id);
                          pause=1; }
                  else {
                          marquee();
                          pause=0; } }
          // -->
</script>
<form name="marqueeform"><input type="text" name="marquee" size="160"></form>

<body onload="makesnake()">

<style>
	.spanstyle {position:absolute;visibility:visible;top:-50px;font-size:10pt;font-family:Verdana;font-weight:bold;color:black;}
</style>

geschrieben von t1mm3y am 11.08.2006 - 01:45

geschrieben von pyscho am 11.08.2006 - 12:57
hi @ t1mm3y,

es wäre besser wenn du den Code - Schnipsel zwischen den [(code)] und [/(code)] setzen würdest ( ohne die runden Klammern ).

ich habe für dich ein Link gesucht die da gezeigt wird wie der Mausbanner realisiert werden kann. Du willst doch einen textbasierten Mausbanner oder ?

also hier der Link zur Seite:


Der Mausbanner


Für den Laufschrift kannst du ein Beispiel unter dem Link sehen

Laufschrift


Viel Glück t1mm3y

geschrieben von weisnix am 11.08.2006 - 19:18
Mit dem zusammen kopierten Quelltext fange ich leider nichts an.

geschrieben von René am 12.08.2006 - 08:04
und es darf nur einen öffnenden und einen schließenden <body ... > geben.

für deinen Lauftext reicht das hier aus du brauchst kein JavaScript.


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