HTML Bilder ver****** mich!

Seite 1 von 2 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/html_bilder_ver_mich_37660/page_1 - zur Vollversion wechseln!


alexsb schrieb am 11.06.2002 um 19:52

Ich bin gerade dabei in 2 Tabellen je 1 Bild einfügen.

Ein mal geht:

<td height = "80" width = "160"><img src = "/pics/dbns.jpg"</td>

Dann geht nicht:

<td height = "80" width = "160"><img src = "/pics/logo.jpg"</td>

Aber wenn ich den ganzen Pfad angebe gehts :


<td colspan = "7"><img src="file:/websites/eshop/pics/eshop.jpg" width="189" height="28" border="0"></td>

Wieso bitte? mach ich da was falsch? So kann ichs nicht lassen weil die Seite ja nicht in diesem Ordner bleibt?:mad: :mad:
Zipft mich schon an, 40 min schon für so an sh***


schrieb am 11.06.2002 um 19:54

mach den tag zu

">" fehlt

edit:
so schauts aus:
<td height = "80" width = "160"><img src = "/pics/logo.jpg"></td>


alexsb schrieb am 11.06.2002 um 19:57

danke auf das > bin ich gleich nach dem Posten eh draufkommen aber das hilft nix, auch der code den du gepostet hast hilft nix!

Bitteeee Hilfee!


schrieb am 11.06.2002 um 19:59

dann mach den slash weg

<td height="80" width="160"><img src="pics/logo.jpg"></td>


alexsb schrieb am 11.06.2002 um 19:59

Wenn ich auf die eigenschaften von dem pic im IE geh dann sagt er mir als Adresse:

http://localhost/pics/logo.jpg

??????

Das is ja a schmarrn, aber wieso macht der das einmal richtig und einmal nicht??


Ezekiel schrieb am 11.06.2002 um 19:59

<td height=80 width=160><img src="pics/logo.jpg"></td>
sollte schon gehen so ... hast im rest der tabelle alles richtig ??


alexsb schrieb am 11.06.2002 um 20:01

Ohne Slash wirds besser aber geht noch immer nicht:

Pfad der Datei laut IE

http://localhost/eshop/pics/logo.jpg

statt

http://localhost/website/eshop/pics/logo.jpg


schrieb am 11.06.2002 um 20:01

Zitat von alexsb
Wenn ich auf die eigenschaften von dem pic im IE geh dann sagt er mir als Adresse:

http://localhost/pics/logo.jpg

??????

Das is ja a schmarrn, aber wieso macht der das einmal richtig und einmal nicht??

localhost ist dein lokaler rechner. das passt schon so, weil er die adresse immer richtig angibt. hast du's ohne slash probiert?

edit: wie SOLL der pfad heißen?


alexsb schrieb am 11.06.2002 um 20:03

Das ist mir scho klar mit dem localhost, aber ihm fehlt de Ordner Websites im Pfad Das ist die gesamte Tabelle:


<table border = "0"
align = "center">
<tr>
<td height = "80" width = "160"><img src = "pics/logo.jpg"></td>

</tr>
<tr valign = "bottom">
<th width = "80" bgcolor = "#8ac3ff"><a href = "<?php echo basename($PHP_SELF); ?>?topic=0">Mix<a></th>
<th width = "10"></th>
<th width = "80" bgcolor = "#8ac3ff"><a href = "<?php echo basename($PHP_SELF); ?>?topic=1">Bücher</th>
<th width = "10""></th>
<th width = "80" bgcolor = "#8ac3ff"><a href = "<?php echo basename($PHP_SELF); ?>?topic=2">CD</th>
<th width = "10"></th>
<th width = "80" bgcolor = "#8ac3ff"><a href = "<?php echo basename($PHP_SELF); ?>?topic=3">DVD</th>
</tr>
</table>


alexsb schrieb am 11.06.2002 um 20:05

http://localhost/website/eshop/pics/logo.jpg

wäre der korrekte Pfad


Ezekiel schrieb am 11.06.2002 um 20:06

th sollte man pro tabelle nur eins machen (=tableheader)


schrieb am 11.06.2002 um 20:07

einfacher test: ich mach eine html-datei, kopiere das rein, erstelle ein verzeichnis pics und hau eine logo.jpg datei rein - beim anzeigen seh ich das bild.

es scheint also im html alles zu stimmen. :o


alexsb schrieb am 11.06.2002 um 20:07

habs auf <td> umgstellt, hilft a nix!


Ezekiel schrieb am 11.06.2002 um 20:09

gibts das bild in dem verzeichnis ?? verzeichnis richtig geschrieben ?
;)


schrieb am 11.06.2002 um 20:09

schon gecheckt, ob der webserver case-sensitiv ist? -> logo.JPG funkt nicht, genauso wenig wie Logo.jpg, wenn du logo.jpg aufrufst




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2026