How can I show an active page on menu?

I am working in DW CS3 and using a Spry menu and want to be able to show the active page on the menu. Have looked at previous discussions but am still very confused. New to DW and not very code editing proficient. Please help.

Place the following in the HEAD section of your document
<script src="SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
function InitPage(){
Spry.$$('#MenuBar1 li').forEach(function(node){
     var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
     if(a.href == window.location){
          Spry.Utils.addClassName(node,"activeMenuItem");
Spry.Utils.addLoadListener(InitPage);
</script>
<style type="text/css">
.activeMenuItem {
     background: #F00;
     font-weight: bold;
</style>
and make sure that SpryDOMUtils.js is in your SpryAssets folder.
Ben

Similar Messages

  • How can I render an active link (yrl) within a UIX/XML page

    How can I render an active link (url) within a UIX/XML page.
    How can I get <jbo:ShowValue> to work in UIX/XML, or is there another way?
    Bill G...

    It may seem strange, but the <contents> of <rawText> aren't actually
    raw - it's only the "text" attribute that's raw. (It seems strange because
    it is. Ah well.) This is different from UIX JSP.
    So, try something like the following:
    <bc4j:attrScope name="Notes">
    <contents>
    <rawText text="&lt;a href=&quot;"/>
    <rawText>
    <boundAttribute name="text">
    <bc4j:attrProperty name="value"/>
    </boundAttribute>
    </rawText text="&quot;&gt;"/>
    Some text in the link.
    <rawText text="&lt;/a&gt;"/>
    </contents>
    <bc4j:attrScope>
    Thankfully, this will be much simpler in 9.0.3, when the following
    will work:
    <link text="Whatever you want">
    <boundAttribute name="destination">
    <bc4j:attrValue name="Notes"/>
    </boundAttribute>
    </link>

  • How can i print just one page of photo book without printing the entire book

    how can i print just one page of photo book without printing the entire book

    Jim,
    Take heart.  We can help.
    First turn on page view so you can see how the content of your sheet fits on the page(s).  A Numbers document contains sheets (listed on the left) which in turn contain tables, charts, text, and graphics.  Select the sheet you want to print on the left, then enable page view by selecting the menu item:
    "View > Show Print View":
    Now you should see your content and how it fits on one, or more, pages.  If thie content is too big for one page use the controls and the bottom left of the window to expose the sheet controls:
    Here a table is too big to fit on one page:
    slide the "Content Scale" slider so the content fits:

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How can I copy a legal pager on laser jet 1217 mfw on my mac?

    how can I copy a legal pager on laser jet 1217 mfw on my mac?

    Hello Tomr31, and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are looking into legal size options.  I would love to try and help you, but I do need a little information first. I am linking a few HP Support documents below that will show you how to find which version of the Mac operating system you are using.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Also, are you trying to make a legal size standalone copy, or are you trying to scan a legal size page on to your Mac?
    Please let me know.  Thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • How can I view a recto page on the right?

    This used to be automatic in old versions of Acrobat. Now that I am using Acrobat X I cannot get the view I want.  In a 2-page view, how can I view a recto page on the right and a verso page on the left? Now all I get is a recto on the left and a verso on the right! Is there a setting to view, say, a book? or some other way to get the first page to be alone on the right and the rest to be a 2-page view with pages side by side correctly?

    View > Page Display > Show Cover Page During 2-Up

  • How can i show a raise message?

    Hi...
    I am use JDev 11.1.2.0.0
    How can i show a raise message for the user for validations issues
    and after his message the user can't do any thing.
    thanks...

    HI ,
    You can use your entity level validations for this .For this go to your entity object then select the required attribute ,now at the bottom of the page validation rules for that attribute is given just click on that ,now you can select the validation that you want and give error handling msg also.
    If you want that user cannot move further without filling that field then you can mark that fields as compulsory by selecting true value at its required field in property inspector.

  • How can I show Totals in at the footer?

    Hi,
    I want to create a List (Report) with a Number column say (Amount), and there are certain number of transactions on the page. How can I show Total Amount at the bottom of report?
    Thnx in advance.

    BalusC, thnx for ur help. This means there is no other way that v we can add some number columns using jsp. In anyways we will have to populate totals using backing beans.
    Thank u very much :)

  • How can I see which specific page number I'm on in a Pages document?

    How can I see which specific page number I'm on in a Pages document? Thanks.

    Hi and thanks. Pages is V 5.0.1. And I've got OSX 10.9.1.
    I just tried what you suggested and while it works I'm looking for something like what a Word doc shows, where at the bottom of the screen you see - Pages: 1 of 37 (it's to the left of where a Word doc shows - Words: 7 of 9024).
    I recently switched to Pages and want to start using it all the time and get rid of Word.

  • Pls advise on how can i set my default page

    may i know how can i set my default page if i m using Apache as my web server n tomcat as my servlet container. thank u in advance

    hi....i tried but cannot.
    even when i jus change the "DirectoryIndex Index.html" to "DirectoryIndex abc.html it still gives me the page which shows the file in my directory of htdocs.
    i guess if someone can advise me on how to change away this page first....
    thank u

  • How can i show a value into a MessageStyledText

    Dear all,
    Suppose i have a value in a variable i.e. number=10;
    how can i show this value into a MessageStyleText when page loads.
    please suggest.

    Gyan wrote:
    Mofizur,
    Get the value from the variable & Use the below code in PR.
    OAMessageStyledTextBean processCodeBean = (OAMessageStyledTextBean)webBean.findChildRecursive("<Replace with Bean Id>");
    if(processCodeBean!=null)
    processCodeBean.setText(pageContext,null);
    }Regards,
    GyanString employeeNumber = "10";
    processCodeBean.setText(pageContext,employeeNumber);
    OR
    processCodeBean.setValue(pageContext,employeeNumber);
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Every time I start Firefox, the upgrade/signup page is displayed in one tabe while google, my start;up page s displayed in another. How can I stop the firefox page from loading every time?

    Every time I start Firefox, the upgrade/signup page is displayed in one tab while google, my start-up page is displayed in another. How can I stop the firefox page from loading every time?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • HT202879 How can I double underline in Pages 5?

    Hi,
    How can I double underline in Pages 5? I can see the options for strikethrough, underline etc but not double underline.

    Menu > Format > Fonts > Show Fonts.

  • How can we show data in rows when it is in Columns........

    I have strucked with a simple but a complex problem.
    I have a Report with data in vertical rows..need of the hour is how can we show that data into column structure.
    here is the table sample which i have in Database..
    Location      chrg_type    Effective_date
    xxxxxxx        xxxx          xx-xx
    thhis is the structure in effective date we have several months in it in a single column i want show the effective date or effective month in various columns instead of a single column.
    my required table is....
                                Effective_date     Effective_date
    Location      chrg_type     xx-xx              xx-xx
    xxxxxxx        xxxx          xx-xx
    any tough heads?????

    Hi Sunil,
    Your 1st problem is that you are going to need one more field to accomplish you goal. What type of data do want under your new date columns?
    Anyway, once you have that you need to move on to how to move the data out into columns based on date.
    Try something like this.
    0_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',CurrentDate) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',CurrentDate)
    THEN {tbl.DataField}
    1_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -1, CurrentDate)) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -1, CurrentDate))
    THEN {tbl.DataField}
    2_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -2, CurrentDate)) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -2, CurrentDate))
    THEN {tbl.DataField}
    ... Repeat this process until you have all of the columns you need, following this format.
    Hope this works for you,
    Jason

  • How can I view as "single page continuous" in full screen mode?

    how can I view as "single page continuous" in full screen mode?
    preferences->page display:
    preference->accessbility:

    Not possible.

Maybe you are looking for