PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
ich kann das was nich :-(
Beitrag
<blockquote data-quote="fepoe" data-source="post: 1153025" data-attributes="member: 347642"><p>heho</p><p> </p><p>ich stell mich zu doof an</p><p> </p><p>ich bekomme die bilder die nach links und rechts zeigen nicht hin. ich bekomme sie einfach nicht sichbar gemacht. kann mir da wer helfen?</p><p> </p><p>danke im vorraus</p><p> </p><p>[code]<html> </p><p><head> </p><p><title>galerie</title> </p><p> <script language="javascript" type="text/javascript"></p><p></p><p>function preloadImg(){ </p><p> </p><p>document.vorladen = new Array(); </p><p> </p><p>if(document.images) </p><p> </p><p>{ </p><p> </p><p>for(var i = 0; i < preloadImg.arguments.length; i++) </p><p> </p><p>{ </p><p> </p><p>document.vorladen[i] = new Image(); </p><p> </p><p>document.vorladen[i].src = preloadImg.arguments[i]; </p><p> </p><p>} </p><p> </p><p>} </p><p>}</p><p> </p><p> var scrollStep=2;</p><p> var timer; </p><p> </p><p> function scrollDivRight(){ </p><p>clearTimeout(timer); </p><p>d=document.getElementById('thumbs'); </p><p>d.scrollLeft+=scrollStep; </p><p>timer=setTimeout("scrollDivRight()",10); </p><p>} </p><p> </p><p> </p><p>function scrollDivLeft(){ </p><p> </p><p>clearTimeout(timer); </p><p>d=document.getElementById('thumbs'); </p><p>d.scrollLeft-=scrollStep; </p><p>timer=setTimeout("scrollDivLeft()",10); </p><p>} </p><p> </p><p> </p><p>function stopMe(){ </p><p> </p><p>clearTimeout(timer); </p><p>} </p><p> </p><p> </p><p></p><p> </p><p>function opac(thumb,wert){ </p><p> </p><p>thumb.style.opacity = wert; </p><p> </p><p>thumb.style.filter = "alpha(opacity=" + wert*100 + ")"; </p><p> </p><p>} </p><p> </p><p> </p><p>function bildershow(bild){ // übergebener Wert für neues Bild </p><p> </p><p>document.bild.src = document.bild2.src; // hinten liegendes Bild = vorn liegendes Bild </p><p> </p><p>document.bild2.src = bild; // vornliegendes Bild = neues Bild (übergebener Wert) </p><p>fade(0); // Aufrufen der Funktion zum langsamen Einblenden des Bildes </p><p> </p><p>} </p><p> </p><p>function fade(step) { // step ist der opacity-Wert des neuen Bildes, Anfangs 0 (übergebener Wert) </p><p> </p><p>var imgs = document.getElementById("bildgross").getElementsByTagName("img"); //lies die Bilder aus "bildgross" und schreib sie in ein Array </p><p>imgs[1].style.opacity = step/100; // alle Browser Wert durch 100 Teilen um 0.2 usw. zu erhalten </p><p> </p><p>imgs[1].style.filter = "alpha(opacity=" + step + ")"; // IE </p><p> </p><p>step = step + 10; // step erhöhen </p><p> </p><p>if (step <= 100) { // ist das Bild noch nicht vollständig zu sehen... </p><p> </p><p>window.setTimeout(function () { fade(step); }, 1); // ...Funktion erneut aufrufen </p><p> </p><p>} </p><p>}</p><p> </script></p><p><style type="text/css"> </p><p>*html{ </p><p>margin:0; </p><p>padding:0; </p><p>} </p><p>body{ </p><p>margin:0; </p><p>padding:0; </p><p>} </p><p>#gallery{ </p><p>position:absolute; </p><p>width:810px; </p><p>height:715px; </p><p>top:20px; </p><p>left:50%; </p><p>margin-left:-400px; </p><p>border:1px solid #000000; </p><p>} </p><p>#bildgross{ </p><p>position:absolute; </p><p>width:800px; </p><p>height:600px; </p><p>top:5; </p><p>left:5; </p><p>} </p><p>#navigation{</p><p> position:absolute;</p><p> width:800px;</p><p> height:103px;</p><p> top:537px;</p><p> left:4px;</p><p>}</p><p>#links{</p><p> position:absolute;</p><p> width:40px;</p><p> height:30;</p><p> top:-2px;</p><p> left:1px;</p><p> }</p><p>#thumbs{</p><p> position:absolute;</p><p> width:720px;</p><p> float:left;</p><p> white-space:nowrap;</p><p> overflow:hidden;</p><p> width:722px;</p><p> height:100px;</p><p> top:2px;</p><p> left:41px;</p><p>} </p><p>#thumbs img{ </p><p>opacity:0.6; </p><p>filter:alpha(opacity=60); </p><p>} </p><p>body {</p><p> background-image: url(back_gr.jpg);</p><p> background-position: center;</p><p> margin-left: 0px;</p><p> margin-top: 50px;</p><p> margin-right: 0px;</p><p> margin-bottom: 100px;</p><p>}</p><p></style> </p><p></head> </p><p> </p><p> </p><p><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',);"></p><p> </p><p></p><p><div id="galerie" ></p><p> </p><p> </p><p><div id="bildgross"></p><p> </p><p><img src="01.jpg" name="bild" style="position:absolute; top:0; left:0;" /> </p><p> </p><p><img src="01.jpg" name="bild2" style="position:absolute; top:0; left:0; opacity:0; filter:alpha(opacity=0);" /> </div> </p><p> </p><p><div id="navigation"></p><p><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></p><p> <div id="thumbs" align="center"> </p><p> <img src="daumen/01.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('01.jpg');" /> </p><p><img src="daumen/02.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('02.jpg');" /> </p><p> <img src="daumen/03.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('03.jpg');" /> </p><p> <img src="daumen/04.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('04.jpg');" /> </p><p> <img src="daumen/05.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('05.jpg');" /> </p><p> <img src="daumen/06.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('06.jpg');" /> </p><p> <img src="daumen/07.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('07.jpg');" /> </p><p> <img src="daumen/08.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('08.jpg');" /> </p><p> <img src="daumen/09.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('09.jpg');" /> </p><p> <img src="daumen/10.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('10.jpg');" /> </p><p> <img src="daumen/11.JPG" onMouseOver="opac(this,1.0);" onMouseOut="opac(this,0.6);" onClick="bildershow('11.jpg');" /> </p><p> </div></p><p><img src="../bücher/helm_homepage_beta3a/1/testung/lr/links.png" width="40" height="30" style="float:right" onMouseOver="scrollDivRight();" onMouseOut="stopMe()"/></div> </p><p></div></p><p></body> </p><p></html>[/code]</p></blockquote><p></p>
[QUOTE="fepoe, post: 1153025, member: 347642"] 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>[/code] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
ich kann das was nich :-(
Oben