Good day comrades xoopers!Iv got some problems with "how to mark current link on web site". For example, here is a situation: -
We`v got a "main menu" (/Home/News/Info/Partners/e.t.c./), "User menu"(/profile links/), "smartsection menu (/Categories/1,2,3, e.t.c.)" at the left column,... and at the top of page we`v got "hot link menu"(/Home/News/Info/Contacts/Partners/E.T.C/) some of them point to modules and some of them points to some documents in modules such as "SmartSection module" cous logical placing positon of that doc about 2-4 levels deep, but it should be easy accesible from "home" page...
Question - How to mark-highlight current links on a page when user clicks on it and go to "news" for example or "partners" e.t.c.?
So what we need to get if user clicks on a "news" - the "news links" are highlighted, or user click on "partners" -result now "partners" link highlighted...
I`v tried to play with CSS pseudo class - a:active, a:hover, a.current ... and few more things...
/acceptable thing was a JavaScript - SlideBall how it works You can see
here / but I could not get it work on a XOOPS theme.
part of my CSS may be help you to point right way
Quote:
/* block main menu */
#mainmenu { font-size: 13px;}
#mainmenu a {display: block; margin: 0; padding: 4px;border-bottom: 1px solid #e9e9e9;}
#mainmenu a:hover, a:focus, a:active { color:#FF0000;}
#mainmenu a.menuTop {}
#mainmenu a.menuMain {}
#mainmenu a.menuSub {padding-left: 12px; background-color: #FFFFFF; font-size:.9em; font-style:italic; border-right: 1px solid #666; border-bottom: 1px solid #666; border-left: 1px solid #ccc;}
#mainmenu a.menuSub:hover {background-color: #e6e6e6;}
/* block user menu */
#usermenu { font-size: 13px;}
#usermenu a {display: block; margin: 0; padding: 4px;border-bottom: 1px solid #e9e9e9;}
#usermenu a:hover, a:focus, a:active { color:#FF0000;}
#usermenu a.menuTop {}
#usermenu a.highlight {background-color: #66CC00;}
few more info
XOOPS Version: 2.3.1
Module Name/Version: any
PHP Version: 5.xx
MySQL Version: 5.xx
Web Server Software (Apache/IIS/Other): apache
Operating System: RedHat
Theme you are using: Buisnex
Custom template: (Yes/No) not sure
PHP Debug Messages: none
MySQL Debug Messages: none
Smarty Debug Messages: none
_____________________
With best regards to xoopers