Pages: [1]
Author Topic: Navigation Button  (Read 1468 times)
fernando gomez
Guest


Email
on: Apr 30, 08, 09:26 AM

Sergey, I have added a hover button to my nav. How can I make the hover image (selected button stay when browing that page?)

Example,
Home
Skill
Puzzle (Is in orange and im on the page puzzle and it doesnt go back to normal bg_nav so the user knows what page he is on because it stays highlited in the nav)
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #1 on: May 01, 08, 03:48 AM

you can modify the block_gamesnav.php which is responsible for that navigation bar... If you are inside a category, the $_REQUEST['cat'] is defined, so you can check its value and asign some value to a template macro... The idea is quite simple - add a class (something like class="!ISACTIVE!") to the <li> tag inside the "block_gamesnav.html" template, then in the block_gamesnav.php check the $_REQUEST['cat'] value and assign 'active' to the 'ISACTIVE' macro if $_REQUEST['cat'] == $res['id'], otherwise assign ''.

And finally, define the 'active' class in your CSS file.
Logged
fernando gomez
Guest


Email
Reply #2 on: May 01, 08, 07:12 AM

Don't understand... lol maybe when u have time to explain step by step xD
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #3 on: May 02, 08, 12:53 AM

Actualy I plan to write few tutorials about script customization, custom plugins and page blocks, like (for example) integration of tnx.net advertising which is allready working at arcadeous.com
Logged
Pages: [1]
 
Jump to: