How to make the current page menu item displayed in a different font color?
Hello
My menu bar works very well. The links I get the text to hover display the desired color. Now I want the item menu of the selected page show a third color.
With live-code activated in Dreamweaver CS6, I can see the following code is generated by the dynamic menu:
"< script type =" text/javascript"src="/CatalystScripts/Java_DynMenusSelectedCSS.js "> < / script > <!-dynamic output CSS menu start-> < div id ="cat_549633_divs"> < ul id ="nav_549633">< class li ="selected"> < a href =" / home.html "> home < /a > < /li >< li > < a href =" "/ leistungen.html" > Services < /a > < /li > < li > < a href = "/ uhrenservice.html" > Uhrenservice < /a > < /li " "> < li > < a href =" / versteigerungen.html "> Versteigerungen < /a > < /li > < li > < a href =" / diamanten.html "> Diamanten < /a > < /li > < li > < a href =" / ueber_uns.html "" > Uber each < /a > < /li > < li > < a href = "/ kontakt.html" > Kontakt < /a > < /li > < /ul > < / div > < script type = "text/javascript" > catSetSelectedCSSItem ('nav_549633'); < /script > <! - end of output CSS Dynamic Menu - >
The .selected class is created in the first element of the list (home) because it is the current page.
And here is my CSS:
{#nav_549633}
float: right;
list-style-type: none;
padding-top: 5px;
}
#nav_549633 li {}
float: left;
text-align: left;
}
#nav_549633 li a {}
color: white;
text-decoration: none;
margin: 27px 0 0 0;
font size: 13px;
text-transform: uppercase;
}
#nav_549633 Li a: hover {}
color: yellow;
}
{.selected
color: Green;
}
The green font color does not appear. It is still white.
In order to see if the class 'works"I tried a few other attributes that work!
{.selected
color: Green;
padding: 20px
background-color: blue;
}
In this case, the item appears as a blue box with 20px padding, just as expected - but the font color is always white.
Can someone help me?
Kind regards
Herman
Hello Ginoem50,
Looking at your css looks like the selected class does not work because the li #nav_549633 one is more specific is the one who is listened to.
change .selected li.selected a #nav_549633 and it should work.
Hope this helps,
Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7
Tags: Business Catalyst
Similar Questions
-
How to make the master page appear when I'm scrolling down?
How to make the master page appear when I'm scrolling down?
This is something I don't like Muse! Whatever it is in the master page will act as a background. You must place it right on the top layer of the Page you want on... I hope this works for you as it did for me!
-
How to detect the current page
How can I undergo certain cfif conditions to detect the current page?
< cfif? Page1.cfm IS > abc
< cfelseif? Page2.cfm IS > def
< cfelseif? Page3.cfm IS > IAD
< cfelse > jkl
< / cfif >Use the cgi variables...
Try usingto see who is available.
GL, Mike -
Hey everyone, quick question...
I am trying to run this script:
say application "System events".
say process of "iTunes."
click on menu item "Start Station" from the menu 'Song' to menu bar item 'Song' in the menu bar 1
end say
end say
The idea behind this is to start a song selected currently playing station. I know, it's not hard to do it manually, but I want to be able to do it without having to call the iTunes app to the front. Now, this script works for my own iTunes app, but I have a second instance of iTunes connecting the second user on my computer at home (User2), with its own separate library and account and all. script I have works fine for an instance of iTunes under my user account, but I can't figure out how to specify which instance of iTunes, I'd like the script to work on.
I want to emphasize as an FYI that i use.
the shell script "connection f User2 /Applications/iTunes.app/Contents/MacOS/iTunes > & - 2 > & - &" with administrator privileges
-to open my second instance of iTunes as User2
is there a way to change the "process"iTunes"to say" something like 'process 'unix ID' say' and have the ID for each respective instance of iTunes unix?
Let me know if I do not make sense... Thanks in advance to anyone who can help
You can target a process of application using various properties of system events, for example:
tell application "System Events" tell first item of (get application processes whose unix id is 15174) -- or whatever id activate --> needed when using GUI scripting get properties end tell end tell
-
How to make the first page my homepage, Privacy page not Firefoxe
Prior to version Firefox 29 brought to the top of my home page - the only one. Now, no matter what I said to be on the 'privacy' page Firefox home page is loaded first with my homepage as a secondary (and not shown) page.
Loading the page confidentiality loses time CPU and is aggravating. How can I disable this key, the default page?This can result in problems with the files that store the preferences and possibly other files as the file compatibility.ini.
You can have security software that protects certain files from changes.Delete a possible user.js file and files numbered prefs-# .js and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.
You can use this button to go to the Firefox profile folder currently in use:
- Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)
- http://KB.mozillazine.org/Profile_folder_-_Firefox
-
How to run the "Research &; Editor" Menu item in the java script, VBA
Hello
I am currently trying to access the method to control adobe acrobat (research and editorial) menu items via script using "MenuItemExecute.
I can call/display menu simple by using the following command:
Dim acroAppObj As Acrobat.AcroApp
Set acroAppObj = CreateObject ("AcroExch.App")
acroAppObj.MenuItemExecute ("ShowHideToolbarRedaction")
Now my concern is to actively control the search method. I was able to get the information about the available menu names and function:
[cName:RedactionToolsItem, oChildren:] [ [cName:Annots:Tool:RedactMenuItem], [cName:Annots:Tool:MarkPageRangeMenuItem], [cName:Annots:Tool:ApplyRedactionsMenuItem], [cName:Annots:Tool:RedactToolPropsMenuItem], [cName:Annots:Tool:SearchRedactMenuItem], [cName:RedactionSeparator], [cName:RedactionMainToolBar] ] But I must admit that I can't find the syntax/argument to call "SearchRedactMenuItem".
Any help?
You say that you could "get info". Is that mean that you try to do it without using the Acrobat SDK documentation?
-
How to make the CURRENT TAB or NO CURRENTS dynamically according to REQUIREMENT
Hello
I have following 2 tabs
TAB 1
TAB 2
for these two tabs... the page is Page 1
so when the control is on the Page 1... by default the two tabs a... TAB 1 & 2 of the TAB are current...
I want to... based on some condition... only a tab should be updated...
so... for Condition 1 Page 1... Tab1 should be CURRENT (TAB2 should be NON - CURRENT)
.. .to condition 2 on Page 1... Tab2 should be CURRENT (TAB1 should be NON - CURRENT)
Can do us it dynamically?
Thank you
DeepakHello
Yes, you can create a copy of the page in issue 3 of the page and have this one to create only on records. Page 3 should have its own tab and page 2 (Edit page) uses the same tab that the report page. Thus, the user can never go directly to the edit page (they should go to the report page) but they can go directly to the registration page.
Andy
-
How to make the next page come from the left side, not the right as in English books?
in Arabic language that we read from left right as well, for example the first page of an Arabic book is the same one last in an English book. It's very boring to read an Arabic book and return the page to the reverse of the normal Arabic texts... Means
There is nothing you can do to solve this problem. Complain to the Publisher of the book and also to inform Apple via
-
How to make the current value by default to all controls both
Choose 'Data Operation'-> 'Do current Default value' to several controls requires a lot of clicking. Is it possible to do so with a single click?
Yes. If you select no control, he says 'Do the current default values' and it does all the controls at the same time. If you have a control is selected, then it does so only the selected controls.
Reset the current values default works in the same way. Do not select anything, he does all the controls at the same time.
Bob Schor
-
How to make the first page next page element value
Hi all
I have two pages namely a contact page and another page to enter the connection details
The first "CONTACT" page contains the name and other details and e-mail, in the second page, I have a page named login element and I need to provide the email address that I have provided in the first page.
I tried giving in the connection point as & P1_EMAIL source and I didn't clear any cache, but I don't have the email address.
Thanks and greetings
Srikkanth.MHello
Page element
Type of source: Element (name of the application or page element)
Source of value or an expression: P1_EMAILKind regards
Patel Kartik
------------------------------------------------------------------------
http://patelkartik.blogspot.com/
http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1 -
How to make the field as a table display only?
A form on a table, I can do the display as field: "view only".
In a tabular presentation, it doesn't seem to be the option "View only" view. In tabular form attributes, I set a default value, and I have no users to edit this field. So, how can we make the field only do "display"?
V4.1You can change the definition of the column and change the Display as in "Display text (saved state)" attribute whose value will be the column will be saved with the other columns and the default way.
Thank you
-Jorge -
How to refresh the current page after the return of a contextual dialog box?
Hello
In jdev 11.2.3,
In a jsff page, I have a commandbutton control to start a dialog popup and actionListener like this:
< af:commandButton text = "Select Bills" id = "cb1" actionListener = "#{newReceiptBean.refreshBillPending}" >
< af:showPopupBehavior popupId = "p1" / >
< / af:commandButton >
or
< af:commandButton text = "Select Bills" id = "cb1" actionListener = "#{newReceiptBean.refreshBillPending} '"
action = "#{newReceiptBean.refreshBillPending}" >
< af:showPopupBehavior popupId = "p1" / >
But the 'newReceiptBean.refreshBillPending' method can be run even if it can be executed by another button like this:
< af:commandButton text = "ExecuteWithParams."
Disabled = "#{!}" bindings. ExecuteWithParams.enabled}"id ="cb3 ".
action = "#{newReceiptBean.refreshBillPending}" / >
How to run a bean method, after the return of a pupup dialog box?
Thank you!
Post edited by: BAO. SZ It seems after setting showPopupBehvior for the button, 'action', and "actionListener" cannot be performed more. Can someone give any help? Thank you.
I'm not sure that clearly understand your requirment. But have you all ok or cancel button in your popup?
Well, you can use diaglogListener in your popup if you use dialog.in your dialoglistener runs your bean method.
see this example
-
So basically I end up with two tabs that do nothing.
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).
- Makes no changes on the start safe mode window.
See:
- Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox
- Solve problems with plugins like Flash or Java to solve the common problems of Firefox
If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.
- Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
- Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
-
How to make the current façade, as values of standard values (in an exe file)?
There are a few posts about this, but I couldn't find a satisfactory solution to this.
Just an example of what I'm looking for a solution: the fronpanel includes a digital input element. I start the VI, change the value of the element of digital input to another value, then stop the VI. The next time I start the VI I want the digital element to the value it had when the VI has been stopped. Preferably, I want the value of the digital item be set up as 'standard-value' when I press a button (see the attached example).
Thank you.
I've set up a very basic example, which should give you the idea. Find that he attached (this Subvi only works with double rooms).
Of course, toolboxes referred to by Sam_Sharp are solutions much more 'pro' with a lot more options...
Kind regards!
-
How to make the current version of the web logical server in obiee 11g
Hey
I am fairly new to 11g Weblogic
How can I get the latest version of the logical web server in obiee 11g (11.1.1.5), I know it should be higher than 10.3.5.
Thank youHello
Obiee11.1.1.5.0/6.0 the two version supporting weblogic 10.3.5.0/6.0 both are no problem.
http://blog.whitehorses.nl/2012/02/26/a-few-quick-tips-for-upgrading-OFM-11g-to-patch-set-5/
See also
http://docs.Oracle.com/CD/E23943_01/bi.1111/e16452/bi_plan.htm#BABECJJH
Thank you
Deva
Maybe you are looking for
-
My iMac was delivered on 10 May 2007, serial number W8 * VUW with Safari 5.1.10 that seems to no longer work with Youtube, or I feel, iTunes. Need an update of Safari for Safari 6? < personal information under the direction of the host >
-
Does anyone know how to get Safari sidebar icons to color? My mac has lost this ability when I upgraded to El Capitan. Thank you.
-
What slot PCI should I use to install the Wireless PCI card
I have a Compaq Presario CQ5210F desk top. I add a Sabrent PCI-G802-PCI-54Mbs, 802.11 wireless card g. I've read all the how info pages and am like that. The unit has 1 PCI Express x 16 & 2 PCI Express x 1 slots. Which slot is OK for this device and
-
Display problem laptop computer connecting to the TV via HDMI
I have a Satellite L500 - 19 X and when I connect the laptop to my Sony's Bravia TV, the screen is constantly restless. I tried to change the refresh rate, but that did not help. The HDMI cable should not be the problem, because it works very well wi
-
How to identify the hardware CAN connected to the PC
Hello Is it possible to identify the devices CAN to your PC via the USB port, I am able to see the name of material CAN logged in the Device Manager list. Even I want to read using LabVIEW. Regars Visuman