Philip: href dynamisch tauschen

Beitrag lesen

vielleicht mal einen testauszug komplett, sogenante leuchtkugel...?

Kannst du haben:
So sollte es doch gehen... Oder?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>oben</title>
  <script type=text/javascript>
  function haupt () {
  homeu1 = new Image
  homeu1.src = "homeu1.gif"
  homeu2 = new Image
  homeu2.src = "homeu2.gif"
  homeu3 = new Image
  homeu3.src = "homeu3.gif"
  document.images[5].src = homeu1.src
  document.images[6].src = homeu2.src
  document.images[7].src = homeu3.src
  document.links[4].location.href = "home2.html"
  }
  function produkte () {
  produ1 = new Image
  produ1.src = "produ1.gif"
  produ2 = new Image
  produ2.src = "produ2.gif"
  produ3 = new Image
  produ3.src = "produ3.gif"
  document.images[5].src = produ1.src
  document.images[6].src = produ2.src
  document.images[7].src = produ3.src
  }
  function support () {
  suppu1 = new Image
  suppu1.src = "suppu1.gif"
  suppu2 = new Image
  suppu2.src = "suppu2.gif"
  suppu3 = new Image
  suppu3.src = "suppu3.gif"
  document.images[5].src = suppu1.src
  document.images[6].src = suppu2.src
  document.images[7].src = suppu3.src
  }
  </script>
  </head>
  <body>
  <div align=right>
  <img src=logo2.gif alt="Logo" border=0>
  </div>
  <br>
  <div align=center>
  <a href="javascript:haupt()">
  <img src=home1.gif alt="Home" border=0></a>
  &nbsp;
  <a href="javascript:produkte()">
  <img src=produkte1.gif alt="Produkte" border=0></a>
  &nbsp;
  <a href="javascript:support()">
  <img src=support1.gif alt="Support" border=0></a>
  &nbsp;
  <a href="mailto:info@info.de">
  <img src=kontakt1.gif alt="Kontakt" border=0></a>
  </div>
  <div align=center>
  <a href="main.html" target=main>
  <img src=nix.gif alt=menu1 border=0></a>
  <a href="main.html" target=main>
  <img src=nix.gif alt=menu1 border=0></a>
    <a href="main.html" target=main>
  <img src=nix.gif alt=menu1 border=0></a>
    <a href="main.html" target=main>
  <img src=nix.gif alt=menu1 border=0></a>
    <a href="main.html" target=main>
  <img src=nix.gif alt=menu1 border=0></a>
    <a href="main.html" target=main>
  <img src=nix.gif alt=menu1 border=0></a>
  </div>
  </body>
</html>