Java script menu

Can anyone here help me with a Java Script Menu? It is a Vertical Drop Down
Many thanks

Try this:
http://jsfiddle.net/NancyO/zN7fU/
Reponsive Menu for Touch Screen Devices:
http://www.meanthemes.com/plugins/meanmenu/
Nancy O.

Similar Messages

  • Java script menu flows below swf in IE

    Hello all
    I've added a java script bottom slide out info bar to my site. Using WMODE to transparent and both opaque on the swf. That worked for chrome, firefox, safari, but not IE
    I'n IE the menu opens down as aposed to up and the button is in the wrong placement.
    http://www.couvrette-photography.on.ca/ottawa_wedding_photographer/
    any ideas?

    Server error.  Can't see your page.
    Older Spry code pre-dates IE9.  Also, it may interest you to know that Adobe has disontinued working with the Spry framework. 
    http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
    Now might be a good opportunity for you to switch to a better menu system.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery Mega Menus  http://www.javascriptkit.com/script/script2/jkmegamenu.shtml
    CSS3 Dropdown Menus
    http://www.red-team-design.com/css3-dropdown-menu
    10 Responsive Menus
    http://speckyboy.com/2012/08/29/10-responsive-navigation-solutions-and-tutorials/
    Pop-Menu  Magic2 by PVII (DW extension purchase)
    http://www.projectseven.com/products/menusystems/pmm2/index.htm
    Nancy O.

  • Java script for menu

    Hello,
    As I know, we can use Java script to create client side menu. So user can browser through the menu tree to select the page they want.
    My question is, Can we add more functionnality to this menu tree, so the menu can be anything but URL? ( For example, user browser the menu tree, click a link(or a button?) and call some function(which also writon in Java script) on the client side to perform some action other than call a linked page)
    Thanks
    Hui lu

    Hi,
    You can try like this:
    //in the <head> section write:
    <script language="javascript">
    function callFunc(){
    //some code of yours
    </script>
    //On the menu item write this code:
    <a href = 'javascript:callFunc();'>
    Hope this will serve.
    atanu

  • How to add java script option in firefox as this is not available in the menu of tools menu and content of firefox

    Dear sir,
    I am regular computer user and firefox is my default web browser. But it is seen that my web browser is not having the option of enable java scripts as I am learning web page designing. Could you please tell me how to add this option in my web browser on mozila as I am interested to work mozila all the time. I can add this by using internet but that is not always easy and also not sure when this option is enable or disable. Please guide me resolving my problem.
    Regards,
    Mohammad Hossain

    You can no longer do that via the user interface, but you need to check the related pref on the <b>about:config</b> page.
    The <b>javascript.enabled</b> pref should be true on the <b>about:config</b> page to enable JavaScript.
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    See also:
    *QuickJava: https://addons.mozilla.org/firefox/addon/quickjava/

  • Any one know how to delete unresponsive java scripts in menu bar

    I have unresponsive java scripts that i can not force quit. i went to finder and deleted it from the source i believe but the script is still unresponsive please help

    If you want to just add an image to a JPanel, create a JLabel and add the image to that, then add the JLabel to the JPanel. If you want it to be the background of the JPanel, check this out:
    http://manning.com/sbe/files/uts2/Chapter15html/Chapter15.htm
    15.2 is where you'll find your answer along with sample code. The whole book is useful, take a look through it if you're interested.

  • I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed

    I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed edit
    Details

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • How to resolve Java Script Error Message when visiting Twitter Website?

    When using firefox the following error message appears on the Twitter website regarding Java Script that is already enabled in firefox. It only happens in firefox when I visit the Twitter Website, it doesn't happen on any other website and it does not happen in Internet Explorer when I visit Twitter's website.
    '''Error Message:
    Twitter.com makes heavy use of JavaScript.
    If you cannot enable it in your browser's preferences, you may have a better experience on our mobile site.'''

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    2. If needed, delete your twitter.com cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help? If you restart Firefox does it help? If not, please see the next section.
    If you have JavaScript enabled in Firefox's options ([https://support.mozilla.org/en-US/kb/javascript-settings-for-interactive-web-pages#w_enabling-and-disabling-javascript support article]) then there are a few different ways that JavaScript could be blocked for twitter.com.
    One common one is the add-on NoScript, which manages scripts on a site-by-site basis. However, you probably would be well aware if you were using NoScript.
    Another is external security software that filters pages on a site-by-site basis. Can you check whether your security software includes this feature?
    A third possibility is another add-on which for some reason is targeting Twitter. Check any ad blockers, Flash blockers or other "blockers" as well as any relating to privacy.
    Finally, there could be other settings, software, or even malware interfering with your Twitter connection.
    One standard diagnostic for interference by add-ons is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    If the site works correctly, this points to one of your add-ons or custom settings as the problem.
    Any change?

  • Error message in java script using IE6

    I get the following error message on a web page java script with Internet Explorer 6 "C:\WINNT\Desktop\Error Report.htm."
    The java script works fine with IE 5, but not with IE6. Any ideas why or how to fix?
    Thank you,
    Alicia

    There are three scripts, here they are:
    1. Scripts.js
    NS4 = (document.layers);
    IE4 = (document.all);
    ver4 = (NS4 || IE4);
    IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
    isMac = (navigator.appVersion.indexOf("Mac") != -1);
    isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));
    function popUp(){return};
    function popDown(){return};
    if (!ver4) event = null;
    if (isMenu) {
    menuVersion = 3;
    menuWidth = 120;
    childOverlap = 5;
    childOffset = 0;
    perCentOver = null;
    secondsVisible = .2;
    fntCol = "#ffffff";
    fntSiz = "11";
    fntBold = false;
    fntItal = false;
    fntFam = "times new roman, times, serif";
    backCol = "#303886";
    overCol = "#91B3EE";
    overFnt = "#000000";
    borWid = 0;
    borCol = "#ffffff";
    borSty = "solid";
    itemPad = 5;
    imgSrc = "";
    imgSiz = 0;
    separator = 1;
    separatorCol = "#ffffff";
    isFrames = false; // <-- IMPORTANT for full window
    navFrLoc = "left"; // <-- display. see below
    keepHilite = true;
    clickStart = false;
    clickKill = false;
    function swapimg( imgid, newimg ) {
    imgid.src = newimg.src;
    if( document.images ) {
    about_on = new Image();
    about_on.src = "./images/about_on.jpg";
    about_off = new Image();
    about_off.src = "./images/about_off.jpg";
    practice_on = new Image();
    practice_on.src = "./images/practice_on.jpg";
    practice_off = new Image();
    practice_off.src = "./images/practice_off.jpg";
    lawyer_on = new Image();
    lawyer_on.src = "./images/lawyer_on.jpg";
    lawyer_off = new Image();
    lawyer_off.src = "./images/lawyer_off.jpg";
    career_on = new Image();
    career_on.src = "./images/career_on.jpg";
    career_off = new Image();
    career_off.src = "./images/career_off.jpg";
    resources_on = new Image();
    resources_on.src = "./images/resources_on.jpg";
    resources_off = new Image();
    resources_off.src = "./images/resources_off.jpg";
    contact_on = new Image();
    contact_on.src = "./images/contact_on.jpg";
    contact_off = new Image();
    contact_off.src = "./images/contact_off.jpg";
    2. hierArrays.js
    arMenu1 = new Array(
    130,
    199,247,
    "Overview","./about/overview.html",0,
    "Pro Bono Activities","./about/probono.html",0
    arMenu2 = new Array(
    190,
    199,287,
    "Commercial Finance","./practice/finance.html",0,
    "Corporate and Securities","./practice/corporate.html",0,
    "Insolvency","./practice/bankruptcy.html",0,
    "Land Use, Local Government and Environmental Law","./practice/land.html",0,
    "Litigation","./practice/litigation.html",0,
    "Real Estate","./practice/realestate.html",0,
    "Tax and Estate Planning","./practice/tax.html",0
    arMenu3 = new Array(
    120,
    199,327,
    "Partners","./lawyers/partners/index.html",0,
    "Associates","./lawyers/associates/index.html",0,
    "Of Counsel","./lawyers/counsel/index.html",0,
    "By Practice Area","./lawyers/practice.html",0,
    "Full Listing","./lawyers/full.html",0
    arMenu4 = new Array(
    135,
    199,447,
    "Contact Information","./contact/info.html",0,
    "Driving Directions","./contact/directions.html",0
    arMenu5 = new Array(
    180,
    199,365,
    "Summer Associate Program","./career/sumassoc.html",0
    3. hierMenus.js
    /*hierMenus.js
    * by Peter Belesis. v3.10.2 000720
    * Copyright (c) 2000 internet.com Corp. All Rights Reserved.
    * Originally published and documented at http://www.dhtmlab.com/
    * You may use this code on a public Web site only if this entire
    * copyright notice appears unchanged and you publicly display
    * on the Web page a link to http://www.dhtmlab.com/.
    * Contact [email protected] for all other uses.
    loader = (isFrames) ? (NS4) ? parent : parent.document.body : window;
    loader.onload = startIt;
    if(NS4){
         origWidth = loader.innerWidth;
         origHeight = loader.innerHeight;
         loader.onresize = reDo;
    isLoaded = false;
    NSresized = false;
    if (!window.menuVersion) {
         clickKill = keepHilite = clickStart = false;
    if (!window.imgHspace) imgHspace=0;
    isWin = (navigator.appVersion.indexOf("Win") != -1)
    mSecsVis = secondsVisible*1000;
    isRight = (window.navFrLoc && navFrLoc == "right");
    fullImgSize = (imgSiz+(imgHspace*2));
    if(!IE5) {
         imgSuf = (isRight) ? ">" : " ALIGN=RIGHT>";
         imgStr = "<IMG SRC='" + imgSrc + "' WIDTH=" + imgSiz + " HEIGHT=" + imgSiz +" VSPACE=2 HSPACE="+ imgHspace +" BORDER=0"+ imgSuf;
         if(IE4) imgStr = "<SPAN STYLE='height:100%;width:"+ (fullImgSize-(isRight?3:0)) +";float:"+ (isRight?"left":"right") +";overflow:hidden'>"+ imgStr +"</SPAN>";
    areCreated = false;
    menuLoc = null;
    function initVars() {
         if(areCreated) {
              for(i=1; i<topCount; i++) {
                   cur = eval("elMenu"+i);
                   clearTimeout(cur.hideTimer);
                   cur.hideTimer=null;
              clearTimeout(allTimer);
         topCount = 1;
         areCreated = false;
         beingCreated = false;
         isOverMenu = false;
         currentMenu = null;
         allTimer = null;
    initVars();
    function NSunloaded(){
         isLoaded = false;
    function NSloaded(e){
         if (e.target.name == mainFrName) {
              initVars();
              startIt();
    function IEunloaded() {
         initVars();
         isLoaded = false;
         setTimeout("keepTrack()",50)
    function keepTrack() {
         if (menuLoc.document.readyState == "complete") {
              initVars();
              startIt();
         else {
              setTimeout("keepTrack()",50);
    function startIt() {
         isLoaded = true;
         if (isFrames) {
              menuLoc = eval("parent.frames." + mainFrName);
              if (NS4) {
                   loader.captureEvents(Event.LOAD);
                   loader.onload = NSloaded;
                   menuLoc.onunload = NSunloaded;
              if (IE4) {
                   menuLoc.document.body.onunload = IEunloaded;
         else {
              menuLoc = window;
         menuLoc.nav = nav = window;
         if (clickKill) {
              if (NS4) menuLoc.document.captureEvents(Event.MOUSEDOWN);
              menuLoc.document.onmousedown = clicked;
         makeTop();
    function makeTop(){
         beingCreated = true;
         if(IE4) {
              topZ = 0;
              for (z=0;z<menuLoc.document.all.length;z++){
                   oldEl = menuLoc.document.all(z);
                   topZ = Math.max(oldEl.style.zIndex,topZ)
         while(eval("window.arMenu" + topCount)) {
              (NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);
              topCount++
         status = (topCount-1) + " Hierarchical Menu Trees Created"
         areCreated = true;
         beingCreated = false;
    // the following line was added by Rachel Gockley ([email protected]) on 27 July 2000
    status = "";
    function makeMenuNS(isChild,menuCount,parMenu,parItem) {
         tempArray = eval("arMenu" + menuCount);
         if (!isChild) {
              tempWidth = tempArray[0] ? tempArray[0] : menuWidth;
              menu = makeElement("elMenu" + menuCount,tempWidth,null,null);
         else {
              menu = makeElement("elMenu" + menuCount,null,parMenu,null);
         menu.array = tempArray;
         menu.setMenuTree = setMenuTree;
         menu.setMenuTree(isChild,parMenu);
         while (menu.itemCount < menu.maxItems) {
              menu.itemCount++;
              status = "Creating Hierarchical Menus: " + menuCount + " / " + menu.itemCount;
              prevItem = (menu.itemCount > 1) ? menu.item : null;
              itemName = "item" + menuCount + "_" + menu.itemCount;
              menu.item = makeElement(itemName,null,null,menu);
              menu.item.prevItem = prevItem;
              menu.item.setup = itemSetup;
              menu.item.setup(menu.itemCount,menu.array);
              if (menu.item.hasMore) {
                   makeMenuNS(true,menuCount + "_" + menu.itemCount,menu,menu.item);
                   menu = menu.parentMenu;
         menu.lastItem = menu.item;
         menu.setup(isChild,parMenu,parItem);
    function findTree(men){
         foundTree = false;
         for(i=11;i<men.array.length;i+=3){
              if(men.array) {
                   foundTree = true;
                   break;
         return foundTree;
    function setMenuTree(isChild,parMenu) {
         if (!isChild) {
              this.menuWidth = this.array[0] ? this.array[0] : menuWidth;
              this.menuLeft = this.array[1];
              this.menuTop = this.array[2];
              this.menuFontColor = this.array[3] ? this.array[3] : fntCol;
              this.menuFontOver = this.array[4] ? this.array[4] : overFnt;
              this.menuBGColor = this.array[5] ? this.array[5] : backCol;
              this.menuBGOver = this.array[6] ? this.array[6] : overCol;
              this.menuBorCol = this.array[7] ? this.array[7] : borCol;
              this.menuSeparatorCol = this.array[8] ? this.array[8] : separatorCol;
              this.treeParent = this;
              this.startChild = this;
              this.isTree = findTree(this);
         else {
              this.menuWidth = parMenu.menuWidth;
              this.menuLeft = parMenu.menuLeft;
              this.menuTop = parMenu.menuTop;
              this.menuFontColor = parMenu.menuFontColor;
              this.menuFontOver = parMenu.menuFontOver;
              this.menuBGColor = parMenu.menuBGColor;
              this.menuBGOver = parMenu.menuBGOver;
              this.menuBorCol = parMenu.menuBorCol;
              this.menuSeparatorCol = parMenu.menuSeparatorCol;
              this.treeParent = parMenu.treeParent;
              this.isTree = parMenu.isTree;
         this.maxItems = (isChild) ? this.array.length/3 : (this.array.length-9)/3;
         this.hasParent = isChild;
         this.setup = menuSetup;
         this.itemCount = 0;
    function makeMenuIE(isChild,menuCount,parMenu) {
         menu = makeElement("elMenu" + menuCount);
         menu.array = eval("arMenu" + menuCount);
         menu.setMenuTree = setMenuTree;
         menu.setMenuTree(isChild,parMenu);
         menu.itemStr = "";
         while (menu.itemCount < menu.maxItems) {
              menu.itemCount++;
              status = "Creating Hierarchical Menus: " + menuCount + " / " + menu.itemCount;
              itemName = "item" + menuCount + "_" + menu.itemCount;
              arrayPointer = (isChild) ? (menu.itemCount-1)*3 :((menu.itemCount-1)*3)+9;
              dispText = menu.array[arrayPointer];
              hasMore = menu.array[arrayPointer + 2];
              if(IE5) {
                   newSpan = menuLoc.document.createElement("SPAN");
                   with(newSpan) {
                        id = itemName;
                        with(style) {
                             width = (menu.menuWidth-(borWid*2));
                             fontSize = fntSiz + "pt";
                             fontWeight = (fntBold) ? "bold" : "normal";
                             fontStyle = (fntItal) ? "italic" : "normal";
                             fontFamily = fntFam;
                             padding = itemPad;
                             borderBottomWidth = separator + "px";
                             borderBottomStyle = "solid";
                        innerHTML = dispText;
                   newBreak = menuLoc.document.createElement("BR");
                   menu.appendChild(newSpan);
                   menu.appendChild(newBreak);
                   if(hasMore) {
    //3.10.2 added next 2 statements:
                        if (isRight) newSpan.style.paddingLeft = itemPad+fullImgSize;
                        else newSpan.style.paddingRight = itemPad+fullImgSize;
                        newImage = menuLoc.document.createElement("IMAGE");
                        with(newImage){
                             src = imgSrc;
                             with(style) {
                                  position = "absolute";
                                  width = imgSiz;
                                  height = imgSiz;
                                  left = (isRight) ? itemPad : (newSpan.style.pixelWidth - itemPad - imgSiz);
                                  top = newSpan.offsetTop + itemPad + (isMac ? 0 : 2);
                        newSpan.appendChild(newImage);
              else {
                   htmStr = (hasMore) ? imgStr + dispText : dispText;
                   menu.itemStr += "<SPAN ID=" + itemName + " STYLE=\"width:" + (menu.menuWidth-(borWid*2)) + "\">" + htmStr + "</SPAN><BR>";
              if (hasMore) {
                   makeMenuIE(true,menuCount + "_" + menu.itemCount,menu);
                   menu = menu.parentMenu;
         if(!IE5) menu.innerHTML = menu.itemStr;
         itemColl = menu.children.tags("SPAN");
         for (i=0; i<itemColl.length; i++) {
              it = itemColl(i);
              it.setup = itemSetup;
              it.setup(i+1,menu.array);
         menu.lastItem = itemColl(itemColl.length-1);
         menu.setup(isChild,parMenu);
    function makeElement(whichEl,whichWidth,whichParent,whichContainer) {
         if (NS4) {
              if (whichWidth) {
                   elWidth = whichWidth;
              else {
                   elWidth = (whichContainer) ? whichContainer.menuWidth : whichParent.menuWidth;
                   if (whichContainer) elWidth = elWidth-(borWid*2)-(itemPad*2);
              if (!whichContainer) whichContainer = menuLoc;
              eval(whichEl + "= new Layer(elWidth,whichContainer)");
         else {
              if (IE5) {
                   newDiv = menuLoc.document.createElement("DIV");
                   newDiv.style.position = "absolute";
                   newDiv.id = whichEl;
                   menuLoc.document.body.appendChild(newDiv);
              else {
                   elStr = "<DIV ID=" + whichEl + " STYLE='position:absolute'></DIV>";
                   menuLoc.document.body.insertAdjacentHTML("BeforeEnd",elStr);
              if (isFrames) eval(whichEl + "= menuLoc." + whichEl);
         return eval(whichEl);
    function itemSetup(whichItem,whichArray) {
         this.onmouseover = itemOver;
         this.onmouseout = itemOut;
         this.container = (NS4) ? this.parentLayer : this.parentElement;
         arrayPointer = (this.container.hasParent) ? (whichItem-1)*3 : ((whichItem-1)*3)+9;
         this.dispText = whichArray[arrayPointer];
         this.linkText = whichArray[arrayPointer + 1];
         this.hasMore = whichArray[arrayPointer + 2];
         if (IE4 && this.hasMore) {
              this.child = eval("elMenu" + this.id.substr(4));
              this.child.parentMenu = this.container;
              this.child.parentItem = this;
         if (this.linkText) {
              if (NS4) {
                   this.captureEvents(Event.MOUSEUP)
                   this.onmouseup = linkIt;
              else {
                   this.onclick = linkIt;
                   this.style.cursor = "hand";
         if (NS4) {
              htmStr = this.dispText;
              if (fntBold) htmStr = htmStr.bold();
              if (fntItal) htmStr = htmStr.italics();
              htmStr = "<FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSiz + ">" + htmStr+ "</FONT>";
              this.htmStrOver = htmStr.fontcolor(this.container.menuFontOver);
              this.htmStr = htmStr.fontcolor(this.container.menuFontColor);
              if(this.hasMore) {
                   this.document.write(imgStr);
                   this.document.close();
              this.visibility = "inherit";
              this.bgColor = this.container.menuBGColor;
              if (whichItem == 1) {
                   this.top = borWid + itemPad;
              else {
                   this.top = this.prevItem.top + this.prevItem.clip.height + separator;
              this.left = borWid + itemPad;
              this.clip.top = this.clip.left = -itemPad;
              this.clip.right = this.container.menuWidth-(borWid*2)-itemPad;
              maxTxtWidth = this.container.menuWidth-(borWid*2)-(itemPad*2);
              if (this.container.isTree) maxTxtWidth-=(fullImgSize);
              this.txtLyrOff = new Layer(maxTxtWidth,this);
              if (isRight && this.container.isTree) this.txtLyrOff.left = fullImgSize;
              this.txtLyrOff.document.write(this.htmStr);
              this.txtLyrOff.document.close();
              this.txtLyrOff.visibility = "inherit";
              this.clip.bottom = this.txtLyrOff.document.height+itemPad;
              this.txtLyrOn = new Layer(maxTxtWidth,this);
              if (isRight && this.container.isTree) this.txtLyrOn.left = fullImgSize;
              this.txtLyrOn.document.write(this.htmStrOver);
              this.txtLyrOn.document.close();
              this.txtLyrOn.visibility = "hide";
              this.dummyLyr = new Layer(100,this);
              this.dummyLyr.left = this.dummyLyr.top = -itemPad;
              this.dummyLyr.clip.width = this.clip.width;
              this.dummyLyr.clip.height = this.clip.height;
              this.dummyLyr.visibility = "inherit";
         else {
              with (this.style) {
                   if(!IE5) {
                        fontSize = fntSiz + "pt";
                        fontWeight = (fntBold) ? "bold" : "normal";
                        fontStyle = (fntItal) ? "italic" : "normal";
                        fontFamily = fntFam;
                        padding = itemPad;
                        borderBottomWidth = separator + "px";
                        borderBottomStyle = "solid";
    //3.10.2 modified next statement to one following
    //               if (this.container.isTree && (IE5 || (!IE5 && !this.hasMore))) {
                   if (this.container.isTree && !this.hasMore) {
                        if (isRight) paddingLeft = itemPad+fullImgSize;
                        else paddingRight = itemPad+fullImgSize;
                   color = this.container.menuFontColor;
                   borderBottomColor = this.container.menuSeparatorCol;
                   backgroundColor = this.container.menuBGColor;
    function menuSetup(hasParent,openCont,openItem) {
         this.onmouseover = menuOver;
         this.onmouseout = menuOut;
         this.showIt = showIt;
         this.keepInWindow = keepInWindow;
         this.hideTree = hideTree
         this.hideParents = hideParents;
         this.hideChildren = hideChildren;
         this.hideTop = hideTop;
         this.hasChildVisible = false;
         this.isOn = false;
         this.hideTimer = null;
         this.childOverlap = (perCentOver != null) ? ((perCentOver/100) * this.menuWidth) : childOverlap;
         this.currentItem = null;
         this.hideSelf = hideSelf;
         if (hasParent) {
              this.hasParent = true;
              this.parentMenu = openCont;
              if (NS4) {
                   this.parentItem = openItem;
                   this.parentItem.child = this;
         else {
              this.hasParent = false;
         if (NS4) {
              this.bgColor = this.menuBorCol;
              this.fullHeight = this.lastItem.top + this.lastItem.clip.bottom + borWid;
              this.clip.right = this.menuWidth;
              this.clip.bottom = this.fullHeight;
         else {
              with (this.style) {
                   width = this.menuWidth;
                   borderWidth = borWid;
                   borderColor = this.menuBorCol;
                   borderStyle = borSty;
                   zIndex = topZ;
    //3.10.2 added next statement
                   overflow = "hidden";
              this.lastItem.style.border="";
              this.fullHeight = this.offsetHeight;
              if(isMac)this.style.pixelHeight = this.fullHeight;
              this.fullHeight = this.scrollHeight;
              this.showIt(false);
              this.onselectstart = cancelSelect;
              this.moveTo = moveTo;
              this.moveTo(0,0);
    function popUp(menuName,e){
         if (NS4 && NSresized) startIt();
         if (!isLoaded) return;
         linkEl = (NS4) ? e.target : event.srcElement;
         if (clickStart) linkEl.onclick = popMenu;
         if (!beingCreated && !areCreated) startIt();
         linkEl.menuName = menuName;
         if (!clickStart) popMenu(e);
    function popMenu(e){
         if (!isLoaded || !areCreated) return true;
         eType = (NS4) ? e.type : event.type;
         if (clickStart && eType != "click") return true;
         hideAll();
         linkEl = (NS4) ? e.target : event.srcElement;
         currentMenu = eval(linkEl.menuName);
         currentMenu.hasParent = false;
         currentMenu.treeParent.startChild = currentMenu;
         if (IE4) menuLocBod = menuLoc.document.body;
         if (!isFrames) {
              xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? e.pageX : (event.clientX + menuLocBod.scrollLeft);
              yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? e.pageY : (event.clientY + menuLocBod.scrollTop);
         else {
              switch (navFrLoc) {
                   case "left":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset : menuLocBod.scrollLeft;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;
                        break;
                   case "top":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset : menuLocBod.scrollTop;
                        break;
                   case "bottom":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset+menuLoc.innerHeight : menuLocBod.scrollTop + menuLocBod.clientHeight;
                        break;
                   case "right":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset+menuLoc.innerWidth : menuLocBod.scrollLeft+menuLocBod.clientWidth;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;
                        break;
         currentMenu.moveTo(xPos,yPos);
         currentMenu.keepInWindow()
         currentMenu.isOn = true;
         currentMenu.showIt(true);
         return false;
    function menuOver(e) {
         this.isOn = true;
         isOverMenu = true;
         currentMenu = this;
         if (this.hideTimer) clearTimeout(this.hideTimer);
    function menuOut() {
         if (IE4) {
              theEvent = menuLoc.event;
              if (theEvent.srcElement.contains(theEvent.toElement)) return;
         this.isOn = false;
         isOverMenu = false;
         menuLoc.status = "";
         if (!clickKill) allTimer = setTimeout("currentMenu.hideTree()",10);
    function itemOver(){
         if (keepHilite) {
              if (this.container.currentItem && this.container.currentItem != this) {
                   if (NS4) {
                        this.container.currentItem.bgColor = this.container.menuBGColor;
                        this.container.currentItem.txtLyrOff.visibility = "inherit";
                        this.container.currentItem.txtLyrOn.visibility = "hide";
                   else {
                        with (this.container.currentItem.style) {
                             backgroundColor = this.container.menuBGColor;
                             color = this.container.menuFontColor;
         if (IE4) {
              theEvent = menuLoc.event;
              if (theEvent.srcElement.tagName == "IMG") return;
              this.style.backgroundColor = this.container.menuBGOver;
              this.style.color = this.container.menuFontOver;
         else {
              this.bgColor = this.container.menuBGOver;
              this.txtLyrOff.visibility = "hide";
              this.txtLyrOn.visibility = "inherit";
         menuLoc.status = this.linkText;
         this.container.currentItem = this;
         if (this.container.hasChildVisible) {
              this.container.hideChildren(this);
         if (this.hasMore) {
              horOffset = (isRight) ? (this.container.childOverlap - this.container.menuWidth) : (this.container.menuWidth - this.container.childOverlap);
              if (NS4) {
                   this.childX = this.container.left + horOffset;
                   this.childY = (this.pageY+this.clip.top) + childOffset;
              else {
                   this.childX = this.container.style.pixelLeft + horOffset;
                   this.childY = this.offsetTop + this.container.style.pixelTop + childOffset + borWid;
              this.child.moveTo(this.childX,this.childY);
              this.child.keepInWindow();
              this.container.hasChildVisible = true;
              this.container.visibleChild = this.child;
              this.child.showIt(true);
    function itemOut() {
         if (IE4) {
              theEvent = menuLoc.event;
              if (theEvent.srcElement.contains(theEvent.toElement)
         || (theEvent.fromElement.tagName=="IMG" && theEvent.toElement.contains(theEvent.fromElement)))
              return;
              if (!keepHilite) {
                   this.style.backgroundColor = this.container.menuBGColor;
                   this.style.color = this.container.menuFontColor;
         else {
              if (!keepHilite) {
                   this.bgColor = this.container.menuBGColor;
                   this.txtLyrOff.visibility = "inherit";
                   this.txtLyrOn.visibility = "hide";
              if (!isOverMenu && !clickKill) {
                   allTimer = setTimeout("currentMenu.hideTree()",10);
    function moveTo(xPos,yPos) {
         this.style.pixelLeft = xPos;
         this.style.pixelTop = yPos;
    function showIt(on) {
         if (NS4) {
              this.visibility = (on) ? "show" : "hide";
              if (keepHilite && this.currentItem) {
                   this.currentItem.bgColor = this.menuBGColor;
                   this.currentItem.txtLyrOff.visibility = "inherit";
                   this.currentItem.txtLyrOn.visibility = "hide";
         else {
              this.style.visibility = (on) ? "visible" : "hidden";
              if (keepHilite && this.currentItem) {
                   with (this.currentItem.style) {
                        backgroundColor = this.menuBGColor;
                        color = this.menuFontColor;
         this.currentItem = null;
    function keepInWindow() {
         scrBars = 20;
         botScrBar = (isFrames && navFrLoc=="bottom") ? (borWid*2) : scrBars;
         rtScrBar = (isFrames && navFrLoc=="right") ? (borWid*2) : scrBars;
         if (NS4) {
              winRight = (menuLoc.pageXOffset + menuLoc.innerWidth) - rtScrBar;
              rightPos = this.left + this.menuWidth;
              if (rightPos > winRight) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.left;
                        newLeft = ((parentLeft-this.menuWidth) + this.childOverlap);
                        this.left = newLeft;
                   else {
                        dif = rightPos - winRight;
                        this.left -= dif;
              winBot = (menuLoc.pageYOffset + menuLoc.innerHeight) - botScrBar ;
              botPos = this.top + this.fullHeight;
              if (botPos > winBot) {
                   dif = botPos - winBot;
                   this.top -= dif;
              winLeft = menuLoc.pageXOffset;
              leftPos = this.left;
              if (leftPos < winLeft) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.left;
                        newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
                        this.left = newLeft;
                   else {
                        this.left = 5;
         else {
              winRight = (menuLoc.document.body.scrollLeft + menuLoc.document.body.clientWidth) - rtScrBar;
              rightPos = this.style.pixelLeft + this.menuWidth;
              if (rightPos > winRight) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.style.pixelLeft;
                        newLeft = ((parentLeft - this.menuWidth) + this.childOverlap);
                        this.style.pixelLeft = newLeft;
                   else {
                        dif = rightPos - winRight;
                        this.style.pixelLeft -= dif;
              winBot = (menuLoc.document.body.scrollTop + menuLoc.document.body.clientHeight) - botScrBar;
              botPos = this.style.pixelTop + this.fullHeight;
              if (botPos > winBot) {
                   dif = botPos - winBot;
                   this.style.pixelTop -= dif;
              winLeft = menuLoc.document.body.scrollLeft;
              leftPos = this.style.pixelLeft;
              if (leftPos < winLeft) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.style.pixelLeft;
                        newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
                        this.style.pixelLeft = newLeft;
                   else {
                        this.style.pixelLeft = 5;
    function linkIt() {
         if (this.linkText.indexOf("javascript:")!=-1) eval(this.linkText)
         else menuLoc.location.href = this.linkText;
    function popDown(menuName){
         if (!isLoaded || !areCreated) return;
         whichEl = eval(menuName);
         whichEl.isOn = false;
         if (!clickKill) whichEl.hideTop();
    function hideAll() {
         for(i=1; i<topCount; i++) {
              temp = eval("elMenu" + i + ".startChild");
              temp.isOn = false;
              if (temp.hasChildVisible) temp.hideChildren();
              temp.showIt(false);
    function hideTree() {
         allTimer = null;
         if (isOverMenu) return;
         if (this.hasChildVisible) {
              this.hideChildren();
         this.hideParents();
    function hideTop() {
         whichTop = this;
         (clickKill) ? whichTop.hideSelf() : (this.hideTimer = setTimeout("if(whichTop.hideSelf)whichTop.hideSelf()",mSecsVis));
    function hideSelf() {
         this.hideTimer = null;
         if (!this.isOn && !isOverMenu) {
              this.showIt(false);
    function hideParents() {
         tempMenu = this;
         while (tempMenu.hasParent) {
              tempMenu.showIt(false);
              tempMenu.parentMenu.isOn = false;
              tempMenu = tempMenu.parentMenu;
         tempMenu.hideTop();
    function hideChildren(item) {
         tempMenu = this.visibleChild;
         while (tempMenu.hasChildVisible) {
              tempMenu.visibleChild.showIt(false);
              tempMenu.hasChildVisible = false;
              tempMenu = tempMenu.visibleChild;
         if (!this.isOn || !item.hasMore || this.visibleChild != this.child) {
              this.visibleChild.showIt(false);
              this.hasChildVisible = false;
    function cancelSelect(){return false}
    function reDo(){
         if (loader.innerWidth==origWidth && loader.innerHeight==origHeight) return;
         initVars();
         NSresized=true;
         menuLoc.location.reload();
    function clicked() {
         if (!isOverMenu && currentMenu!=null && !currentMenu.isOn) {
              whichEl = currentMenu;
              whichEl.hideTree();
    window.onerror = handleErr;
    function handleErr(){
         arAccessErrors = ["permission","access"];
         mess = arguments[0].toLowerCase();
         found = false;
         for (i=0;i<arAccessErrors.length;i++) {
              errStr = arAccessErrors[i];
              if (mess.indexOf(errStr)!=-1) found = true;
         return found;
    //end

  • Why do i keep getting Java Script Application saying uninstal and every time i click on my mouse the pop up appears and its sometimes hard to get rid of it. Please help. God Bless

    As soon as I log on to Firefox this pop up appears on the screen saying Java Script Application and under neath it it says uninstal and beside uninstal is a yellow triangle with a exclamation mark inside of it. Every time I click the mouse the pop up reappears over and over. It's really a nuisance and I need your help.The word uninstal is spelled like you see it, even though it's spelled wrong.Thank you and God Bless

    Other users have reported that this is caused by one of their add-ons. I suggest going to the Add-ons page and disabling everything that is not essential, and then restarting Firefox. Hopefully it's not caused by something you really rely on.
    orange Firefox button ''or'' Tools menu > Add-ons
    On the left side, click Extensions
    Then disable as many as possible and restart Firefox.
    Any luck?

  • Java Script and JSF question

    Hello,
    I have a JSF component like this that has a pageSize attribute. It shows a grid with 5 elements.
    <x:gridView id="#{tab}GridView" pageSize="5">
    </f:gridView>Then I have a drop down with 5 menu items where the user can select how many elements they want to see visible on the grid. My question is, how do i use Java Script to to change the pageSize attribute above with what the user selected in the menu below? I have been looking at java script code and online docs for an hour and cant come up with anything that seems to work. Any help will be appriciated. Thank you!!!
    <x:selectOneMenu id="myMenu" onclick="">
      <f:selectItem id="perPage1" itemValue="1" itemLabel="1" />
      <f:selectItem id="perPage2" itemValue="2" itemLabel="2" />
      <f:selectItem id="perPage3" itemValue="3" itemLabel="3" />
      <f:selectItem id="perPage4" itemValue="4" itemLabel="4" />
      <f:selectItem id="perPage5" itemValue="5" itemLabel="5" />
    </x:selectOneMenu>

    [...]how it was never designed to be used for
    such large applications[...]All I can say is that if this is true, then it doesn't show. Yes, I know it (oak) was originally designed for embedded systems, but Java and Oak aren't identical.
    My assembly teacher
    always makes fun of Java, saying java gives you far
    less control, it prevents you from making mistakes.
    No control over unsigned/ signed values, pointers
    etc. Yes. But broadly speaking that's the point. Java sacrifices control over such things. The return, however, is that programmers are able to be more productive because of the great swathes of problems that can no longer arise.
    The mistake is in assuming that Java is the best tool for everything. It isn't, and in fact no language us. As it turns out, Java is just great for building enterprise systems. It has a few other strengths, some of which (applets for example) have been more important in its original uptake but are now relatively minor features.
    You don't write an enterprise website in Intel assembly, and you don't write device drivers in Java.
    Not saying its not good but its good for
    smaller applications like cell phones and
    mini-computers.I think you mean something different by mini-computers to what I mean...
    Its portability is actually the main point in its favour for use in cell phones. If it weren't for that, I think C or C++ would probably have sole ownership of that space.
    Now i'm not saying any thing against it just
    confused on why a class like data-structures at my
    University [...] would be taught using java when C would
    probably be a lot better for Very Large ADTS.You and Joel Spolsky:
    http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html
    I disagree, because I don't think it much matters what language you learn - experience trumps any particular initial language choice. If you're still using Java in 15 years I'll be fairly surprised.

  • INdesign Cs4 java script

    hello all scripters:
    can any body help me to develope a script in javascript/apple script
    i want search a paragraph style and a character style in indesign page with page num
    i tried by this.. script.. any body give me this script in apple m not good in java script,,,,
    var myDc =app.activeDocument;
    var mySty = myDc.characterStyles.everyItem().name;
    var myDia = app.dialogs.add({name:"Character Style Display Menu", canCancel:true});
         with(myDia.dialogColumns.add()){    
              with(borderPanels.add()){
                   with(dialogColumns.add()){staticTexts.add({staticLabel:"Select Character Style:  "});}
                        with(dialogColumns.add())
                            var SelSty = dropdowns.add({stringList:mySty, selectedIndex:0});}
    var myRes = myDia.show();
    if(myRes==true)
          var myChoice = mySty[SelSty.selectedIndex];
          myDia.destroy();   
    else
    { exit();}
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedCharacterStyle = myChoice.toString();
    var myFind = app.findText(false).reverse();
    for(var a=myFind.length-1; a>=0; a--){
         var  myString= myFind[a];
         var myPg = myString.parentTextFrames[0].parent.name;}
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    if(myCon==null)
                    {alert("not found");}

    Hi Vijay,
    Please use the below JS code is as per your request.
    var myDoc =app.activeDocument;
    var myLW = 100;
    var myStyleNames = myDoc.characterStyles.everyItem().name;
    var myDialog = app.dialogs.add({name:"Character Style KT Page Numbers Create", canCancel:true});
         with(myDialog.dialogColumns.add()){    
              with(borderPanels.add()){
                   with(dialogColumns.add()){staticTexts.add({staticLabel:"Choose the KT Character Style:   ", minWidth:myLW});}
                        with(dialogColumns.add()){var myChooseStyle = dropdowns.add({stringList:myStyleNames, selectedIndex:0});}
    var myResult = myDialog.show();
    if(myResult == true){
         var mySelStyle = myStyleNames[myChooseStyle.selectedIndex];
         myDialog.destroy();
    else{
         myDialog.destroy();
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedCharacterStyle = mySelStyle.toString();
    var mySearch = app.findText(false);
    for(var a=mySearch.length-1; a>=0; a--){
         var  myText= mySearch[a];
         var myPagenum = myText.parentTextFrames[0].parent.name;
         var myContents = myText.contents;
         app.selection[0].insertionPoints[-1].contents = String(myContents+"\t"+myPagenum);
         app.selection[0].insertionPoints[-1].contents = "\r";
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    thx
    csm_phil

  • I disabled Java script, went back onto my email, found I need it and cannot figure out how to re-enable it. Please, someone, help! Where do I find it on Linux?

    Cannot find the menu I had pulled up to edit Java script, please, let me know where it is.

    See:
    * http://kb.mozillazine.org/Javascript#Enabling_JavaScript

  • Jave script enabled is checked in Options but webex says can't start due to Jave being disabled

    Need to enable Java script. When I look in the Options menu the box is checked that corresponds to Enable Java.
    However I cannot start Webex becasue a dialog box opens that says Java script is not enabled in the browser.
    How do I fix this?? Thanks//Joe
    == This happened ==
    Not sure how often
    == after I installed Firefox

    [http://kb.mozillazine.org/JavaScript_is_not_Java]
    http://kb.mozillazine.org/Java
    http://kb.mozillazine.org/JavaScript
    Tools > Addons >> plugins = that is where you enable Java

  • How do I get java script?

    I click on a link to you tube in FireFox and it says please enable java script. I can't find anything in my menu to enable it I don't even know if I have it. my you tube app works,why doesn't the link in FireFox work.

    JavaScript is enabled by default, but the Flash plugin used by YouTube is not yet available for Firefox on Android.
    If you go to http://youtube.com/html5 on your phone and click the link to "Join the HTML5 beta" then you will be able to watch YouTube videos that are available in the WebM format.
    We hope to include support Adobe Flash in a future version of Firefox for Android.

  • Early 2008 mac pro 8 core quicktime videos opening in java script code

    When I try to view a quicktime video it opens in Java Script Code instead of playing the video on my early 2008 Dual Quad Core 2.8 Ghz. Mac Pro running OSX 10.5.8 

    That's not much to go on, but I doubt it has anything to do with it being a Mac Pro. Select the clip and Get Info (Cmd I) to see what application is named in the "Open with" drop down menu. If it is anything other than QuickTime player, change it and try again.  Also, repair your permissions...

Maybe you are looking for