code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| <html>
<head>
<title>JS</title>
<link href="../../objects/stylesheets/wonen.css" rel="Stylesheet" type="text/css" title="Stylesheet">
<script language="javascript" src="hoek.js" />
<script language="javascript">
function hoek(number) {
parent.mainframe.document.open();
parent.mainframe.document.write("<body leftmargin='25'><link href='../../objects/stylesheets/wonen.css' rel='Stylesheet' type='text/css' title='Stylesheet'><center>[img]images/"+number+".jpg><br><span[/img]"+photo[number]+": "+text[number]+"</span></center></body>");
parent.mainframe.document.close();
}
</script>
</head>
<body leftmargin="0">
<script language="javascript">
document.write("<center>");
document.write("<table width=200 border=0 cellspacing=0 cellpadding=0>");
for(i=photo.length-1; i>3; i--) {
document.write("<tr>");
document.write("<td><center><a href='Javascript:"+hoek(i)+";'>[img]'images/"+i+".jpg'");
document.write("width=150[/img]</a><br>");
document.write("<span class='photoline'>"+photo[i]+"</span><br><br>");
document.write("</center></td>");
document.write("</tr>");
}
document.write("</table></center>");
</script>
</body>
</html>
</html> |
Dit is mijn code. En dit ook is van de include:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| // Hoek 1 var photo = new Array(); photo[1] = '08-05-2003'; photo[2] = '06-06-2003'; photo[3] = '29-07-2003'; photo[4] = '02-09-2003'; photo[5] = '02-09-2003'; photo[6] = '12-12-2003'; var text = new Array(); text[1] = ''; text[2] = ''; text[3] = ''; text[4] = ''; text[5] = ''; text[6] = ''; |
Het probleem:
Ik krijg met geen mogelijkheid de HREF of regel 31 werkend.
Terwijl als ik die code gewoon scrhijf in HTML hij het wel doet.
Zie ik wat over het hoofd??
mijn naam slaat nergens op, althans niet op mij :P