Menu (javascript) werkt niet lekker.
Ik heb een Javascript menu gevonden wat ik wel eens eerder heb gebruikt. Het menu is te vinden op:
http://blog.fressh.nl/menu.php
Hier werkt alles goed, maar zodra ik hem include in de index:
http://blog.fressh.nl/
Verschuiven bij IE de items, nou heb ik nog een probleem bij firefox dat die een zwart lijntje onder elk item weergeeft. Hoe kan ik dit weghalen?
Css:
Code (php)
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
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
.transMenu {
position:absolute;
overflow:hidden;
left:-1000px;
top:-1000px;
}
.transMenu .content {
position:absolute;
}
.transMenu .items {
position:relative;
left:0px; top:0px;
z-index:2;
text-indent:5px;
}
.transMenu.top .items {
border-top:none;
}
.transMenu .item{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
text-decoration:none;
margin: 0px;
display:block;
border:none;
cursor:pointer;
cursor:hand;
border-bottom: 1px solid #191919;
}
.transMenu .background {
position:absolute;
left:0px; top:0px;
z-index:1;
-moz-opacity:.8;
filter:alpha(opacity=75);
}
.transMenu .shadowRight {
position:absolute;
z-index:3;
top:3px; width:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
.transMenu .shadowBottom {
position:absolute;
z-index:1;
left:3px; height:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
.transMenu .item.hover {
background: #A8A8A8;
}
.transMenu .item.hover td {
color:#FFFFFF;
}
.transMenu .item img {
margin-left:10px;
margin-right:0px;
}
.transMenu .item#active {
background:#333333;
color:black;
-moz-opacity:.6;
filter:alpha(opacity=60);
}
.transMenu .item#active.hover {
background:#333333;
}
.transMenu .item td{
color:#FFFFFF;
font-weight:bold;
}
#wrap {
margin: 0px;
padding: 0px;
}
#menu {
}
a.mainlevel-trans:link, a.mainlevel-trans:visited {
font-family: Verdana;
text-decoration:none;
font-size: 10px;
font-weight:bold;
color:#FFFFFF;
white-space:nowrap;
line-height: 26px;
border-right: 1px solid #FFFFFF;
display: block;
height: 26px;
width:auto;
margin: 0px;
padding: 0px 13px 0px 13px;
}
a.mainlevel-trans:hover {
color:#FFFFFF;
}
a.mainlevel_active-trans, a.mainlevel_active-trans:visited {
font-family: Verdana;
text-decoration:none;
font-size: 10px;
font-weight:bold;
color:#FFFFFF;
white-space:nowrap;
line-height: 26px;
border-right: 1px solid #000000;
display: block;
height: 26px;
width:auto;
margin: 0px;
padding: 0px 13px 0px 13px;
}
a.mainlevel_active-trans:hover {
color:#FFFFFF;
}
position:absolute;
overflow:hidden;
left:-1000px;
top:-1000px;
}
.transMenu .content {
position:absolute;
}
.transMenu .items {
position:relative;
left:0px; top:0px;
z-index:2;
text-indent:5px;
}
.transMenu.top .items {
border-top:none;
}
.transMenu .item{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
text-decoration:none;
margin: 0px;
display:block;
border:none;
cursor:pointer;
cursor:hand;
border-bottom: 1px solid #191919;
}
.transMenu .background {
position:absolute;
left:0px; top:0px;
z-index:1;
-moz-opacity:.8;
filter:alpha(opacity=75);
}
.transMenu .shadowRight {
position:absolute;
z-index:3;
top:3px; width:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
.transMenu .shadowBottom {
position:absolute;
z-index:1;
left:3px; height:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
.transMenu .item.hover {
background: #A8A8A8;
}
.transMenu .item.hover td {
color:#FFFFFF;
}
.transMenu .item img {
margin-left:10px;
margin-right:0px;
}
.transMenu .item#active {
background:#333333;
color:black;
-moz-opacity:.6;
filter:alpha(opacity=60);
}
.transMenu .item#active.hover {
background:#333333;
}
.transMenu .item td{
color:#FFFFFF;
font-weight:bold;
}
#wrap {
margin: 0px;
padding: 0px;
}
#menu {
}
a.mainlevel-trans:link, a.mainlevel-trans:visited {
font-family: Verdana;
text-decoration:none;
font-size: 10px;
font-weight:bold;
color:#FFFFFF;
white-space:nowrap;
line-height: 26px;
border-right: 1px solid #FFFFFF;
display: block;
height: 26px;
width:auto;
margin: 0px;
padding: 0px 13px 0px 13px;
}
a.mainlevel-trans:hover {
color:#FFFFFF;
}
a.mainlevel_active-trans, a.mainlevel_active-trans:visited {
font-family: Verdana;
text-decoration:none;
font-size: 10px;
font-weight:bold;
color:#FFFFFF;
white-space:nowrap;
line-height: 26px;
border-right: 1px solid #000000;
display: block;
height: 26px;
width:auto;
margin: 0px;
padding: 0px 13px 0px 13px;
}
a.mainlevel_active-trans:hover {
color:#FFFFFF;
}
Menu:
Code (php)
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
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
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Menu</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3613504-1";
urchinTracker();
</script>
<table width="926" border="0" cellspacing="0" cellpadding="0" background="images/bg_menu.png">
<tr>
<td><table cellpadding="0" cellspacing="0" class="moduletablemenu" align="left">
<tr>
<td><!-- Initialize TransMenu \-->
<div id="transmenu30870" style="display:none"></div>
<link rel="stylesheet" type="text/css" href="images/mod_d4j_transmenu.css" />
<script language="JavaScript" type="text/javascript">
function getBgColor(root) {
var bgColor = '';
if (typeof root.style != '') {
if (typeof root.style.backgroundColor != 'undefined' && root.style.backgroundColor != '') {
bgColor = root.style.backgroundColor;
}
} else if (typeof root.bgColor != 'undefined' && root.bgColor != '') {
bgColor = root.bgColor;
} else {
bgColor = getBgColor(root.parentNode);
}
return bgColor;
}
</script>
<script language="JavaScript" type="text/javascript" src="images/transmenu.compact.js"></script>
<script language="JavaScript" type="text/javascript">
// Menu Class Suffix
var menu_class_suffix = "_active-trans";
// Placeholder CSS class
var sub_placeholder_style = "sublevel";
// TransMenu settings
TransMenu.spacerGif = "images/x.gif"; // path to a transparent spacer gif
TransMenu.dingbatOn = "images/submenu-on.gif"; // path to the active sub menu dingbat
TransMenu.dingbatOff = "images/submenu-off.gif"; // path to the inactive sub menu dingbat
TransMenu.shadowPng = "images/grey-40.png"; // a PNG graphic to serve as the shadow for mac IE5
TransMenu.backgroundPng = "images/white-90.png"; // a PNG graphic to server as the background for mac IE5
TransMenu.dingbatSize = 0;
TransMenu.menuPadding = 0;
TransMenu.itemPadding = 1;
TransMenu.shadowSize = 2;
TransMenu.shadowOffset = 3;
TransMenu.shadowColor = "#888";
TransMenu.backgroundColor = "#666666";
TransMenu.hideDelay = 1000;
TransMenu.slideTime = 500;
// if supported, initialize TransMenu
function initTransMenu() {
if (TransMenu.isSupported()) {
TransMenu.initialize();
}
}
</script>
<!-- Initialize TransMenu /-->
<!-- Load TransMenu`s top level \-->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="middle"><a id="transmenu30870_menu1" class="mainlevel_active-trans" href="index.php?pagina=home">Home</a></td>
<td valign="middle"><a id="transmenu30870_menu2" class="mainlevel_active-trans" href="index.php?pagina=blogs">Blogs</a></td>
<td valign="middle"><a id="transmenu30870_menu38" class="mainlevel_active-trans" href="index.php?pagina=video">Video</a></td>
<td valign="middle"><a id="transmenu30870_menu77" class="mainlevel_active-trans" href="index.php?pagina=nieuws_all">News</a></td>
<td valign="middle"><a id="transmenu30870_menu76" class="mainlevel_active-trans" href="#">Discussion Board</a></td>
<td valign="middle"><a id="transmenu30870_menu50" class="mainlevel_active-trans" href="index.php?pagina=premium">Premium</a></td>
<td valign="middle"><a id="transmenu30870_menu73" class="mainlevel_active-trans" href="index.php?pagina=contact">Contact</a></td>
<td valign="middle"><a id="transmenu30870_menu200" class="mainlevel_active-trans" href="index.php?pagina=crew">Crew</a></td>
</tr>
</table>
<!-- Load TransMenu`s top level /-->
<!-- Load TransMenu`s sub level \-->
<script language="JavaScript" type="text/javascript">
if (TransMenu.isSupported()) {
self['transmenu30870'] = new TransMenuSet(TransMenu.direction.down, 0, 0, TransMenu.reference.bottomLeft);
document.getElementById('transmenu30870_menu1').onmouseover = function() { self['transmenu30870'].hideCurrent(); }
var transmenu30870_menu2 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu2"));
transmenu30870_menu2.addItem("Alle blogs", "index.php?pagina=blogs", 0);
transmenu30870_menu2.addItem("Blog toevoegen", "index.php?pagina=blog_toevoegen", 0);
transmenu30870_menu2.addItem("Blog handleiding", "index.php?pagina=blog_handleiding", 0);
var transmenu30870_menu38 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu38"));
transmenu30870_menu38.addItem("Alle video's", "index.php?pagina=video", 0);
transmenu30870_menu38.addItem("Video toevoegen", "index.php?pagina=video_toevoegen", 0);
transmenu30870_menu38.addItem("Video handleiding", "index.php?pagina=video_handleiding", 0);
var transmenu30870_menu77 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu77"));
transmenu30870_menu77.addItem("Update Nieuws", "index.php?pagina=nieuws_update", 0);
transmenu30870_menu77.addItem("Site Nieuws", "index.php?pagina=nieuws_site", 0);
var transmenu30870_menu76 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu76"));
transmenu30870_menu76.addItem("Coming Soon", "#", 0);
var transmenu30870_menu50 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu50"));
transmenu30870_menu50.addItem("Premium worden", "index.php?pagina=premium_worden", 0);
transmenu30870_menu50.addItem("Premium punten", "index.php?pagina=premium_punten", 0);
TransMenu.renderAll();
}
if (window.addEventListener) {
window.addEventListener('load', initTransMenu, false);
} else if (window.attachEvent) {
var tmev = window.attachEvent('onload', initTransMenu);
} else {
initTransMenu();
}
</script>
<!-- Load TransMenu`s sub level /-->
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html><!-- 1210496098 -->
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Menu</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3613504-1";
urchinTracker();
</script>
<table width="926" border="0" cellspacing="0" cellpadding="0" background="images/bg_menu.png">
<tr>
<td><table cellpadding="0" cellspacing="0" class="moduletablemenu" align="left">
<tr>
<td><!-- Initialize TransMenu \-->
<div id="transmenu30870" style="display:none"></div>
<link rel="stylesheet" type="text/css" href="images/mod_d4j_transmenu.css" />
<script language="JavaScript" type="text/javascript">
function getBgColor(root) {
var bgColor = '';
if (typeof root.style != '') {
if (typeof root.style.backgroundColor != 'undefined' && root.style.backgroundColor != '') {
bgColor = root.style.backgroundColor;
}
} else if (typeof root.bgColor != 'undefined' && root.bgColor != '') {
bgColor = root.bgColor;
} else {
bgColor = getBgColor(root.parentNode);
}
return bgColor;
}
</script>
<script language="JavaScript" type="text/javascript" src="images/transmenu.compact.js"></script>
<script language="JavaScript" type="text/javascript">
// Menu Class Suffix
var menu_class_suffix = "_active-trans";
// Placeholder CSS class
var sub_placeholder_style = "sublevel";
// TransMenu settings
TransMenu.spacerGif = "images/x.gif"; // path to a transparent spacer gif
TransMenu.dingbatOn = "images/submenu-on.gif"; // path to the active sub menu dingbat
TransMenu.dingbatOff = "images/submenu-off.gif"; // path to the inactive sub menu dingbat
TransMenu.shadowPng = "images/grey-40.png"; // a PNG graphic to serve as the shadow for mac IE5
TransMenu.backgroundPng = "images/white-90.png"; // a PNG graphic to server as the background for mac IE5
TransMenu.dingbatSize = 0;
TransMenu.menuPadding = 0;
TransMenu.itemPadding = 1;
TransMenu.shadowSize = 2;
TransMenu.shadowOffset = 3;
TransMenu.shadowColor = "#888";
TransMenu.backgroundColor = "#666666";
TransMenu.hideDelay = 1000;
TransMenu.slideTime = 500;
// if supported, initialize TransMenu
function initTransMenu() {
if (TransMenu.isSupported()) {
TransMenu.initialize();
}
}
</script>
<!-- Initialize TransMenu /-->
<!-- Load TransMenu`s top level \-->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="middle"><a id="transmenu30870_menu1" class="mainlevel_active-trans" href="index.php?pagina=home">Home</a></td>
<td valign="middle"><a id="transmenu30870_menu2" class="mainlevel_active-trans" href="index.php?pagina=blogs">Blogs</a></td>
<td valign="middle"><a id="transmenu30870_menu38" class="mainlevel_active-trans" href="index.php?pagina=video">Video</a></td>
<td valign="middle"><a id="transmenu30870_menu77" class="mainlevel_active-trans" href="index.php?pagina=nieuws_all">News</a></td>
<td valign="middle"><a id="transmenu30870_menu76" class="mainlevel_active-trans" href="#">Discussion Board</a></td>
<td valign="middle"><a id="transmenu30870_menu50" class="mainlevel_active-trans" href="index.php?pagina=premium">Premium</a></td>
<td valign="middle"><a id="transmenu30870_menu73" class="mainlevel_active-trans" href="index.php?pagina=contact">Contact</a></td>
<td valign="middle"><a id="transmenu30870_menu200" class="mainlevel_active-trans" href="index.php?pagina=crew">Crew</a></td>
</tr>
</table>
<!-- Load TransMenu`s top level /-->
<!-- Load TransMenu`s sub level \-->
<script language="JavaScript" type="text/javascript">
if (TransMenu.isSupported()) {
self['transmenu30870'] = new TransMenuSet(TransMenu.direction.down, 0, 0, TransMenu.reference.bottomLeft);
document.getElementById('transmenu30870_menu1').onmouseover = function() { self['transmenu30870'].hideCurrent(); }
var transmenu30870_menu2 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu2"));
transmenu30870_menu2.addItem("Alle blogs", "index.php?pagina=blogs", 0);
transmenu30870_menu2.addItem("Blog toevoegen", "index.php?pagina=blog_toevoegen", 0);
transmenu30870_menu2.addItem("Blog handleiding", "index.php?pagina=blog_handleiding", 0);
var transmenu30870_menu38 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu38"));
transmenu30870_menu38.addItem("Alle video's", "index.php?pagina=video", 0);
transmenu30870_menu38.addItem("Video toevoegen", "index.php?pagina=video_toevoegen", 0);
transmenu30870_menu38.addItem("Video handleiding", "index.php?pagina=video_handleiding", 0);
var transmenu30870_menu77 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu77"));
transmenu30870_menu77.addItem("Update Nieuws", "index.php?pagina=nieuws_update", 0);
transmenu30870_menu77.addItem("Site Nieuws", "index.php?pagina=nieuws_site", 0);
var transmenu30870_menu76 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu76"));
transmenu30870_menu76.addItem("Coming Soon", "#", 0);
var transmenu30870_menu50 = self['transmenu30870'].addMenu(document.getElementById("transmenu30870_menu50"));
transmenu30870_menu50.addItem("Premium worden", "index.php?pagina=premium_worden", 0);
transmenu30870_menu50.addItem("Premium punten", "index.php?pagina=premium_punten", 0);
TransMenu.renderAll();
}
if (window.addEventListener) {
window.addEventListener('load', initTransMenu, false);
} else if (window.attachEvent) {
var tmev = window.attachEvent('onload', initTransMenu);
} else {
initTransMenu();
}
</script>
<!-- Load TransMenu`s sub level /-->
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html><!-- 1210496098 -->
Alvast bedankt! ;)
Er zijn nog geen reacties op dit bericht.