Heej,
Ik heb een fotoboek gemaakt, wat het eerst goed deed, nu heb ik hem overgeplaatst naar een ander script en nu pakt hij hem niet meer?
Ik bedoel dus dat hij helemaal niets meer weergeeft!!
Kan iemand de fout zien?
Ik heb een fotoboek gemaakt, wat het eerst goed deed, nu heb ik hem overgeplaatst naar een ander script en nu pakt hij hem niet meer?
Ik bedoel dus dat hij helemaal niets meer weergeeft!!
Kan iemand de fout zien?
HTML:
<html>
<head>
<script language="JavaScript" type="text/javascript">
// dit kun je wijzigen
var Beeldbreedte=300;
var Beeldhoogte=300;
var Rand=false;
var Randkleur="#d0fbeb";
var Snelheid=15;
var Pauze=3000; // 1 seconde = 1000
var Verticaal=0;
// hier plaats je de afbeeldingen
Afbeeldingen=new Array(
"1 (1).jpg","#",
"1 (2).jpg","#",
"1 (3).jpg","#",
"1 (4).jpg","#",
"1 (5).jpg","#",
"1 (6).jpg","#",
"1 (7).jpg","#",
"1 (8).jpg","#",
"1 (9).jpg","#",
"1 (10).jpg","#",
"1 (11).jpg","#",
"1 (12).jpg","#",
"1 (13).jpg","#",
"1 (14).jpg","#",
"1 (15).jpg","#",
"1 (16).jpg","#",
"1 (17).jpg","#",
"1 (18).jpg","#",
"1 (19).jpg","#",
"1 (20).jpg","#",
"1 (21).jpg","#",
"1 (22).jpg","#",
"1 (23).jpg","#",
"1 (24).jpg","#",
"1 (25).jpg","#",
"1 (26).jpg","#",
"1 (27).jpg","#",
"1 (28).jpg","#",
"1 (29).jpg","#",
"1 (30).jpg","#",
"1 (31).jpg","#",
"1 (32).jpg","#",
"1 (33).jpg","#",
"1 (34).jpg","#",
"1 (35).jpg","#",
"1 (36).jpg","#",
"1 (37).jpg","#",
"1 (38).jpg","#",
"1 (39).jpg","#",
"1 (40).jpg","#",
"1 (41).jpg","#",
"1 (42).jpg","#",
"1 (43).jpg","#",
"1 (44).jpg","#",
"1 (45).jpg","#",
"1 (46).jpg","#",
"1 (47).jpg","#",
"1 (48).jpg","#",
"1 (49).jpg","#",
"1 (50).jpg","#",
"1 (51).jpg","#"
// geen komma na laatste regel!
);
// hieronder niets veranderen!
var BLI,BMI,BRI,BTI,HOEK=0,AFBC=6,MAXB,RICHTING=1;
var B_MSz,HALT=false;AFBV=new Array(Afbeeldingen.length);
function fotoboek(){
if(document.getElementById){
for(i=0;i<Afbeeldingen.length;i+=2){
AFBV[i]=new Image();AFBV[i].src=Afbeeldingen[i]}
BoekDiv=document.getElementById("Boek");
BLI=document.createElement("img");BoekDiv.appendChild(BLI);
BRI=document.createElement("img");BoekDiv.appendChild(BRI);
BMI=document.createElement("img");BoekDiv.appendChild(BMI);
BLI.style.position=BMI.style.position=BRI.style.position="absolute";
BLI.style.zIndex=BRI.style.zIndex=0;BMI.style.zIndex=1;
BLI.style.top=(Verticaal?Beeldhoogte+1:0)+"px";
BLI.style.left=0+"px";
BMI.style.top=0+"px";
BMI.style.left=(Verticaal?0:Beeldbreedte+1)+"px";
BRI.style.top=0+"px";
BRI.style.left=(Verticaal?0:Beeldbreedte+1)+"px";
BLI.style.height=Beeldhoogte+"px";
BMI.style.height=Beeldhoogte+"px";
BRI.style.height=Beeldhoogte+"px";
BLI.style.width=Beeldbreedte+"px";
BMI.style.width=Beeldbreedte+"px";
BRI.style.width=Beeldbreedte+"px";
if(Rand){
BLI.style.borderStyle=BMI.style.borderStyle=BRI.style.borderStyle="solid";
BLI.style.borderWidth=6+"px";
BMI.style.borderWidth=6+"px";
BRI.style.borderWidth=6+"px";
BLI.style.borderColor=BMI.style.borderColor=BRI.style.borderColor=Randkleur}
BLI.src=AFBV[0].src;
BLI.lnk=Afbeeldingen[1];
BMI.src=AFBV[2].src;
BMI.lnk=Afbeeldingen[3];
BRI.src=AFBV[4].src;
BRI.lnk=Afbeeldingen[5];
BLI.onclick=BMI.onclick=BRI.onclick=HYPERLINK;
BLI.onmouseover=BMI.onmouseover=BRI.onmouseover=STOP;
BLI.onmouseout=BMI.onmouseout=BRI.onmouseout=START;
AFBEELDINGEN()}}
function AFBEELDINGEN(){
if(!HALT){
if(Verticaal){
B_MSz=Math.abs(Math.round(Math.cos(HOEK)*Beeldhoogte));
MidOffset=!RICHTING?Beeldhoogte+1:Beeldhoogte-B_MSz;
BMI.style.top=MidOffset+"px";
BMI.style.height=B_MSz+"px"}
else{B_MSz=Math.abs(Math.round(Math.cos(HOEK)*Beeldbreedte));
MidOffset=RICHTING?Beeldbreedte+1:Beeldbreedte-B_MSz;
BMI.style.left=MidOffset+"px";
BMI.style.width=B_MSz+"px"}
HOEK+=Snelheid/720*Math.PI;
if(HOEK>=Math.PI/2&&RICHTING){
RICHTING=0;
if(AFBC==Afbeeldingen.length)AFBC=0;
BMI.src=AFBV[AFBC].src;
BMI.lnk=Afbeeldingen[AFBC+1];
AFBC+=2}
if(HOEK>=Math.PI){
RICHTING=1;
BTI=BLI;
BLI=BMI;
BMI=BTI;
if(Verticaal)BMI.style.top=0+"px";
else BMI.style.left=Beeldbreedte+1+"px";
BMI.src=BRI.src;
BMI.lnk=BRI.lnk;
setTimeout("PAUZEREN()",Pauze)}
else setTimeout("AFBEELDINGEN()",50)}
else setTimeout("AFBEELDINGEN()",50)}
function PAUZEREN(){
if(AFBC==Afbeeldingen.length)AFBC=0;
BRI.src=AFBV[AFBC].src;
BRI.lnk=Afbeeldingen[AFBC+1];
BMI.style.zIndex=2;
BLI.style.zIndex=1;
HOEK=0;
AFBC+=2;
setTimeout("AFBEELDINGEN()",50)}
function HYPERLINK(){if(this.lnk)window.location.href=this.lnk}
function STOP(){HALT=true;this.style.cursor=this.lnk?"pointer":"default"}
function START(){HALT=false}
</script>
<title>3 maart 2007</title>
</head>
<body bgcolor="#000000">
<h1 align="center"><font color="#FFFFFF">3 maart 2007</font></h1>
<p align="center"><font color="#FFFFFF">Deze foto's zijn van de keer dat
Rock Solid in de sporthal zat!</font></p>
<p> </p>
<div align=""></div>
<div id="Boek" style="position: relative; width: 600px; left: 0px; top: 12px;"></div>
</body>
</html>
Laatst bewerkt: