CSS Menu Which Highlights Current Selection
Hi,
I'm trying to convert my table and frame-based site to use CSS.
http://www.jchmusic.com
OK, the menu at the left works fine except that I'd like it to behave a bit differently; more like a real 'application' if possible.
When the user clicks on a menu, I want that menu selection to -remain- highlighted (or a different color or -something-) to indicate where the user is on the web site. Then, when the user clicks on another menu option, I want that to 'de-select' and the next menu choice to be highlighted.
I hope that makes sense. In effect, I want the page to have a 'memory' to act as a visual indicator for the user.
I've seen all kinds of CSS menus, but few that do this. And the ones I've seen which -do- work like this have style sheets that are -far- too complex for me to suss out on my own. What's the 'trick'? Is there javascript involved? Session Variables? Or is this something that can be done with only CSS (which is my deep hope.)
TIA,
---JC
If you want just the current page that you are visiting to be different, assign it an id as in "here".
If this is your sidebar links and the example uses <ul><li> as the example below:
<div id="sidebar1">
<div class="sidenav">
<h1>Link Header </h1>
<ul>
<li><a href="#" id="here">Link One</a></li>
<li><a href="/#">Link Two</a></li>
<li><a href="#">Link Three</a></li>
<li><a href="#">Link Four</a></li>
<li><a href="#">Link Five</a></li>
<li><a href="#">Link Six</a></li>
</ul>
</div>
</div>
Then the css would be:
#sidebar1 {
float: left;
width: 150px;
padding: 15px 5px 15px 5px;
margin-left:10px;
.sidenav h1,.sidenav ul {
padding-left: 5px;
.sidenav {
background: #cccccc;
float: left;
width: 150px;
.sidenav h1 {
color: #ffffff;
font-size:1em;
height: 20px;
background-color:#990000;
.sidenav ul {
border-top: 1px solid #fafafa;
margin: 0;
padding: 0;
.sidenav li {
border: 1px solid #fafafa;
border-top: none;
list-style: none;
margin: 0;
.sidenav li a {
color: #000000;
display: block;
font-size: 0.9em;
padding: 3px 6px 3px 14px;
text-decoration: none;
background-color:#efefef;
border-left: solid 5px #ffffff;
.sidenav li a:hover {
color: #ffffff;
background-color:#996600;
.sidenav li a:visited {
text-decoration:underline;
.sidenav a#here {
border-left-color: #900 !important;
background-color: transparent !important;
color: #0074A5 !important;
Similar Messages
-
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha -
Highlight Current/selected cell in Calender
Hi,
How can I highlight current / Selected Cell in Calender ?
Im using calender with link as like in Denes application: http://htmldb.oracle.com/pls/otn/f?p=31517:40
But I cannot highlight the clicked/selected cell.
Regards,
BenzAny clue ? ..
-
Spry Menu Bar Show Highlighting currently selected
Is there a way to get a vertical Spry menu to leave the
lights on while we're on a given page? I'd like to affect the menu
behavior to cue it to leave the highlighting turned on for the
currently selected page. I'm hoping there's a short script I could
add to individual pages to tell the menu where we are. If my menu
has 6 vertical list items, and the page I an displaying was loaded
by clicking on the third item in the list, then I'd like item three
in the menu to remail highlighted. This would cue the user to know
where they are in the menu for any given page. Looking at the
script near "show menu highlighting and MenuBarItemHover"hey,
i think the reason the spry menu isn't working is because it
needs to expand past the frame, which isn't possible. if you want
you can use
this
it's compact and it doesn't need to exapand past the frame.
hope this helped -
Highlighting currently selected row in a Report-Form page
Hi,
I have a page with Report - Form layout. On the top of the page there is a classical report (not IR). When the user click a row then I display a detail form below it. It would be nice if I could highlight the row the user clicked last time, to indicate to which row the detail data below the report belongs to. Did any body do something similar?
Regards, TamasIt's relatively simple to achieve this—without JavaScript—using a named column report template and CSS:
http://apex.oracle.com/pls/apex/f?p=34839:27:0
We'll assume a page item (or items) already exists for receiving the master row primary key value(s). In the example this is P27_DEPTNO. Give the master report region a static ID for use in CSS selectors. Here this is department.
If the master primary key value(s) are used as links in the report, then [column link] columns need to be created to replace them in the report attributes.
Create a named column report template as required by your report query, including an HTML ID attribute for the report row element that contains column references to the primary key value(s). Replace column references in the row template for any primary key link columns with the [column link]s created previously. In the example, [column link] (ref #4#) replaces DEPTNO (ref #1#) as we need to reference the original DEPTNO value in the row ID:
Row Template
<tr id="dept-#1#">
<td class="t17data">#4#</td>
<td class="t17data">#2#</td>
<td class="t17data">#3#</td>
</tr>We then just need to use the selected P27_DEPTNO value via substitution in a page HTML Header to create a descendant selector that will apply a highlight to the cells in the currently selected row (along with some others to make it easier to select the row):
CSS
<style type="text/css">
/* Make the whole table cell a link target */
#department td {
padding: 0;
#department td a:link {
display: block;
padding: 2px 8px;
/* Universal Selector sucks */
font-size: 9pt;
/* Highlight the selected row */
#department tr#dept-&P27_DEPTNO. td {
background-color: #eee;
</style> -
Flash menu that highlights the selected item when changing page?
Hi all,
I'm trying to create a menu in flash that will highlight the
current
selected menu item when selecting a specific page.
Example menu:
- home
- products
- product 1
- product 2
- product 3
- contacts
- email
- form
Imagine you have a link in a page that opens the contact >
email page.
Is there a way to get the flash menu to highlight the
"contacts > email"
item when displaying this page?
Something similar to this
http://tinyurl.com/5c9993
Is there an application that can do this easily?
Thanks in advance for any idea.
Tonyhere is a link to a rar file i just updated for ya.
it is a flash movie and 2 web pages. showing how u can send
variables to flash with java script.
http://www.wholesalegranitedist.com/home/tutorials/jsquery.rar
if you can't get this file let me know i will just post it
here.
you will have to change the menu depending on which variable
u send. to flash. it can change on which page you visit;). ask more
questions if you need to. or private message me. -
Previous versions of Firefox all printed. All other browsers, programs - Word, Outlook, IE 9, Live Mail, Excel, Adobe files/documents, etc. print. Have more Add-ons than list of plugins below. Can email jpg. screenshots of all printer settings in about:config. Can't paste them here or below.
See this: <br />
http://kb.mozillazine.org/Problems_printing_web_pages -
I made a css-menu which on Mouse over is shown; In Firefox on
Mac it works fine, but on IE/PC it disappears when it comes over
another layer. On Mac Firefox the scrollbar from a text-layer is
going over the menu-div. I made the z-index of the menu-div the
highest from all.. Does someone know how I can solve this?
http://www.dedaadcom.nl/onnovlaanderen/bureau.phpI've actually worked it out ! so dont worry
-
CSS to Highlight Current TD Tag Selection
Trying to find how I add a CSS class to show the currently
selected menu item.
I am using
<td height="22"align="center"
class="SmallLinkB"onclick="MM_changeProp('titletxt','','innerHTML','<img
src=\"/FILESPEC.gif\"
alt=\"dwr\" width=\"20\"
height=\"15\" /> TEXT HERE
<o:p><a
href=\"/FILESPEC.pdf\"
target=\"_blank\"
class=\"nugbody\">PDF</a>
<span
class=\"nugbody\">or</span>
<a href=\"/FILESPEC.swf\"
target=\"_blank\"
class=\"nugbody\">FlashPaper</a></o:p><img
src=\"/FILESPEC.gif\"
alt=\"dw\" width=\"20\"
height=\"15\"
/>','DIV');Spry.Utils.updateContent('DIV1',
'/FILESPEC.php'); return false"
onmouseover="this.style.backgroundColor = '#FFD2AA'
;this.style.cursor='pointer'"
onmouseout="this.style.backgroundColor = ''">TEXT
HERE</td>
inside a SpryCollapsiblePanel with color effects.
When I select a meu item, I want the new selection to be
highlighted and to release the last selection.You can achieve this result by adding:
<script language="javascript" type="text/javascript"
src="../../includes/xpath.js"></script>
<script language="javascript" type="text/javascript"
src="../../includes/SpryData.js"></script>
and then embed a DIV in the panelcontent called "test1' to
each button then add onClick=
Spry.Utils.addClassName('test1','selected1')
Spry.Utils.removeClassName('test2','selected1')
make a new class called select1 (or whatever)
This works great without allot of code if compared to some
other solutions I have seen. Also works with onMouseover including
colour effects. -
Highlighting Current Page with CSS
This morning I post my first Dreamweaver/CSS site. It is for
a DVD I produced about infant massage. www.BabyBabyOhBaby.com.
What I'd like to do is highlight the current page in the
navigation bar using either a border or color change. I've found
some sites like
http://www.hicksdesign.co.uk/journal/highlighting-current-page-with-css
but, sorry to say, I'm a beginner at both Dreamweaver & CSS and
I can't quite follow the code.
Is there some way within Dreamweaver to accomplish the
highlighting in design view without writing the code? Or perhaps
someone has some very basic elementary CSS guidance?
Thanks for your time,
DavidOh, yeah. 8)
Get that....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"E Michael Brandt" <[email protected]> wrote
in message
news:[email protected]...
> <informative but also self-serving>
>
> Really we have made this much much easier. divaGPS
creates you-are-here"
> menu highlighting and is easy to add to any number of
pages at once - even
> Templates' Child pages. It is a commercial DW Extension
that will save
> you lots of time and effort.
>
>
http://divahtml.com/products/divaGPS/current_menu_location.php
>
> <informative but also self-serving />
>
> --
>
> E. Michael Brandt
>
> www.divaHTML.com
> divaGPS : you-are-here menu highlighting
> divaFAQ : FAQ pages with pizazz
>
> www.valleywebdesigns.com
> JustSo PictureWindow
> JustSo PhotoAlbum
>
> --
>
>
> Murray *ACE* wrote:
>> You need to know the downside to using layers as a
primary layout
>> device - open your page in Firefox (or any non-IE
browser) and bump the
>> text size up a tick or two. Ugh....
>>
>> Here's your navbar -
>>
>> <div id="navbar"><a
href="index.html">Home</a> | <a
>> href="about_dvd.html"> the DVD</a> | <a
href="preview.html">Preview</a> |
>> <a href="reviews.html">Reviews</a> |
<a href="infant_massge.html">Infant
>> Massage</a> | <a
href="contact_us.html">Contact Us</a> | <a
>>
href="shopping.html">Shopping</a></div>
>>
>> Change it to this -
>>
>> <div id="navbar"><a href="index.html"
id="button1">Home</a> | <a
>> href="about_dvd.html" id="button2"> the
DVD</a> | <a href="preview.html"
>> id="button3">Preview</a> | <a
href="reviews.html"
>> id="button4">Reviews</a> | <a
href="infant_massge.html"
>> id="button5">Infant Massage</a> | <a
href="contact_us.html"
>> id="button6">Contact Us</a> | <a
href="shopping.html"
>> id="button7">Shopping</a></div>
>>
>> Then on each page, embed a little stylesheet in the
head by changing
>> this -
>>
>> </head>
>>
>> to this -
>>
>> <style type="text/css">
>> a#buttonX { your highlight styles }
>> </style>
>>
>> and just change the "X" to whatever number button
you want to highlight.
>>
>> You can do this in Design view, but it's too
tedious.
>> -
Formatting Spry Menu to keep current page highlighted?
Hi,
I have O'Reilly's missing manual for CS5, but I can't find instructions for how to keep the menu bar highlighted so that the user always sees the specific page they are on within the menu. If someone selects the 'About' page, I would like the About text/tab to stay highlighted (in the hover style), so the user always knows the page they are on (without adding a breadcrumb or separate page header).
Can anyone point me to the instructions. Is there a specific sub-selector within the spry css or is there separate html code I need to add to the page html or the spry menu js?
Thanks,
WendyJust follow the instructions here http://labs.adobe.com/technologies/spry/articles/updater_help/
If you want a quick solution
make a new (empty) file in the SpryAssets folder named SpryDOMUtils.js
click here http://labs.adobe.com/technologies/spry/includes/SpryDOMUtils.js
copy the code that you see in in step 2 (on the page, right click and select all from the pop-up)
open your newly created SpryDOMUtils.js file and paste the contents in there (right click and choose paste)
And you have a working copy. Don't forget to upload the file to the remote server, otherwise your online version will not work.
Happy Sprying.
Ben
PS NEVER GIVE UP! There is always a solution. -
No CSS properties apply to the current selection
I have a style sheet in my root directory. It is showing as being connected to my html page. It is written in with <link href="_css/main.css" rel="stylesheet" type="text/css /">.
In my Manage Sites section it is shown in "Advanced Settings" > "Local info" > "Site-wide Media Query file"
Despite all that when I click on any element in the Design view with either my CSS "Current" or "All" selected it keeps showing the error "No CSS properties apply to the current selection"
I have studied other sites of mine line by line where it works and compared it to this one and cannot see anything missing.
So I really would appreciate being pointed in the right direction.
Thanks
keith47I don't know as I apply all css manually BUT you have a / after css in the link to the stylesheet you provided below (if its not a typo) which may be causing the issue:
<link href="_css/main.css" rel="stylesheet" type="text/css /"> -
Need Adds on to highlight or select several(next) pages in search result on current page?
Do you mean this: you would select a bunch of links with your mouse, then right-click and choose something like "open all these links in new tabs"?
There are extensions like that. Here are a few examples, but since I don't use them myself, I don't recommend any particular one. You can check the reviews and try the one(s) that sounds good to you:
* [https://addons.mozilla.org/en-us/firefox/addon/multi-links/ Multi Links]
* [https://addons.mozilla.org/en-us/firefox/addon/selection-links/ Selection Links]
* [https://addons.mozilla.org/en-us/firefox/addon/SnapLinksPlus/ Snap Links Plus]
If you already have one of those but it stopped working, make sure you have the latest version. You can check for updates to your extensions here:
orange Firefox button (or Tools menu) > Add-ons > "gear" button > "Check for Updates"
Any luck? -
Query to get objects list for which the current user has 'SELECT' privilege
Hi,
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
From these findings, I have composed below query
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
Have I got user's all prvilege details? should I look some other system views?
How to exclude system table privileges details?
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
What about Public role in Oracle? Should I consider public role here?
Oracel Version :11g
I want make this query to work on Oracle 8i or above version
Thanks>
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
>
You will need a hierarchical query to do that.
Try this script for Listing privileges recursively for Oracle users
http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html -
Which menu item has been selected?
At runtime when a user selects a menu item in the portal that leads them into a Web Dynpro ABAP Application, I need to know which menu item they have selected. We have 2 menu items that use the same web dynpro ABAP application and need to know which one has been selected by the user. Can anyone help with this please?
thanks,
Malcolm.Malcolm Clark wrote:
At runtime when a user selects a menu item in the portal.......We have 2 menu items that use the same web dynpro ABAP
Are you talking about portal navigation nodes or something else?
Maybe you are looking for
-
Songs not showing up in Artists section
A few artists of mine will not show up in the Artists section of the iPod, but their albums will show up in the Albums section. When I play the album, the artist is displayed correctly on the Now Playing screen. How can I correct this so that the son
-
Data copy from infocube to infocube in two different BW systems
Dear All, If i have a scenario like i have an infocube for sales in two different bw systems, and if i want to send the data from one infocube to another infocube what would be the strategy we have to follow. Is it that i need to send it as a flat fi
-
Installing different versions of RoboHelp
Hi, For some reason, I have to work with 9.2 and X5 at the same time. Is it possible to install two different versions on the same Windows system? If there is any way to use those versions on the same system, please let me know... Regards,
-
Forward/Backward Button Scripting
I'm trying to script a forward button and a backward button. I want it to go forward one frame when clicked, and the backward button to g backward one frame when clicked. Nothing I type is working. Can someone help me, please?
-
How to install Printer in network
Hi Currently i am using VPN Connection and working on Client server but i want to take printout on my local printer.As i am not in my network how do i take printout in my network.Please tell me what re the settings required .