[Typo3-dev] over is not a function - gmenu rollover
Gordon Mickel
g.mickel at mkb.net
Fri Feb 6 16:58:58 CET 2004
Hi
I just ported a site i'm working on to the newest 3.6.0 core snapshot.
I have a problem with the rollovers not working in my gmenu object.
Looking at the source code of the generated page I saw that the images
have a function call like:
onmouseover="over('img19_2976_0');
the over function that is defined in the header though takes 2
parameters:
// JS function for mouse-over
function over(name,imgObj) { //
if (version == "n3" && document[name]) {document[name].src =
eval(name+"_h.src");}
else if (imgObj) {imgObj.src = eval(name+"_h.src");}
}
The rollover doesn't work and I get an error: over is not a function.
My GMENU looks like this:
temp.topmenu.1 = GMENU
temp.topmenu.1 {
NO{
stdWrap.htmlSpecialChars = 1
wrap =
XY = [10.w]+24, 36
backColor = #edeadd
transparentBackground = 1
transparentColor = #edeadd
10 = TEXT
10.text.field = nav_title // title
10.fontFile = fileadmin/fonts/trade_lt_cond20_bold.ttf
10.fontColor = #322D28
10.fontSize = 16
10.niceText = 1
10.offset = 10,22
}
RO < .NO
RO = 1
RO{
#4 = IMAGE
#4.file = fileadmin/rollover_bg.gif
backColor = #3E6076
10 = TEXT
10.fontColor = #FFFFFF
}
What am I missing?
Thanx a lot for any help.
regards
Gordon
More information about the TYPO3-dev
mailing list