Ik ben bezig met een website waar ik met javascript middels een mouseover een div wil laten verschijnen en na een mouseout weer laten verdwijnen.
Dit werkt perfect in elke browser: FF, opera, safari. behalve in IE
Ik heb de website xhtml en css gevalideerd, en kom der maar niet achter waar Internet Explorer nou op vast loopt.
Volgens Microsoft zelf zou het moeten kunnen als ik dit lees.
ik hoop dat jullie me een zet in de goede richting kunnen geven, want ik weet even niet meer waar te zoeken.
hier 2 foto's met het werkende effect in FF: 1 2
Dit werkt perfect in elke browser: FF, opera, safari. behalve in IE
Ik heb de website xhtml en css gevalideerd, en kom der maar niet achter waar Internet Explorer nou op vast loopt.
Volgens Microsoft zelf zou het moeten kunnen als ik dit lees.
ik hoop dat jullie me een zet in de goede richting kunnen geven, want ik weet even niet meer waar te zoeken.
hier 2 foto's met het werkende effect in FF: 1 2
XHTML:
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
| <div id="fotomenu"> <div class="fotomenu" id="home"> <img src="afbeeldingen/home.png" alt="home" onmouseover="javascript:showButton('home_groot')"/></div> <div class="fotomenu" id="contact"> <img src="afbeeldingen/contact.png" alt="contact" onmouseover="javascript:showButton('contact_groot')"/></div> <div class="fotomenu" id="diensten"> <img src="afbeeldingen/diensten.png" alt="diensten" onmouseover="javascript:showButton('diensten_groot')"/></div> <div class="fotomenu" id="overig1"> <img src="afbeeldingen/overig1.png" alt=""/></div> <div class="fotomenu" id="overig2"> <img src="afbeeldingen/overig2.png" alt=""/></div> <div class="fotomenu" id="overig3"> <img src="afbeeldingen/overig3.png" alt=""/></div> <div class="fotomenu" id="overig4"> <img src="afbeeldingen/overig4.png" alt=""/></div> <div class="fotomenu" id="overig5"> <img src="afbeeldingen/overig5.png" alt=""/></div> <div class="fotomenu" id="fotos"> <img src="afbeeldingen/foto's.png" alt="foto's" onmouseover="javascript:showButton('fotos_groot')"/></div> </div> <div id="fotomenu_groot"> <div class="fotomenu_groot" id="home_groot"> <img src="afbeeldingen/home_groot.png" alt="home_groot" onmouseout="javascript:hideButton('home_groot')"/> </div> <div class="fotomenu_groot" id="contact_groot"> <img src="afbeeldingen/contact_groot.png" alt="contact_groot" onmouseout="javascript:hideButton('contact_groot')"/> </div> <div class="fotomenu_groot" id="diensten_groot"> <img src="afbeeldingen/diensten_groot.png" alt="diensten_groot" onmouseout="javascript:hideButton('diensten_groot')"/> </div> <div class="fotomenu_groot" id="fotos_groot"> <img src="afbeeldingen/foto's_groot.png" alt="foto's_groot" onmouseout="javascript:hideButton('fotos_groot')"/> </div> </div> |
Cascading Stylesheet:
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
| @charset "utf-8"; /* CSS Document */ #fotomenu { background-image: url(../afbeeldingen/Menu2.png); background-repeat:no-repeat; background-position:center; width: 1024px; height: 768px; margin-left:-512px; left:50%; position: absolute; z-index: 2; } #fotomenu #home { width: 91px; height: 69px; position: absolute; z-index: 11; margin-left: 470px; margin-top: 82px; } #fotomenu #fotos { width: 91px; height: 120px; position: absolute; z-index: 14; margin-left: 645px; margin-top: 255px; } #fotomenu #contact { width: 71px; height: 94px; position: absolute; z-index: 13; margin-left: 550px; margin-top: 306px; } #fotomenu #diensten { width: 106px; height: 81px; position: absolute; z-index: 12; margin-left: 349px; margin-top: 278px; } #fotomenu #overig1 { width: 76px; height: 100px; position: absolute; z-index: 10; margin-left: 404px; margin-top: 133px; } #fotomenu #overig2 { width: 109px; height: 83px; position: absolute; z-index: 14; margin-left: 457px; margin-top: 378px; } #fotomenu #overig3 { width: 97px; height: 128px; position: absolute; z-index: 11; margin-left: 468px; margin-top: 200px; } #fotomenu #overig4 { width: 81px; height: 110px; position: absolute; z-index: 12; margin-left: 581px; margin-top: 166px; } #fotomenu #overig5 { width: 91px; height: 119px; position: absolute; z-index: 14; margin-left: 275px; margin-top: 173px; } /*knoppen menu BEGIN */ #fotomenu_groot { width: 1024px; height: 768px; margin-left:-512px; left:50%; position: absolute; } #fotomenu_groot #home_groot { width: 219px; height: 116px; position: absolute; z-index: 1; margin-left: 408px; margin-top: 35px; } #fotomenu_groot #fotos_groot { width: 165px; height: 218px; position: absolute; z-index: 1; margin-left: 610px; margin-top: 205px; } #fotomenu_groot #contact_groot { width: 172px; height: 228px; position: absolute; z-index: 1; margin-left: 500px; margin-top: 245px; } #fotomenu_groot #diensten_groot { width: 195px; height: 149px; position: absolute; z-index: 1; margin-left: 305px; margin-top: 245px; } /*knoppen menu EIND */ |
JavaScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| // JavaScript Document function showButton(id) { var knop = document.getElementById(id); knop.style.zIndex="20"; knop.style.cursor="pointer"; } function hideButton(id) { var knop = document.getElementById(id); knop.style.zIndex="1"; } |
[ Voor 27% gewijzigd door harrald op 14-03-2008 22:22 ]