Hallo,
Ik ben bezig met een header voor een website. En het gekke is dat hij op mijn computer problemen geeft, en sommige andere pcs en laptops niet.
Ik gebruik IE 8.0.7600 op een WIN7 pc. resolutie 1280x1024.

dit staat in de head:
En in de body:
Ik ben bezig met een header voor een website. En het gekke is dat hij op mijn computer problemen geeft, en sommige andere pcs en laptops niet.
Ik gebruik IE 8.0.7600 op een WIN7 pc. resolutie 1280x1024.

dit staat in de head:
JavaScript:
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
| <script type="text/javascript"> $(document).ready(function() { slideShow(); }); function slideShow() { $('#gallery a').css({opacity: 0.0}); $('#gallery a:first').css({opacity: 1.0}); $('#gallery .caption').css({opacity: 0.7}); $('#gallery .caption').css({width: $('#gallery a').find('img').css('width')}); $('#gallery .content').html($('#gallery a:first').find('img').attr('rel')) .animate({opacity: 0.7}, 400); setInterval('gallery()',6000); } function gallery() { var current = ($('#gallery a.show')? $('#gallery a.show') : $('#gallery a:first')); var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#gallery a:first') :current.next()) : $('#gallery a:first')); var caption = next.find('img').attr('rel'); next.css({opacity: 0.0}) .addClass('show') .animate({opacity: 1.0}, 1000); current.animate({opacity: 0.0}, 1000) .removeClass('show'); //Set the opacity to 0 and height to 1px $('#gallery .caption').animate({opacity: 0.8}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 }); $('#gallery .caption').animate({opacity: 0.8},100 ).animate({height: '50px'},100 ); $('#gallery .content').html(caption); } </script> <style type="text/css"> .clear { clear:both } #gallery { position:relative; height:231px } #gallery a { float:left; position:absolute; } #gallery a img { border:none; } #gallery a.show { z-index:500 } #gallery .caption { z-index:600; background-color:#ffffff; color:#000000; height:50px; width:100%; position:absolute; bottom:0; } #gallery .caption .content { margin:5px } #gallery .caption .content h3 { margin:0; padding:0; color:#fe0000; } </style> |
En in de body:
code:
1
2
3
4
5
6
7
8
9
10
11
| <div id="header"> <div id="gallery"> <a href="#" class="show"> <img src="http://01.jpg" alt="" width="972" height="231" title="" alt="" rel=""/> </a> <div class="caption"><div class="content"></div></div> </div> </div> </div> |
[ Voor 0% gewijzigd door BtM909 op 01-09-2010 14:10 ]