Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
Evening all.
I am in middle of building a new website, but for some reason i have an error i cannot understand.
www.thearmyandnavy.co.uk
If you hover over the left hand catagories (test) it comes up with an error bottom left in IE.
What the hell does it mean :/
Adult GiftsClick here to vist us
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
It's fine in Firefox.
Guessing its to do with hover colour's etc....
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
Where the fook will i find them :/
Adult GiftsClick here to vist us
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
It's a Javascript error. I can't seem to find out where the function toggleMenu(); is or what it does from a quick glance. You could try getting rid of this bit:
onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)"
From the menu called "nav". That will fix it, but I'm not sure if it will break something else.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Also, if you use Firefox, download Firebug. If you use Chrome, you can use the development tools to find errors
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
ive looked at my own site, and compared the source, the only difference i can see is this
the non working site has this code:
<ul id="side-nav">
<li class="level0 nav-1 parent" onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)">
<a href="http://thearmyandnavy.co.uk/test.html">
<span>Test</span>
</a>
<ul class="level0">
<li class="level1 nav-1-1 first last">
The fully working is the same except the last line says :
<li class="level1 nav-1-1 last">
is the word first throwing my error?
Adult GiftsClick here to vist us
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
The word first is a class so it shouldn't matter. The problem is definitely the onmouseover and onmouseout stuff. The toggleMenu() function appears to be missing...
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
i cannot find the term togglemenu anywhere, in any css or js files
I hate not knowning wtf im doing lol
Adult GiftsClick here to vist us
|
Richie
Member
Registered: 3rd Dec 02
Location: Newport, Wales
User status: Offline
|
toggleMenu() is not defined in magento 1.4.10. As explodedmenu relies on this function it is broken.
To fix it you can just change app/code/community/Raptor/Explodedmenu/Block/Navigation.php.
Replace
toggleMenu(this, 1) with
Element.addClassName(this, \'over\')
and
toggleMenu(this, 0) with
Element.removeClassName(this, \'over\')
[Edited on 15-09-2010 by Richie]
|
Richie
Member
Registered: 3rd Dec 02
Location: Newport, Wales
User status: Offline
|
Theres loads on various forums about it
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
thanks for pointing me in the right direction richie.
I dont have the files mentioned in that.
But i did some more googling and found the place where it defines the onmouseover and changed it. It cured the problem
Adult GiftsClick here to vist us
|