expandingMenus.js

fab / 2010-01-11 17:04:14   

Here's my code to get a freakin' "expandingMenus.js".... BUT It doesn't work at all!! Maybe i'm too bad, that's a possibility!

Anyway, here's the code I put in "ndxz-studio/site/sample/index.php" :






path = '/files/gimgs/';

$(document).ready(function()
{
setTimeout('move_up()', 1);
# expandingMenu(0);
# expandingMenu(1);
# expandingMenu(2);
# expandingMenu(3);
# expandingMenu(4);
# expandingMenu(5);
# expandingMenu(6);

});

Could you please help me with that.... Just can't figure out where I did a mistake.

thanks!

ps: here's my website if you need to check it out : www.thisisfab.com

lemathieu A / 2010-01-11 23:37:40   

Erase the # before each of the expandingMenu( );

fab / 2010-01-12 02:26:53   

Hoooo God!! Thanks so much! Really!! Always about details.... All the best, cheers!

aryvanini / 2010-01-21 17:05:36   

Hi everybody, I'm new here.
I have some problems with expandingMenus.js as well...
I don't know what I mistake... please help me!!!!!!!!
my website is www.ariannavanini.it
thanks a lot

lemathieu A / 2010-01-21 17:39:42   

You have that lines (I don't know what is it) at the start of your expandingMenus.js :

  1. {rtf1ansiansicpg1252cocoartf1038cocoasubrtf250
  2. {fonttblf0fmodernfcharset0 Courier;}
  3. {colortbl;red255green255blue255;}
  4. paperw11900paperh16840margl1440margr1440vieww9000viewh8400viewkind0
  5. deftab720
  6. pardpardeftab720qlqnatural

\f0\fs24 \cf0

erase it.

aryvanini / 2010-01-21 17:52:35   

thank you lemathieu. I did it but it doesn't work anyway...

rickykappa / 2010-01-21 19:14:47   

arianna, how do you edit that file? whatever software you're using is leaving back a mess when you save it :-(
I mean, there are now a lot of backslashes \\\ all over in your expandingMenus.js, which are possibly making your menu not working.
I suggest you grab a new clean expandingMenus.js file and upload it again

aryvanini / 2010-01-21 23:47:00   

I grab a new expandingMenu.js file from http://www.rosscairns.com/downloads/
and upload... and, again, nothing seems to work...
maybe I have problems also with the other files, the index.php
I'm using firefox 3.5.7, cyberduck 3.4.1, and I edit js with TextEdit 1.6 and php and css with dreamweaver CS3. I have no idea what's going wrong.

aryvanini / 2010-01-21 23:51:22   

could be some mistake in building sections or pages in indexhibit?

arsondpi / 2010-01-22 00:24:43   

ok - you must have opened the script in TextEdit and saved it in Rich Text format, hence the rtf heading and styling in the begining...
When editing stuff with TextEdit make sure that you click/select Plain text (it's under Format in TextEdit's menu). Then save - don't forget to type the extension (.js)...

Or you can use free/shareware editors like Smultron, Text Wrangler etc... Check the two red links in the Useful threads for more info on these...

aryvanini / 2010-01-22 01:43:58   

you are right, the problem was the format!
now it's working..thank you very much!!!

aryvanini / 2010-01-22 17:52:47   

Hi!
I have other problem with expanding menus: when I click on an item in the menu to go to a new page, the new page opens with the menus showing... they shouldn't be closed automatically?

Moreover: the first section of my menu appears underlined when I rollover...I don't like it but I don't know why it happens and how to change it.

Could anybody helps me?
thx

lemathieu A / 2010-01-22 17:57:30   

No, i'ts how it works : the active section (where your actual page is) is open.

aryvanini / 2010-01-22 19:03:39   

I meant when I go to a new page in another section..

aryvanini / 2010-01-22 19:07:58   

thx lemathieu, now I've understood what you meant.
do you know why my first section appears underlined?

aarrtt / 2010-01-22 19:38:32   

Greetings, i have been tinkering with the expandingMenus.js to get my nav to function with click instead of hover. But i can only get it to open with one click. then it wont close with another click? what am i doing wrong?

http://jumping-flash.com/

rickykappa / 2010-01-23 10:00:06   

as far as I can see, everything looks fine in your code. only this is not proper:
    expandingMenu(0);
    expandingMenu(1);
    expandingMenu(2);
    expandingMenu(3);
    expandingMenu(4);
    expandingMenu(5);
    expandingMenu(6);
    expandingMenu(7);
    expandingMenu(8);
    expandingMenu(9);
    expandingMenu(10);
    expandingMenu(11);
    expandingMenu(12);
but you don't have so many sections.
try erasing the unnecessary lines and see if it works

This thread has been closed, thank you.