Alle News Events Blog Sensorik Automation Juli 2023 März 2023 Februar 2023 Januar 2023 Oktober 2022 September 2022 Oktober 2021 März 2021 September 2020 August 2020 Juni 2020 Oktober 2017 Information
| Samstag, 01. Juni 2013
zurück zur Übersicht Webshop by Trade-System - Copyright by Sentronic AG |Impressum + AGB |Kontakt |Datenschutzerklärung |
"); //-------------------------------------------------------------------------- } function Start(startIndex) { curImage=startIndex; nextImage=startIndex+1; if (nextImage>this.picArray.length-1) nextImage=0; var maxTi=this.sleepMilliSecondsBetweenPics; if (this.movieArray[curImage]) {if (this.movieArray[curImage]['pictureDelay']) maxTi=this.movieArray[curImage]['pictureDelay'];}/* if (this.lastFrameTimeout) clearTimeout(this.lastFrameTimeout); if (this.lastFrameTimeout_fade) clearTimeout(this.lastFrameTimeout_fade); if (this.lastFrameTimeout_move) clearTimeout(this.lastFrameTimeout_move); if (this.lastFrameTimeout_resize) clearTimeout(this.lastFrameTimeout_resize);*/ //alert("Start: curImage: "+curImage+":::nextImage: "+nextImage); if (this.picArray.length>1) eval("this.lastFrameTimeout = window.setTimeout(function () { "+this.myObjectName+".FadeNextImage("+nextImage+"); }, maxTi);"); // Start moving image this.StartMove(startIndex); this.StartResize(startIndex); this.ChangeImageUrl(startIndex); this.ChangeNavigation(startIndex); } function FadeNextImage(curImage) {//alert("FadeNextImage: curImage: "+curImage); var lastImage; if (!curImage) curImage=0; if (curImage==0) lastImage=this.picArray.length-1; else lastImage = curImage-1; var oldImageObj = document.getElementById(this.GetImageId(lastImage)); var newImageObj = document.getElementById(this.GetImageId(curImage));//alert("lastImage: "+lastImage);//alert("curImage: "+curImage); this.StartFade(lastImage,curImage); // this.FadeImage(oldImageObj,newImageObj); this.curImage=curImage; this.frameCount++; this.StartMove(curImage); this.StartResize(curImage); this.ChangeImageUrl(curImage); this.ChangeNavigation(curImage); var maxTi=this.sleepMilliSecondsBetweenPics; if (this.movieArray[curImage]) {if (this.movieArray[curImage]['pictureDelay']) maxTi=this.movieArray[curImage]['pictureDelay'];} curImage++; if (curImage>this.picArray.length-1) curImage=0; eval("this.lastFrameTimeout = window.setTimeout(function () { "+this.myObjectName+".FadeNextImage(curImage); }, maxTi);"); } function SwitchToImage(curImage) { if (this.lastFrameTimeout) { window.clearTimeout(this.lastFrameTimeout); this.lastFrameTimeout=""; } if (this.lastFrameTimeout_fade) { window.clearTimeout(this.lastFrameTimeout_fade); this.lastFrameTimeout_fade=""; } if (this.lastFrameTimeout_move) { window.clearTimeout(this.lastFrameTimeout_move); this.lastFrameTimeout_move=""; } if (this.lastFrameTimeout_resize) { window.clearTimeout(this.lastFrameTimeout_resize); this.lastFrameTimeout_resize=""; } for (i=0;i
"; } //------------------------------------------------------------------------ // Draw obj.innerHTML=output; //------------------------------------------------------------------------ // Calculate align (horicontal and vertical) var marginLeft=0; var marginTop=0; var paddingHor=5; var paddingVert=5; var movieWidth=185; var movieHeight=600; var containerWidth = obj.offsetWidth; var containerHeight = obj.offsetHeight; if (this.pictureNavigation_align=="left") { marginLeft=paddingHor; } if (this.pictureNavigation_align=="right") { marginLeft = movieWidth - containerWidth - paddingHor; } if (this.pictureNavigation_align=="center") { marginLeft = movieWidth/2 - containerWidth/2; } if (this.pictureNavigation_valign=="top") { marginTop=paddingVert; } if (this.pictureNavigation_valign=="bottom") { marginTop=movieHeight - containerHeight - paddingVert; } //------------------------------------------------------------------------ // Change align obj.style.marginLeft = marginLeft + "px"; obj.style.marginTop = marginTop + "px"; //------------------------------------------------------------------------ } } function ParseFunction(functionStr,curTi,maxTi,offsetX,distanceX,offsetY,distanceY) { var retu; var maxFuncDistance = 360*Math.PI/180; var curFuncDistance = maxFuncDistance * curTi / maxTi; var curFunxDistanceX = offsetX * maxFuncDistance / distanceX; var curFunxDistanceY = offsetY * maxFuncDistance / distanceY; retu = ReplaceStr("sin","Math.sin",functionStr); retu = ReplaceStr("cos","Math.cos",retu); retu = ReplaceStr("ti",curFuncDistance,retu); retu = ReplaceStr("x",curFunxDistanceX,retu); retu = ReplaceStr("y",curFunxDistanceY,retu); // document.getElementById("myDebug").innerHTML="functionStr: "+functionStr;// document.getElementById("myDebug").innerHTML="retu: "+retu;// document.getElementById("myDebug").innerHTML="parseFloat_retu: "+parseFloat(retu); // return 1; return retu; }}