Ga naar inhoud

Veranderde afbeelding


Robinho

Aanbevolen berichten

Hallo funyboyke,

Image();portfolioimgarr[0].c=0;portfolioimgarr[0].onload = portfoliosecondcomplate;portfolioimgarr[0].src=portfoliofoldername+'afb1.png';portfolioimgstr[0]=portfoliofoldername+'afb1.png';portfoliothumbimgstr[0]=portfoliofoldername+'afb1.png';portfoliolinkstr[0]='';portfolioclslinkstr[0]='';portfoliotitarr[0]="";portfoliodesarr[0]="";portfolioimgarr[1]=new Image();portfolioimgarr[1].c=0;portfolioimgarr[1].onload = portfoliosecondcomplate;portfolioimgarr[1].src=portfoliofoldername+'afb2.png';portfolioimgstr[1]=portfoliofoldername+'afb2.png';portfoliothumbimgstr[1]=portfoliofoldername+'afb2.png';portfoliolinkstr[1]='';portfolioclslinkstr[1]='';portfoliotitarr[1]="";portfoliodesarr[1]="";if((IEB==true)&&(scompat == "BackCompat" )){    portfoliocwidth=600;    portfoliocheight=150;}else{    portfoliocwidth=600-2*(0);    portfoliocheight=150-2*(0);}var portfolioicwidth=600-2*(0);var portfolioicheight=150-2*(0);portfolioDescCalcWidth=260;portfolioDescCalcHeight=80;if((IEB==true)&&(scompat == "BackCompat" ))

het is me gelukt maar ik wil bij dit script tussen afbeelding 1 en 2, nog meer afbeelding tussen doen?

Kan je dat effe fickse.

Alvastbedankt

Groetjes RObinho

Link naar reactie
Delen op andere sites

euhm, ik weet het niet zeker, maar het valt te proberen :-)

achter

;portfoliotitarr[1]="";portfoliodesarr[1]="";

(dus voor if...)

voeg je

portfolioimgarr[2]=new Image();portfolioimgarr[2].c=0;portfolioimgarr[2].onload = portfoliosecondcomplate;portfolioimgarr[2].src=portfoliofoldername+'afb3.png';portfolioimgstr[2]=portfoliofoldername+'afb3.png';portfoliothumbimgstr[2]=portfoliofoldername+'afb3.png';portfoliolinkstr[2]='';portfolioclslinkstr[2]='';portfoliotitarr[2]="";portfoliodesarr[2]="";

toe

en dan zou je afb3.png ertussen moeten hebben

Link naar reactie
Delen op andere sites

euhm, ik weet het niet zeker, maar het valt te proberen :-)

achter

;portfoliotitarr[1]="";portfoliodesarr[1]="";

(dus voor if...)

voeg je

portfolioimgarr[2]=new Image();portfolioimgarr[2].c=0;portfolioimgarr[2].onload = portfoliosecondcomplate;portfolioimgarr[2].src=portfoliofoldername+'afb3.png';portfolioimgstr[2]=portfoliofoldername+'afb3.png';portfoliothumbimgstr[2]=portfoliofoldername+'afb3.png';portfoliolinkstr[2]='';portfolioclslinkstr[2]='';portfoliotitarr[2]="";portfoliodesarr[2]="";

toe

en dan zou je afb3.png ertussen moeten hebben

Hallo Funyboyke,

Ik heb hem toe gevoegt maar hij doet het nog steeds ! Maar in het script moet ik nog wat verandere (eerst stonden er in het script 2 afbeeldingen maar dat moeten er nu 4 worden) waar kan ik dat vind?

script:

uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;OPB=(uagent.indexOf('opera') != -1)?true:false;CRB=(uagent.indexOf('chrome') != -1)?true:false;SFB=(uagent.indexOf('safari') != -1)?true:false;var scompat = document.compatMode;var portfolios=null;var portfoliodescgoster=0;var portfoliothumbgoster=0;var portfoliocwidth=0;var portfoliocheight=0;var portfoliocalc=0;var portfoliotam=0;var portfoliokalan=0;var portfoliokalany=0;var portfoliots="";var portfoliods="";var portfoliojbtype=0;var portfoliorealcurrent=0;var portfoliotimeo=null;portfoliothumbs_obj=null;portfoliomoving_obj=null;portfolioTotalThumbWidth=0;portfolioTotalThumbHeight=0;portfolioMoveIcWidth=0;var TBW=0;var CursorStr="default";var portfolioDescCalcWidth=0;var portfolioDescCalcHeight=0;var portfolioDescCalcIcWidth=0;var portfolioDescCalcIcHeight=0;var MoveWidth=0;var ThumbAreaWidth=340;var ThumbAreaHeight=340;portfolioimgarr=new Array();portfoliothumbimgstr=new Array();portfolioimgstr=new Array();portfoliolinkstr=new Array();portfolioclslinkstr=new Array();portfoliotitarr=new Array();portfoliodesarr=new Array();[u]portfolioimgarr[0]=new Image();portfolioimgarr[0].c=0;portfolioimgarr[0].onload = portfoliosecondcomplate;portfolioimgarr[0].src=portfoliofoldername+'afb1.png';portfolioimgstr[0]=portfoliofoldername+'afb1.png';portfoliothumbimgstr[0]=portfoliofoldername+'afb1.png';portfoliolinkstr[0]='';portfolioclslinkstr[0]='';portfoliotitarr[0]="";portfoliodesarr[0]="";portfolioimgarr[1]=new Image();portfolioimgarr[1].c=0;portfolioimgarr[1].onload = portfoliosecondcomplate;portfolioimgarr[1].src=portfoliofoldername+'afb2.png';portfolioimgstr[1]=portfoliofoldername+'afb2.png';portfoliothumbimgstr[1]=portfoliofoldername+'afb2.png';portfoliolinkstr[1]='';portfolioclslinkstr[1]='';portfoliotitarr[1]="";portfoliodesarr[1]="";portfolioimgarr[2]=new Image();portfolioimgarr[2].c=0;portfolioimgarr[2].onload = portfoliosecondcomplate;portfolioimgarr[2].src=portfoliofoldername+'afb3.png';portfolioimgstr[2]=portfoliofoldername+'afb3.png';portfoliothumbimgstr[2]=portfoliofoldername+'afb3.png';portfoliolinkstr[2]='';portfolioclslinkstr[2]='';portfoliotitarr[2]="";portfoliodesarr[2]="";portfolioimgarr[4]=new Image();portfolioimgarr[4].c=0;portfolioimgarr[4].onload = portfoliosecondcomplate;portfolioimgarr[4].src=portfoliofoldername+'afb4.png';portfolioimgstr[4]=portfoliofoldername+'afb4.png';portfoliothumbimgstr[4]=portfoliofoldername+'afb4.png';portfoliolinkstr[4]='';portfolioclslinkstr[4]='';portfoliotitarr[4]="";portfoliodesarr[4]="";[/u]if((IEB==true)&&(scompat == "BackCompat" )){    portfoliocwidth=600;    portfoliocheight=150;}else{    portfoliocwidth=600-2*(0);    portfoliocheight=150-2*(0);}var portfolioicwidth=600-2*(0);var portfolioicheight=150-2*(0);portfolioDescCalcWidth=260;portfolioDescCalcHeight=80;if((IEB==true)&&(scompat == "BackCompat" )){	portfolioDescCalcIcWidth=portfolioDescCalcWidth;	portfolioDescCalcIcHeight=portfolioDescCalcHeight;}else{    portfolioDescCalcIcWidth=portfolioDescCalcWidth-2*(2)-2*(3);    portfolioDescCalcIcHeight=portfolioDescCalcHeight-2*(2)-2*(3);}document.write('<div style="position:relative;width:'+portfoliocwidth+'px;height:'+portfoliocheight+'px;overflow:hidden;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'CCCCCC'+';'+''+''+'">');document.write('<div id="portfoliodv" style="position:relative;width:'+portfolioicwidth+'px;height:'+portfolioicheight+'px;overflow:hidden;padding:0px;margin:0px;z-index:1;'+''+'"'+' onfilterchange=portfolioFadeBitti()'+'></div>');for(i=0;i<2;i++){	if(0==0){portfoliods=portfoliods+portfoliolinkstr[i];if(portfoliolinkstr[i].length>2){CursorStr="pointer";}else{CursorStr="default";}}	portfoliods=portfoliods+'<div id="portfoliodesc'+i+'" style="position:absolute;top:'+120+'px;left:'+10+'px;width:'+portfolioDescCalcWidth+'px;height:'+portfolioDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:'+CursorStr+';z-index:20;">';	portfoliods=portfoliods+'<div style="position:absolute;left:0px;top:0px;width:'+portfolioDescCalcWidth+'px;height:'+portfolioDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#666666;background-color:#'+'000000'+';opacity: '+'0.50'+';filter:alpha(opacity='+'50'+');-moz-opacity:'+'0.50'+';"></div>';	portfoliods=portfoliods+'<div style="position:relative;left:0px;top:0px;width:'+portfolioDescCalcIcWidth+'px;height:'+portfolioDescCalcIcHeight+'px;overflow:hidden;padding:'+3+'px;text-align:'+'left'+';border-style:'+'solid'+';border-width:'+2+'px;border-color:#'+'000153'+';color:#'+'777215'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+'13px'+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);-moz-opacity:1.0;">';	portfoliods=portfoliods+'<span style="color:#'+'181758'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+'14px'+';font-weight:'+'bold'+';text-decoration:'+'none'+';">'+portfoliotitarr[i]+'</span><br />'+portfoliodesarr[i];	portfoliods=portfoliods+'</div>';	portfoliods=portfoliods+'</div>';	if(0==0){portfoliods=portfoliods+portfolioclslinkstr[i];}	}document.write(''+portfoliods);function portfolioShowCurrentDesc(){	if((portfoliodescgoster==1)&&( (portfoliotitarr[portfoliorealcurrent].length>0) || (portfoliodesarr[portfoliorealcurrent].length>0)  ))	{		after_des=document.getElementById('portfoliodesc'+portfoliorealcurrent);		after_des.style.visibility="visible";		}}function portfolioHideCurrentDesc(){	before_des=document.getElementById('portfoliodesc'+portfoliovcurr);	before_des.style.visibility="hidden";}function portfolioHighlightCurrTumb(){	if((0==1)&&(0==0))	{		portfoliobeforethumb=document.getElementById('portfoliothumb'+portfoliovcurr);		portfolioafterthumb=document.getElementById('portfoliothumb'+portfoliorealcurrent);		portfoliobeforethumb.style.borderColor='066329';		portfolioafterthumb.style.borderColor='000153';	}}document.write('</div>');function portfoliozindx(){	portfolioobjn.style.visibility="visible";	portfolioobjc.style.zIndex=2;	portfolioobjn.style.zIndex=3;    }function portfolioThumbOut(tobj,nm){	if((portfoliovcurr==nm)&&(0==0))	{}	else	{		tobj.style.borderColor='066329';	}}function portfolioThumbOver(tobj,nm){	tobj.style.borderColor='000153';}function portfolioSonrakiClick(c,n){	portfoliovcurr=c;	portfoliovnext=n;			portfolioobjc=document.getElementById('portfoliod'+portfoliovcurr);	portfolioobjn=document.getElementById('portfoliod'+portfoliovnext);}function portfolioSonraki(){	portfoliovcurr=portfoliovnext;	portfoliovnext=portfoliovnext+1;		if(portfoliovnext>=2)	{		portfoliovnext=0;		portfoliotam=1;	}		portfolioobjc=document.getElementById('portfoliod'+portfoliovcurr);	portfolioobjn=document.getElementById('portfoliod'+portfoliovnext);		      }function portfoliosecondcomplate(){	this.c=1;}function portfoliodevam(fm,pt){	if((portfolioimgarr[portfoliovnext].c==1)&&(portfolioimgarr[portfoliovcurr].c==1))	{		portfoliotimeo=setTimeout(fm+'()',pt);	}	else	{		setTimeout('portfoliodevam("'+fm+'")',500);	}	var portfoliocagain=1;	for(i=0;i<2;i++)	{		if(portfolioimgarr[i].c==1){}		else{portfoliocagain=0;}	}	if(portfoliocagain==1){portfoliotam=1;}}function ThumbClick(clicked_img,tobj){	if(portfoliojbtype==1){return;}	clearTimeout(portfoliotimeo);	portfolioSonrakiClick(portfoliorealcurrent,clicked_img);	if(portfoliofademi==1)        {            if(IEB==true)            {		if(portfoliotam==0)		{	    		portfoliodevam("portfoliodotrans",4000);		}		else		{			portfoliodotrans();		}            }            else            {		if(portfoliotam==0)		{    			portfoliodevam("portfoliobeftrans",4000);		}		else		{			portfoliobeftrans();		}            }        }	else if(portfoliofademi==2)	{		if(portfoliotam==0)		{ 			portfoliodevam("portfolioDoSlide",4000);		}		else		{			portfolioDoSlide();		}	}	else if(portfoliofademi==3)	{		if(portfoliotam==0)		{ 			portfoliodevam("portfolioDoScrollUp",4000);		}		else		{			portfolioDoScrollUp();		}	}	else if(portfoliofademi==4)	{		if(portfoliotam==0)		{ 			portfoliodevam("portfolioDoBlindX",4000);		}		else		{			portfolioDoBlindX();		}	}	else if(portfoliofademi==5)	{		if(portfoliotam==0)		{ 			portfoliodevam("portfolioDoBlindY",4000);		}		else		{			portfolioDoBlindY();		}	}	}function portfoliosl(){portfoliofademi=2;portfoliovcurr=0;portfoliovnext=0;portfoliovssdiv=null;stepc=20*(2);portfoliodif=0.00;portfolioop=1.00;portfoliodif=(1.00/stepc);dstr1='<div id="';dstr2='" style="position:absolute;visibility:hidden;'+'left:0px;top:0px;'+'padding:0px;margin:0px;overflow:hidden;">';dstr23='<table cellspacing="0" cellpadding="0" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;"><tr><td style="width:'+portfolioicwidth+'px;height:'+portfolioicheight+'px;left:0px;top:0px;padding:0px;margin:0px;text-align:'+'center'+';vertical-align:'+'middle'+';">';dstr3='<img id="portfolioimg';dstr4='" src="';dstr5='"  border="0" style="position:relative;border-style:'+'solid'+';border-width:'+'0'+'px;border-color:'+'#421772'+';'+""+'" alt=""></img>';dstr56='</td></tr></table>';dstr6='</div>';this.portfoliodotrans=portfoliodotrans;this.portfolioinitte=portfolioinitte;this.portfolioinitte2=portfolioinitte2;this.portfoliobeftrans=portfoliobeftrans;this.portfoliodotransff=portfoliodotransff;}function portfolioFadeBitti(){	portfoliojbtype=0;	portfolioShowCurrentDesc();	}function portfoliodotrans(){	portfoliojbtype=1;	portfolioHideCurrentDesc();	if(IEB==true){portfoliovssdiv.filters[0].apply();}	portfolioobjc.style.visibility="hidden";	portfolioobjn.style.visibility="visible";	if(IEB==true){portfoliovssdiv.filters[0].play();}	portfoliorealcurrent=portfoliovnext;	portfolioHighlightCurrTumb();	portfolioSonraki();			if(portfoliotam==0){portfoliodevam("portfoliodotrans",((1000*2)+4000));}	else	{		portfoliotimeo=setTimeout('portfoliodotrans()',((1000*2)+4000));	} 	}function portfoliodotransff(){	portfolioop=portfolioop-portfoliodif;		if(portfolioop<(0.00)){portfolioop=0.00;}	portfolioobjc.style.opacity = portfolioop;	portfolioobjn.style.opacity = 1.00-portfolioop;	if(portfolioop>(0.00))	{		setTimeout('portfoliodotransff()',50);	}	else	{		portfolioobjc.style.zIndex=2;		portfolioobjn.style.zIndex=3;		portfoliorealcurrent=portfoliovnext;		portfolioShowCurrentDesc();		portfolioHighlightCurrTumb();				portfolioSonraki();			        if(portfoliotam==0){portfoliodevam("portfoliobeftrans",4000);}        	else {portfoliotimeo=setTimeout('portfoliobeftrans()',4000);}		portfoliojbtype=0;  					}}function portfoliobeftrans(){	portfoliojbtype=1;	portfolioHideCurrentDesc();    	portfolioop=1.00;	portfolioobjc.style.visibility="visible";	portfolioobjn.style.visibility="visible";		portfolioobjc.style.zIndex=3;	portfolioobjn.style.zIndex=2;		portfolioobjc.style.opacity = 1.00;		portfolioobjn.style.opacity = 1.00;			portfoliodotransff();	}function portfolioDoSlide(){	portfoliojbtype=1;	portfolioHideCurrentDesc();	portfoliokalan=portfoliokalan-Math.ceil(portfoliokalan/2);	portfolioobjc.style.left=""+(portfoliokalan-portfolioicwidth)+"px";	portfolioobjn.style.left=""+portfoliokalan+"px";		if(portfoliokalan<=0)	{		portfoliorealcurrent=portfoliovnext;		portfolioShowCurrentDesc();		portfolioHighlightCurrTumb();    		portfolioSonraki();		portfoliokalan=portfolioicwidth;		portfolioobjn.style.left=""+portfoliokalan+"px";	        		portfoliozindx();          		portfoliojbtype=0;        		if(portfoliotam==0){portfoliodevam("portfolioDoSlide",4000);}		else {portfoliotimeo=setTimeout('portfolioDoSlide()',4000);}	}	else	{		setTimeout('portfolioDoSlide()',50);    	} }function portfolioDoScrollUp(){	portfoliojbtype=1;	portfolioHideCurrentDesc();	portfoliokalan=portfoliokalan-Math.ceil(portfoliokalan/2);	portfolioobjc.style.top=""+(portfoliokalan-portfolioicheight)+"px";	portfolioobjn.style.top=""+portfoliokalan+"px";	    if(portfoliokalan<=0)    {	portfoliorealcurrent=portfoliovnext;	portfolioShowCurrentDesc();	portfolioHighlightCurrTumb();        portfolioSonraki();        portfoliokalan=portfolioicheight;	portfolioobjn.style.top=""+portfoliokalan+"px";	        portfoliozindx();                 	portfoliojbtype=0;        if(portfoliotam==0){portfoliodevam('portfolioDoScrollUp',4000);}        else{portfoliotimeo=setTimeout('portfolioDoScrollUp()',4000);}        }    else    {        setTimeout('portfolioDoScrollUp()',50);        }}function portfolioDoBlindX(){	portfoliojbtype=1;	portfolioHideCurrentDesc();   	portfoliokalan=portfoliokalan-Math.ceil(portfoliokalan/2);	portfolioobjc.style.left=""+(portfolioicwidth-portfoliokalan)+"px";	portfolioobjn.style.left=""+portfoliokalan+"px";	    if(portfoliokalan<=0)    {		portfoliorealcurrent=portfoliovnext;		portfolioShowCurrentDesc();	portfolioHighlightCurrTumb();            portfolioSonraki();        portfoliokalan=portfolioicwidth;	portfolioobjn.style.left=""+portfoliokalan+"px";		    	        portfoliozindx();	portfoliojbtype=0;                  if(portfoliotam==0){portfoliodevam("portfolioDoBlindX",4000);}        else{portfoliotimeo=setTimeout('portfolioDoBlindX()',4000);}    }    else    {        setTimeout('portfolioDoBlindX()',50);        }}function portfolioDoBlindY(){	portfoliojbtype=1;	portfolioHideCurrentDesc();  	portfoliokalan=portfoliokalan-Math.ceil(portfoliokalan/2);	portfolioobjc.style.top=""+(portfolioicheight-portfoliokalan)+"px";	portfolioobjn.style.top=""+portfoliokalan+"px";	    if(portfoliokalan<=0)    {		portfoliorealcurrent=portfoliovnext;		portfolioShowCurrentDesc();portfolioHighlightCurrTumb();        portfolioSonraki();        portfoliokalan=portfolioicheight;	    portfolioobjn.style.top=""+portfoliokalan+"px";                portfoliozindx();                 	portfoliojbtype=0;        if(portfoliotam==0){portfoliodevam("portfolioDoBlindY",4000);}        else{portfoliotimeo=setTimeout('portfolioDoBlindY()',4000);}        }    else    {        setTimeout('portfolioDoBlindY()',50);        } }function portfolioinitte2(){	portfoliothumbs_obj=document.getElementById('portfoliothumbsid');	portfoliomoving_obj=document.getElementById('portfoliomovingdiv');	portfoliovssdiv=document.getElementById("portfoliodv");	if(2>0)	{		portfolioobjc=document.getElementById('portfoliod'+0);			portfolioobjc.style.visibility="visible";		}	if(2>1)	{		portfoliovcurr=0;		portfoliovnext=0;		portfoliorealcurrent=0;        if(portfoliofademi==0)        {			portfoliovcurr=0;			portfoliovnext=1;			portfoliorealcurrent=0;			setTimeout('portfoliodotrans()',4000);                }        else if(portfoliofademi==1)        {            if(IEB==true)            {	    		portfolioSonraki();			portfolioShowCurrentDesc();			portfolioHighlightCurrTumb();	    		portfoliodevam("portfoliodotrans",4000);                       }            else            {	    		portfolioSonraki();			portfolioShowCurrentDesc();			portfolioHighlightCurrTumb();	    		portfoliodevam("portfoliobeftrans",4000);                        }        }         else if(portfoliofademi==2)        {		portfoliokalan=portfolioicwidth;     		portfolioSonraki();		portfoliorealcurrent=0;		portfolioShowCurrentDesc();		portfolioHighlightCurrTumb();		portfolioobjn.style.left=""+portfoliokalan+"px";          			portfoliozindx();            		portfoliodevam("portfolioDoSlide",4000);		   	                }        else if(portfoliofademi==3)        {		portfoliokalan=portfolioicheight;            		portfolioSonraki();		portfoliorealcurrent=0;		portfolioShowCurrentDesc();		portfolioHighlightCurrTumb();		portfolioobjn.style.top=""+portfoliokalan+"px";            			portfoliozindx();                        		portfoliodevam("portfolioDoScrollUp",4000);               }                  else if(portfoliofademi==4)        {                        portfoliokalan=portfolioicwidth;                        portfolioSonraki();		portfoliorealcurrent=0;		portfolioShowCurrentDesc();portfolioHighlightCurrTumb();        	portfolioobjn.style.left=""+portfoliokalan+"px";	            	            portfoliozindx();                                   portfoliodevam("portfolioDoBlindX",4000);                 }            else if(portfoliofademi==5)        {                        portfoliokalan=portfolioicheight;                        portfolioSonraki();		portfoliorealcurrent=0;		portfolioShowCurrentDesc();portfolioHighlightCurrTumb();        	portfolioobjn.style.top=""+portfoliokalan+"px";            	            portfoliozindx();                                  portfoliodevam("portfolioDoBlindY",4000);                 }												}}function portfolioinitte(){	i=0;	innertxt="";	for(i=0;i<2;i++)	{		innertxt=innertxt+dstr1+"portfoliod"+i+dstr2+dstr23+portfoliolinkstr[i]+dstr3+i+dstr4+portfolioimgstr[i]+dstr5+portfolioclslinkstr[i]+dstr56+dstr6;	}	spage=document.getElementById('portfoliodv');	spage.innerHTML=""+innertxt;    setTimeout('portfolioinitte2()',100);}function portfolioBas(){        portfolios=new portfoliosl();        portfolios.portfolioinitte();}setTimeout('portfolioBas()',100);

Het onderstreepte is wat ik verandered heb ( wat u heeft gezegt) IK hoop als het lukt!

AlvastBedankt

Groetjes Robinho

Link naar reactie
Delen op andere sites

×
×
  • Nieuwe aanmaken...

Belangrijke informatie

We hebben cookies geplaatst op je toestel om deze website voor jou beter te kunnen maken. Je kunt de cookie instellingen aanpassen, anders gaan we er van uit dat het goed is om verder te gaan.