Antworten auf deine Fragen:
Neues Thema erstellen

ich kann das was nich :-(

fepoe

Noch nicht viel geschrieben

heho

ich stell mich zu doof an

ich bekomme die bilder die nach links und rechts zeigen nicht hin. ich bekomme sie einfach nicht sichbar gemacht. kann mir da wer helfen?

danke im vorraus

Code:
<html> 
<head>  
<title>galerie</title> 
 <script language="javascript" type="text/javascript">

function preloadImg(){ 
    
document.vorladen = new Array(); 
    
if(document.images) 
    
{ 
        
for(var i = 0; i < preloadImg.arguments.length; i++) 
        
{ 
            
document.vorladen[i] = new Image(); 
            
document.vorladen[i].src = preloadImg.arguments[i]; 
        
} 
    
} 
}
 
 var scrollStep=2;
 var timer;  
 
 function scrollDivRight(){   
clearTimeout(timer); 
d=document.getElementById('thumbs'); 
d.scrollLeft+=scrollStep; 
timer=setTimeout("scrollDivRight()",10); 
}  
 
 
function scrollDivLeft(){ 
  
clearTimeout(timer); 
d=document.getElementById('thumbs'); 
d.scrollLeft-=scrollStep; 
timer=setTimeout("scrollDivLeft()",10); 
}  
 
 
function stopMe(){ 
  
clearTimeout(timer);  
} 
 
 

 
function opac(thumb,wert){ 
            
thumb.style.opacity = wert;  
           
thumb.style.filter = "alpha(opacity=" + wert*100 + ")";  
           
} 
  
 
function bildershow(bild){  // übergebener Wert für neues Bild 
            
document.bild.src = document.bild2.src;  // hinten liegendes Bild = vorn liegendes Bild 
           
document.bild2.src = bild;  // vornliegendes Bild = neues Bild (übergebener Wert) 
fade(0);  // Aufrufen der Funktion zum langsamen Einblenden des Bildes 
           
}            
 
function fade(step) {  // step ist der opacity-Wert des neuen Bildes, Anfangs 0 (übergebener Wert) 
            
var imgs = document.getElementById("bildgross").getElementsByTagName("img"); //lies die Bilder aus "bildgross" und schreib sie in ein Array 
imgs[1].style.opacity = step/100;  //  alle Browser Wert durch 100 Teilen um 0.2 usw. zu erhalten 
          
imgs[1].style.filter = "alpha(opacity=" + step + ")"; // IE 
           
step = step + 10;  // step erhöhen 
            
if (step <= 100) {  // ist das Bild noch nicht vollständig zu sehen... 
                       
window.setTimeout(function () { fade(step); }, 1);   // ...Funktion erneut aufrufen 
         
} 
}
 </script>
<style type="text/css"> 
*html{ 
margin:0; 
padding:0; 
} 
body{ 
margin:0; 
padding:0; 
} 
#gallery{ 
position:absolute; 
width:810px; 
height:715px; 
top:20px; 
left:50%; 
margin-left:-400px; 
border:1px solid #000000; 
} 
#bildgross{ 
position:absolute; 
width:800px; 
height:600px; 
top:5; 
left:5; 
} 
#navigation{
 position:absolute;
 width:800px;
 height:103px;
 top:537px;
 left:4px;
}
#links{
 position:absolute;
 width:40px;
 height:30;
 top:-2px;
 left:1px;
 }
#thumbs{
 position:absolute;
 width:720px;
 float:left;
 white-space:nowrap;
 overflow:hidden;
 width:722px;
 height:100px;
 top:2px;
 left:41px;
} 
#thumbs img{ 
opacity:0.6; 
filter:alpha(opacity=60); 
} 
body {
 background-image: url(back_gr.jpg);
 background-position: center;
 margin-left: 0px;
 margin-top: 50px;
 margin-right: 0px;
 margin-bottom: 100px;
}
</style> 
</head> 
 
 
<body width="800" height="720" border="3" bordercolor="#999999" cellpadding="0" cellspacing="0" align="center" onLoad="preloadImg('01.jpg','02.jpg','03.jpg','04.jpg','05.jpg','06.jpg','07.jpg','08.jpg','09.jpg','010.jpg','11.jpg','12.jpg','13.jpg','14.jpg','15.jpg','16.jpg',);">
 

<div id="galerie"  >
 
       
<div id="bildgross">
            
<img src="01.jpg" name="bild" style="position:absolute; top:0; left:0;" /> 
            
<img src="01.jpg" name="bild2" style="position:absolute; top:0; left:0; opacity:0; filter:alpha(opacity=0);" /> </div> 
 
