1. Dashboard
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. HTML - Webmaster Forum
  2. HTML / Webmaster Forum
  3. HTML & CSS Forum

Automatik

  • Peregrin
  • 12. März 2005 um 11:40
  • Peregrin
    Youngster
    Beiträge
    7
    • 12. März 2005 um 11:40
    • #1

    Hallo zusammen.
    Mit welchem Befehl kann ich automatisch nach 3-5 Sek. auf eine neue Seite linken?
    Danke
    Pere

  • MacNoob
    Teeny
    Beiträge
    43
    • 12. März 2005 um 12:18
    • #2

    Ich mache das mit JavaScript:


    <head>
    <script language="JavaScript">
    function umleitung ()
    {
    location.href="index2.html";
    }
    </script>
    </head>

    und

    <body bgcolor=black text=lightgrey link=lightgrey vlink=lightgrey alink=lightgrey scroll=no onload="window.setTimeout('umleitung ()', 20000)">


    20000 = Zeit in Millisekunden (1/1000)


    MfG

  • Ronald
    Forum Guru
    Beiträge
    5.439
    • 12. März 2005 um 12:19
    • #3

    Moin!

    das machst du mit einer Meta-Angabe im Head:

    Code
    <meta http-equiv="refresh" content="5; URL=seite2.html">

    siehe auch http://de.selfhtml.org/html/kopfdaten/meta.htm#weiterleitung

    G.a.d.M.

    Ronald

    annunci per coppie

Tags

  • html
  • link
  • tex
  • http
  • bgcolor
  • body
  • text
  • linke
  • location
  • selfhtml
  • code
  • org
  • javascript
  • index
  • timeout
  • weiterleitung
  • equiv
  • head
  • refresh
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™