WebWork Magazin - Webseiten erstellen lassen, Online Medien, html

Webhoster, Webhosting Provider und Domain registrieren

Home | Registrieren | Einloggen | Suchen | Aktuelles | GSL-Webservice | Suleitec Webhosting
Reparatur-Forum | Elektro forum | Ersatzteilshop Haushalt und Elektronik


Homepage und Webhosting-Forum

Scripte und Programme für PHP, MYSQL. Diskussionen zur Programmierung im Web. Fragen zu CMS, Blogsoftware, Shops, Newsletter und vielen weiteren Scripten.


Forum » PHP & MySQL » PHP-Include klappt nicht! » Antworten
Benutzername:
Passwort: Passwort vergessen?
Inhalt der Nachricht: Fett | Kursiv | Unterstrichen | Link | Bild | Smiley | Zitat | Zentriert | Quellcode| Kleiner Text
Optionen: Emailbenachrichtigung bei Antworten
 

Die letzten 5 Postings in diesem Thema » Alle anzeigen
von Marvin85
Sehr vielen Dank für deine nette Hilfe.
von raiserle
ne nicht nur text...

du hast 2 a-tags aufgemacht
der erste hatte volkommen irgend einen wirrwar bekommen
<a href='<a href="index.php?action=news">Text</a>'><img id="news1" src="bilder/buttons/news1.gif" alt="" name="news1" height="19" width="56" border="0" /></a>

<a href='<.......>'</a>
dort steht doch nun wirklich wirrwar drin
der 2. a-tag ist doch der den du wolltest und um ein image zu einem link zu machen.. richtig musste ihn nur in ein link packen
<a href='<a href="index.php?action=news">Text</a>'><img id="news1" src="bilder/buttons/news1.gif" alt="" name="news1" height="19" width="56" border="0" /></a>
unterstrichen erster a tag dick 2. a tag
link im link und dann noch sone sachen die gar kein ziel bilden
von Marvin85
super !!
Es Klappt !!
Vielen vielen dank !!

Kannst du mir auch erklären warum das so ist ?
wäre dir sehr sehr dankbar !
weil du hast ja nur Text</a>' weggelassen
von raiserle
<a href='<a href="index.php?action=news">Text</a>'><img id="news1" src="bilder/buttons/news1.gif" alt="" name="news1" height="19" width="56" border="0" /></a>

versuch mal damit zu ersetzen
<a href="index.php?action=news"><img id="news1" src="bilder/buttons/news1.gif" alt="" name="news1" height="19" width="56" border="0" /></a>
von Marvin85
Hier nun die Datei index.php.
Ich hoffe du kannst den Fehler finden.
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:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
		<style type="text/css" media="screen"><!--
#Ebene1 { height: 600px; width: 570px; left: 430px; top: 220px; position: absolute; visibility: visible; }
--></style>
		<csscriptdict import="import">
			<script type="text/javascript" src="GeneratedItems/CSScriptLib.js"></script>
		</csscriptdict>
		<csactiondict>
			<script type="text/javascript"><!--
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		pre_home2 = newImage('bilder/buttons/home2.gif');
		pre_downloads2 = newImage('bilder/buttons/downloads2.gif');
		pre_kontakt2 = newImage('bilder/buttons/kontakt2.gif');
		pre_email2 = newImage('bilder/buttons/email2.gif');
		preloadFlag = true;
	}
}

// --></script>
		</csactiondict>
	</head>

	<body onload="preloadImages();" background="bilder/sterne.gif" bgcolor="black">
		<div style="position:relative;width:753px;height:801px;margin:auto;-adbe-g:p,8,8;" onmouseover="changeImages('_img','bilder/buttons/home2.gif');return true">
			<div style="position:absolute;top:0px;left:2px;width:750px;height:188px;">
				<img src="bilder/banner750px.jpg" alt="" height="188" width="750" border="0" /></div>
			<div style="position:absolute;top:224px;left:178px;width:573px;height:560px;">
				<table width="573" border="0" cellspacing="2" cellpadding="0" height="560">
					<tr>
						<td valign="top">
						<?php 
	switch ($_GET['action']) {
case "home": include("home.php"); break; 
case "news": include("news.php"); break; 
case "downloads": include("downloads.php"); break;  
case "kontakt": include("kontakt.php"); break;
case "email": include("email.php"); break;
case "impressum": include("impressum.php"); break;  
default: include("home.php");
} 
?>
				</td>
					</tr>
				</table>
			</div>
			<div style="position:absolute;top:208px;left:8px;width:167px;height:589px;">
				<table width="167" border="0" cellspacing="0" cellpadding="0" align="left">
					<tr align="left" height="45">
						<td width="167" height="45"><a href='<a href="index.php?action=home">Text</a>'><img id="home1" src="bilder/buttons/home1.gif" alt="" name="home1" height="20" width="62" border="0" /></a></td>
					</tr>
					<tr height="45">
						<td width="167" height="45"><a href='<a href="index.php?action=news">Text</a>'><img id="news1" src="bilder/buttons/news1.gif" alt="" name="news1" height="19" width="56" border="0" /></a></td>
					</tr>
					<tr height="45">
						<td width="167" height="40"><a onmouseover="changeImages('downloads1','bilder/buttons/downloads2.gif');return true" onmouseout="changeImages('downloads1','bilder/buttons/downloads1.gif');return true" href="downloads.php"><img id="downloads1" src="bilder/buttons/downloads1.gif" alt="" name="downloads1" height="24" width="116" align="left" border="0" /></a></td>
					</tr>
					<tr height="45">
						
						<td width="167" height="45"><a onmouseover="changeImages('kontakt1','bilder/buttons/kontakt2.gif');return true" onmouseout="changeImages('kontakt1','bilder/buttons/kontakt1.gif');return true" href="kontakt.php"><img id="kontakt1" src="bilder/buttons/kontakt1.gif" alt="" name="kontakt1" height="23" width="87" border="0" /></a></td>
					</tr>
					<tr height="45">
						<td width="167" height="45"><a onmouseover="changeImages('email1','bilder/buttons/email2.gif');return true" onmouseout="changeImages('email1','bilder/buttons/email1.gif');return true" href="email.php"><img id="email1" src="bilder/buttons/email1.gif" alt="" name="email1" height="24" width="71" border="0" /></a></td>
					</tr>
					<tr height="45">
					<tr height="45">
						<td width="167" height="45"><a onmouseover="changeImages('impressum1','bilder/buttons/impressum2.gif');return true" onmouseout="changeImages('impressum1','bilder/buttons/impressum1.gif');return true" href="impressum.php"><img id="impressum1" src="bilder/buttons/impressum1.gif" alt="" name="impressum1" height="28" width="113" border="0" /></a></td>
					</tr>
				</table>
			</div>
		</div>
	</body>

</html>


Nach oben