{"id":302,"date":"2010-07-19T15:25:00","date_gmt":"2010-07-19T19:25:00","guid":{"rendered":"http:\/\/erics-test-lab.com\/?p=302"},"modified":"2010-07-19T15:25:00","modified_gmt":"2010-07-19T19:25:00","slug":"horizontal-menu-challenges","status":"publish","type":"post","link":"https:\/\/www.esearing.com\/v2010\/2010\/07\/horizontal-menu-challenges\/","title":{"rendered":"horizontal menu challenges"},"content":{"rendered":"<p>I needed to implement a self contained Horizontal menu that shows the user which section they are in by using a highlight that is different from the rest of the menu bar. No breadcrumbs.<\/p>\n<p>Using coldfusion allowed me to do it. Turn everything off then use an URL variable (xWhereAmI_ind) to turn on the section they are in. We then use a class variable which is controlled by CSS to affect the appearance of the hilight.<\/p>\n<p><code>&lt;cfset navhome=\"HILIGHT_OFF\"&gt;<br \/>\n\t\t&lt;cfset navreports=\"HILIGHT_OFF\"&gt;<br \/>\n\t\t&lt;cfset navdocs=\"HILIGHT_OFF\"&gt;<br \/>\n\t\t&lt;cfset navtools=\"HILIGHT_OFF\"&gt;<br \/>\n\t\t&lt;cfset navlinks=\"HILIGHT_OFF\"&gt;<br \/>\n\t\t&lt;cfset navinternal=\"HILIGHT_OFF\"&gt;<br \/>\n&nbsp;<br \/>\n\t\t&lt;cfif #IsDefined('xWhereAmI_ind')#&gt;<br \/>\n\t\t&lt;cfswitch expression=\"#xWhereAmI_ind#\"><br \/>\n\t\t&lt;cfcase value=\"home_gnXd\"&gt;&lt;cfset navhome=\"HILIGHT_ON\"&gt;&lt;\/cfcase&gt;<br \/>\n\t\t&lt;cfcase value=\"rpt_gnXd\"&gt;&lt;cfset navreports=\"HILIGHT_ON&gt;&lt;\/cfcase&gt;<br \/>\n\t\t&lt;cfcase value=\"doc_gnXd\"&gt;&lt;cfset navdocs=\"HILIGHT_ON\"&gt;&lt;\/cfcase&gt;<br \/>\n\t\t&lt;cfcase value=\"tool_gnXd\"&gt;&lt;cfset navtools=\"HILIGHT_ON\"&gt;&lt;\/cfcase&gt;<br \/>\n\t\t&lt;cfcase value=\"link_gnXd\"&gt;&lt;cfset navlinks=\"HILIGHT_ON\"&gt;&lt;\/cfcase&gt;<br \/>\n\t&lt;cfcase value=\"linkIntrnl_gnXd\"&gt;&lt;cfset navinternal=\"HILIGHT_ON\"&gt;&lt;&lt;\/cfcase&gt;<br \/>\n\t\t&lt;\/cfswitch&gt;<br \/>\n\t&lt;\/cfif&gt;<\/code><\/p>\n<p>One note. FOR MSIE 6 you must declare the css for each of the highlight anchor modes (link, hover, visited) separately from the menu anchor modes. The highlight a:link and a:visited should be the same.<br \/>\n<code><br \/>\nul li a:link{background-color:white; color:blue;}<br \/>\nul li a:hover{background-color:blue; color: white}<br \/>\nul li a:visited{background-color:silver; color:blue;}<br \/>\nul .HIGHLIGHT_ON a:link{background-color:blue; color:white}<br \/>\nul .HIGHLIGHT_ON a:hover{background-color:blue; color: black}<br \/>\nul .HIGHLIGHT_ON a:visited{background-color:white; color: blue}<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to implement a self contained Horizontal menu that shows the user which section they are in by using a highlight that is different from the rest of the menu bar. No breadcrumbs. Using coldfusion allowed me to do &hellip; <a href=\"https:\/\/www.esearing.com\/v2010\/2010\/07\/horizontal-menu-challenges\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8,21],"tags":[],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-code","category-css","category-problems-fixes"],"_links":{"self":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":0,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}