• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Diashow Erweiterungen

chriskoller

Mitglied
Habe eine Diashow erstellt und soll sie nach angaben die am bild zu lesen sind erweitern, habe allerdings keine ahnung wie bitte um Hilfe.


<?xml version="1.0" encoding="ISO-8859-1"?>
<!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=ISO-8859-1" />
<title>Untitled Document</title>
<style type="text/css">

body {
font-size: 100, 01%;
font-family: verdana, sans-serif;
background-color: #bdbec6;
}

#bild1 {
position: absolute;
left: 10px;
top: 10px;
z-index: 4;
visibility: visible;
}

#bild2 {
position: absolute;
left: 10px;
top: 10px;
z-index: 3;
visibility: hidden;
}

#bild3 {
position: absolute;
left: 10px;
top: 10px;
z-index: 2;
visibility: hidden;
}

#bild4 {
position: absolute;
left: 10px;
top: 10px;
z-index: 1;
visibility: hidden;
}
</style>
<script language="javascript" type="text/javascript">
<!--


function ebenen_wechsel(neu, vorher){
document.getElementById(neu).style.visibility = "visible";
document.getElementById(vorher).style.visibility = "hidden";

}


//-->
</script>
</head>
<body>
<div id="bild1">
<img src="gipfel.jpg" width="400px" alt="" />
<p>
<a href="#" onclick="ebenen_wechsel('bild2','bild1');">Weiter</a>
</p>
</div>
<div id="bild2">
<img src="schichtung.jpg" width="400px" alt="" />
<p>
<a href="#" onclick="ebenen_wechsel('bild1','bild2');">Zurück</a>&nbsp;<a href="#" onclick="ebenen_wechsel('bild3','bild2');">Weiter</a>
</p>
</div>
<div id="bild3">
<img src="meer.jpg" width="400px" alt="" />
<p>
<a href="#" onclick="ebenen_wechsel('bild2','bild3');">Zurück</a>&nbsp;<a href="#" onclick="ebenen_wechsel('bild4','bild3');">Weiter</a>
</p>
</div>
<div id="bild4">
<img src="natur.jpg" width="400px" alt="" />
<p>
<a href="#" onclick="ebenen_wechsel('bild3','bild4');">Zurück</a>
</p>
</div>
</body>
</html>
 

Anhänge

  • IMG_0004.jpg
    IMG_0004.jpg
    90 KB · Aufrufe: 4
  • gipfel.jpg
    gipfel.jpg
    31,5 KB · Aufrufe: 0
  • meer.jpg
    meer.jpg
    40,4 KB · Aufrufe: 0
  • natur.jpg
    natur.jpg
    60 KB · Aufrufe: 0
  • schichtung.jpg
    schichtung.jpg
    29,2 KB · Aufrufe: 0
hallö,also schau dir mal jquery an.damit kannst einfacher Sachen relexen und verarbeiten.zb würde ich einfach den title Tag nutzen und per jquery mit der bildauswahl auslesen und in ein extra Di ausgeben.Vorfällen wird der Code auch um einiges weniger und bekommst noch schicke anzeige efekte dazu.cheffchenps links mir nur # sind nicht gut da Seite springt, besser return Täler mit ins is.
 
Zurück
Oben