Suche im Forum:
Suchen


Autor Nachricht
Beitrag18.08.2014 um 10:32 (UTC)    
Titel: Fehlerhafter Slideshow-Code

Leider fehlt irgendetwas an folgenden Code und ich weiß nicht was....
Vorher lief der akkurat. Scheint zwar nur eine Kleinigkeit zu sein, doch mit grösser auswirkung!!!

Ich danke für eine schnelle Hilfe schon mal im Voraus.

Michael

Code:

<div style="text-align: center;">&nbsp;</div>
<center> <br />
<br />
<div class="o4nslideshowefsdh"><br />
&nbsp;</div>
<script type="text/javascript">
function styleSheetForTheSliders(){var a=document.createElement("style"),b=document.createTextNode(".o4nslideshowslider{position:absolute; top:0; left:0; width:100%; height:100%; -moz-transition:opacity 1s;-o-transition:opacity 1s;-webkit-transition:opacity 1s;transition:opacity 1s;}"+classe+"{background:none!important;}");a.type="text/css";a.styleSheet?a.styleSheet.cssText=b.nodeValue:a.appendChild(b);document.getElementsByTagName("head")[0].appendChild(a)} function initTheSlideshow(){var a,b,c=document.querySelector("."+classe);for(styleSheetForTheSliders();0<c.childNodes.length;)c.removeChild(c.firstChild);a=document.createElement("div");a.style.position="relative";a.style.width= width;a.style.height=height;c.appendChild(a);for(b=0;b<theURLs.length;b++)a=document.createElement("div"),a.style.backgroundImage="url("+theURLs[b]+")",a.className="o4nslideshowslider",c.firstChild.appendChild(a),theDivs[b]=a;vslideshow=setInterval("slideshow()",timeOut)} function slideshow(){var a;for(a=0;a<theDivs.length;a++)a==actualDiv?theDivs[a].style.opacity=1:theDivs[a].style.opacity=0;actualDiv==theDivs.length-1?actualDiv=0:actualDiv++};var theURLs = new Array();

theURLs[8] = 'http://img.webme.com/pic/p/pink-camel/dsc_0593.jpg';
theURLs[0] = 'http://img.webme.com/pic/p/pink-camel/dsc_0441.jpg';
theURLs[1] = 'http://img.webme.com/pic/p/pink-camel/dsc_0486.jpg';
theURLs[2] = 'http://img.webme.com/pic/p/pink-camel/dsc_0489.jpg';
theURLs[3] = 'http://img.webme.com/pic/p/pink-camel/dsc_0492.jpg';
theURLs[4] = 'http://img.webme.com/pic/p/pink-camel/dsc_0544.jpg';
theURLs[5] = 'http://img.webme.com/pic/p/pink-camel/dsc_0567.jpg';
theURLs[6] = 'http://img.webme.com/pic/p/pink-camel/dsc_0568.jpg';
theURLs[9] = 'http://img.webme.com/pic/p/pink-camel/dsc_0574.jpg';
theURLs[7] = 'http://img.webme.com/pic/p/pink-camel/dsc_0585.jpg';



var classe = 'o4nslideshowefsdh';
var width = '705px';
var height = '473px';
var timeOut = 6000;

var theDivs = new Array();
var actualDiv = 0;
var vslideshow;

initTheSlideshow();
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-51785122-1', 'auto');
ga('send', 'pageview');

</script> </center>
Beitrag18.08.2014 um 11:20 (UTC)    
Titel:

Zitat:
...
theURLs[6] = 'http://img.webme.com/pic/p/pink-camel/dsc_0568.jpg';
theURLs[9] = 'http://img.webme.com/pic/p/pink-camel/dsc_0574.jpg';
theURLs[7] = 'http://img.webme.com/pic/p/pink-camel/dsc_0585.jpg';

var classe = 'o4nslideshowefsdh';
var width = '705px';
var height = '473px';
var timeOut = 6000;

var theDivs = new Array();
var actualDiv = 0;
var vslideshow;

initTheSlideshow();
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-51785122-1', 'auto');
ga('send', 'pageview');

</script> </center>
Beitrag18.08.2014 um 12:11 (UTC)    
Titel:

Ich danke Dir recht herzlich für die schnelle Lösung....
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de