Smoother opening and closing

Expanding / Collapsing, search engine friendly, Section menu.
Post Reply
norman
Site Admin
Posts: 1247
Joined: Sat Feb 07, 2004 9:55 pm

Smoother opening and closing

Post by norman »

SellerDeck now loads jQuery and we can use this to give a smooth animation to the menu's opening and closing.

Edit file collapso=-5.js (in your Site folder - I use notepad++ - back it up first).

Look for the line:

Code: Select all

    document.getElementById(levellist[level]).className = 'hOb';
Replace it with:

Code: Select all

    $( '#' + levellist[level] ).hide(200);
Look for the line:

Code: Select all

    document.getElementById(subid).className = 'sOb';
Replace it with:

Code: Select all

    $( '#' + subid ).show(200).addClass('sOb');
The 200 is the number of milliseconds for the animation to complete. Change if required.
Norman
Post Reply