Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Linkprobleme

Empfohlene Antworten

Hallo,

ich habe auf einer Webseite welche ich betreue ein Problem. Und zwar will ich einen Link auf www.adobe.de in einen Text einfügen. Habe für externe Links eine Funktion die wie folgt aussieht:

	function hrefextern($ref, $desc, $path)
{
echo "<img title='Externer Link' src=\"$path../images/extlink.gif\"></img>";
echo " ";
echo "<a target='blank_' href=\"$ref\">$desc</a>";
}[/php]

Ich rufe die Funktion in dem Text also so auf (habe den Text drumherum jetzt mal weggelassen):

[php]<?
hrefextern("www.adobe.de", "Adobe", "../");
?>

Wenn ich jetzt aber den Link anklicken will, dann macht er mir daraus www.webseite.de/Ordner/Unterorder/www.adobe.de

Was mache ich falsch? Oder habe ich einfach nur was falsch eingestellt?

Hiiiiiiiilfeeeee...

Gruß, Bine

Danke, das funktioniert. Aber warum geht es nicht ohne?

Gruß, Bine

absolute URLs beginnen mit http:// ....

Aber ich könnte mir vorstellen das es im FF ohne http:// geht

Gruß,

Markus

Aber ich könnte mir vorstellen das es im FF ohne http:// geht

Glaub ich eher nicht. Auch der IE sucht ja bei eingaben ohne Protokoll (http://, ftp://, file:// ...) alle Protokolle ab. Aber wenn das als Link in einer Seite steht geht jeder Browser erstmal vom aktuellen Pfad aus und sucht dort den Unterpfad/die Datei. Ein Link auf eine 2te Seite geht ja auch mit ... href="Seite2.html" und keiner würde auf die Idee kommen, da ein http:// davorzuhängen ;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.