<div id="navigation">
<div id="links"> <a href="" ><img src="../bücher/helm_homepage_beta3a/1/testung/lr/links.gif" alt="" width="40" height="30" style="float:left" onMouseOver="scrollDivLeft();" onMouseOut="stopMe()"/></div></a>
  <div id="thumbs" align="center"> 
  <img src="daumen/01.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('01.jpg');" /> 
<img src="daumen/02.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('02.jpg');" /> 
  <img src="daumen/03.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('03.jpg');" /> 
  <img src="daumen/04.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('04.jpg');" /> 
  <img src="daumen/05.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('05.jpg');" /> 
  <img src="daumen/06.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('06.jpg');" /> 
  <img src="daumen/07.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('07.jpg');" /> 
  <img src="daumen/08.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('08.jpg');" /> 
  <img src="daumen/09.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('09.jpg');" /> 
  <img src="daumen/10.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('10.jpg');" /> 
  <img src="daumen/11.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('11.jpg');" /> 
  </div>
<img src="../bücher/helm_homepage_beta3a/1/testung/lr/links.png" width="40" height="30" style="float:right" onMouseOver="scrollDivRight();" onMouseOut="stopMe()"/></div> 
</div>
</body> 
</html>
 
Zuletzt bearbeitet von einem Moderator:

Guin

Nicht mehr ganz neu hier

AW: ich kann das was nich :-(

Na die Bilder, die fepoe in dem so schoen formatierten html Code eingebunden hat. Es scheint da wohl ein JS Problem zu geben? Hab nun keine Lust mich da durchzuquaelen.

Tip an fepoe:
Verschlanke den Code so weit wie moeglich bis nur noch das Problem übrig bleibt. Dann ist es viel übersichtlicher.
 

cebito

undefined

AW: ich kann das was nich :-(

Hm, hab mal rot markiert, was du sowieso weglassen kannst, die Reihenfolge beim schließen von div- und a-Tag stimmt nicht und du brauchst beides sowieso nicht.
Dann schau mal, ob deine Pfade und/oder Dateibezeichnungen stimmen, denn einmal rufst du Bild "links" als .gif und einmal als .png auf. Finde die Pfade an sich auch ziemlich lang im Vergleich zu denen der Thumbnails beispielsweise. Überprüf das noch mal...
Code:
<div id="navigation">
[COLOR=Red]<div id="links"> <a href="" >[/COLOR]<img src="../bücher/helm_homepage_beta3a/1/testung/lr/[COLOR=Purple]links.gif[/COLOR]" alt="" width="40" height="30" style="float:left" onMouseOver="scrollDivLeft();" onMouseOut="stopMe()"/>[COLOR=Red]</div></a>[/COLOR]
  <div id="thumbs" align="center"> 
 <!--die thumbs......... -->
  </div>
<img src="../bücher/helm_homepage_beta3a/1/testung/lr/[COLOR=Purple]links.png[/COLOR]" width="40" height="30" style="float:right" onMouseOver="scrollDivRight();" onMouseOut="stopMe()"/></div> 
</div>
 

fepoe

Noch nicht viel geschrieben

AW: ich kann das was nich :-(

Die unterschiedlichen Dateien sind nur Tests und nicht ernst gemeint.
alles was ich da als Bild angebe, wird ignoriert bzw werden sie nicht geladen.
auch wenn ich das von Dir markierte weglasse bekomm ich das gleiche Ergebnis.

ich bin ratlos :-(
 

cebito

undefined

AW: ich kann das was nich :-(

Leg mal die Bilder ins Stammverzeichnis und vereinfache mal den Pfad, muss immer wieder feststellen, das es (meist) daran hakt.
 
Bilder bitte hier hochladen und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Antworten auf deine Fragen:
Neues Thema erstellen

Willkommen auf PSD-Tutorials.de

In unseren Foren vernetzt du dich mit anderen Personen, um dich rund um die Themen Fotografie, Grafik, Gestaltung, Bildbearbeitung und 3D auszutauschen. Außerdem schalten wir für dich regelmäßig kostenlose Inhalte frei. Liebe Grüße senden dir die PSD-Gründer Stefan und Matthias Petri aus Waren an der Müritz. Hier erfährst du mehr über uns.

Stefan und Matthias Petri von PSD-Tutorials.de

Nächster neuer Gratisinhalt

03
Stunden
:
:
25
Minuten
:
:
19
Sekunden

Flatrate für Tutorials, Assets, Vorlagen

Zurzeit aktive Besucher

Statistik des Forums

Themen
118.564
Beiträge
1.538.064
Mitglieder
67.487
Neuestes Mitglied
MichaelSEivy
Oben