Show/hide an element with the click of a button - Script works does not in Firefox

Hi all

Basically, I'm looking for show/hide a DIV with the click of a button.

The script works in IE but fail in FF.

I am sure that I am the problem here.

<script type="text/javascript">

function toggle(box) {
     var el = document.getElementById('box');
     el.style.display = (el.style.display != 'none' ? 'none' : '' );
     
     
     value = document.getElementById('content').value;
     if(value=="Show Calendar"){
     document.getElementById('content').value="Hide Calendar";
     }
     else{
     document.getElementById('content').value="Show Calendar";     
}
}
</script>


<style type="text/css">
#box{
     background-color: #C0C0C0;
     height: 100px;
     width: 100px;
}
</style>
</head>

<body>

<div id="box">
</div>

<input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
</body>
</html>

WE

He also worked if you had changed-


on this subject.


Tags: Dreamweaver

Similar Questions

  • I downloaded Adobe camera raw 8.4 so that I can open raw files with pictures taken with the camera Sony a6000.  However, it does not open images in camera raw.  What can I do?

    I downloaded Adobe camera raw 8.4 so that I can open raw files with pictures taken with the camera Sony a6000.  However, it does not open images in camera raw.  What can I do?

    I suggest you please update Camera Raw 9.1.1: Camera Raw of Adobe Photoshop CC and CS6 Installer

    Once done, launch Photoshop and click Help > about plug-in > Camera Raw.

    And check the version of Camera Raw, you see there, it should be the most recent.

  • This is the error I get when trying Adobe Premiere of 13 elements of the configuration.  ERROR: This Setup program does not support installation on a 64-bit Windows operating system. Please download the 64-bit version of Premiere Elements.

    This is the error I get when trying Adobe Premiere of 13 elements of the configuration.  ERROR: This Setup program does not support installation on a 64-bit Windows operating system. Please download the 64-bit version of Premiere Elements.  How to work around this issue and get this downloaded.

    Lisa, please try of products download Premiere Elements | 10, 11, 12, 13 and let us know if you need help with this.

    Atul_Saini

  • When I try to install adobe photoshop 13 on my computer it comes up with the error message error code "this installer does not setup on a windows 64-bit operating system support" 6. How to I recify this? TIA

    When I try to install adobe photoshop 13 on my computer it comes up with the error message error code "this installer does not setup on a windows 64-bit operating system support" 6. How to I recify this? TIA

    You can try to download the 64-bit version.  You can download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • error packaed and launch: Oh, Snap! Build request failed with the message: [ERROR] an archive or directory does not exist in the specified path:

    Hello

    I get this error when you try to run the sample of cards on the corrugation Simulator:

    Oh, Snap! Build request failed with the message: [ERROR] an archive or directory does not exist in the specified path: "/ Users/Calgacos/Library/Application Support/Google/Chrome/Default/Extensions/cnijnnaimeaacneklcndcafbnkeicckh/0.9.16_0/services/node/node_modules/rbd/Packaged/Maps.zip".

    The .../rbd/Packaged folder is writable and the Maps.zip will be created in the folder ~/RippleSites/Maps/Packaged.  With the help of Mac, the latest versions of everything.  The application runs in undulation ok, but I can't throw on the SIM BB10.

    Someone else have this error and know why?

    PS the Maps.zip does not get created (or copied) in specified folder, of course, but why?

    PS try another application and it worked but is too has not put its zip file into the folder... rbd/Packaged.  I guess it should not but leaves me clueless as to whats wrong with cards.

    Thank you

    The two directories (in the extensions directory and maps project directory) have permissions to 777.

    But you gave me an idea...

    It turns out that simply by putting

    "Packages".

    in setting output wasn't enough, I need the full path

    for example: "/ Users/username/RippleSites/Maps/packed."

    and presto, now it works!

    Thank you!

  • To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    Hello m.velentino,

    Not sure if you are still having the error message isn't valid win32.applicaiton.

    Get the error: not a valid 32-bit application can have several origins:
    I have listed some of them below.

    The file is corrupted, bad or missing.
    -If the hard disk is damaged or hurt it cause work programs to fail, either because not all data can be read from the hard drive the program is damaged on the drive. Run scandisk and defrag on the hard disk to check for potential errors.
    -If you run the program from a shortcut on the computer, verify that the program is still on the computer. In some cases if the program is no longer installed on the computer, you can get this error.

    File is not designed for your version of Windows:
    -If you try to run a program that is not designed for your version of Windows, you can get this error.
    -Although many old programs designed to work in older versions of Windows will work with new versions of Windows, unfortunately, not all programs will not work.
    -If the program is an MS-DOS program more former start program or Windows, you can get this error.
    -If the program is designed for a 64-bit version of Windows and you are running in a 32-bit version of Windows, it will not work and generate this error.

    File is a virus, worm or other malicious program file.
    -
    This error can be generated by a file that is a virus, worm, Trojan horse or other type of malware file. Often, this will result because the antivirus installed on the computer will not allow the file to install or run. Try to analyze the file to check, it is not a virus or infected.
    -If the file has been checked and is clean, it is always possible that the virus protection program or a another program installed on the computer is at the origin of questions during installation or execution of the program. Start the computer in Mode safe and try to run the program. start the computer in Mode safe will be that nothing is running in the background that could cause this problem.

    Hardware incompatibility.

    -If you get this error during the installation of a program, it is also possible that the CD-ROM drive or the drive that you are installing the program from is not compatible with Windows or has drivers that are not compatible with Windows.
    -Download the latest drivers for your CD player or other of the manufacturer of the computer or the manufacturer of the equipment. (Microsoft does not pilot for other materials)

    Let us know if these suggestions help you.

    Marilyn

  • Spinnerlist with the click of a button

    Does anyone have a code example showing how to open a spinnerlist with a click of a button?

    I had it myself, here is the code:

  • With the latest updates of foxfire, so it does not work slow or accident, why do I always foxfire run normal to slow down, then freeze and have either restart or click Ctrl w to erase everything and re click foxfire to recharge.

    FoxFire browser works normal for a few days, then begins to gel, where I can't scroll with the mouse or click on facebook and fabulis.com. I each somputer reboot or push CTRL to clear the screen on the desktop, then refresh the desktop page and then click the icon to return to where I was and continue on firefox.

    It starts to become slow when it starts to redirect my web sites

  • problem with the mouse and keyboard and windows update does not work

    Since last week to start the computer, I get an error message that the mouse and keyboard functions do not work. He then seeks the errors and then indicates that the service restarts. I want to fix this problem and according to Microsoft hardware, I should download "mkc.msi", which is missing from my computer, but when I do a search for a download, it always automatically directs me to the section "community". How can I correct this problem and get the appropriate download? I use Windows Pro 64 bit with IE 11 on an Acer laptop. I have the Acer site but it was a great help. Also, for the last 6 months, I could not update my computer windows update feature does not work and no error code is presented. I tried everything to restore or re-download the windows update feature, but nothing works, or I can't find a source. I got a blue screen 3 times indicating that windows must be updated and has been the reason for the blue screen. Unfortunately, I don't have a Windows 7 reinstall drive when restarting it spilled about 85 MG of data but not identify what has been dumped. Of course I could use help on this major problem as well even if it cannot be in the category correct community.

    Hello

    I understand that you are having trouble downloading MKC. MSI. I would certainly help you to fix this problem.

    Method 1:

    If you are referring to Microsoft Mouse and keyboard Center, then check out these links to download.

    Download mouse and keyboard Center to get the best out of Windows 8

    Mouse and keyboard Center 2.0 (formerly IntelliPoint and IntelliType Pro)

    Method 2:

    You can consult the following Microsoft article if you are unable to install the updates of Windows on the computer.

     

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2

    http://support.Microsoft.com/kb/2509997

    Important: When running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    Registry warning

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/)

    How to back up and restore the registry in Windows

    I hope this helps.

    Please report if the problem persists and we will be happy to help you further.

  • Error code 0 x 80070424 with the Defender, Windows Firewall in Windows 7, does not not for me solutions

    I got the error code for my firewall, I read all of the solutions posted to what I could find, but there is still something wrong. First, I did the analysis of malware and viruses. He found the rootkit malware and removed, but no viruses were found. I tried to manually start the firewall but it does not exist in the services menu. The problem is that none of the Microsoft downloads for automatically fix or other downloads posted to help download for me. As soon as I click on "run" he said that it contained a virus and was eliminated. I did a scan for virus twice.  Any suggestions?

    The description you have provided sounds like your computer is infected with the 'new' Sirefef variant which poses problems for MSE and Windows Defender.

  • Demarshalling xml with the automatically generated class JAXB2.0 file does not work in jdeveloper 11.1.1.9

    I'm trying to familiarize themselves with JAXB in jdeveloper. I am facing some problems. There are a few test cases for which he works, for others it is not.

    Case 1:

    XML file is created manually. Respective java class to xmlelements is created manually. There is no ObjectFactory.java or jaxb.properties. Demarshalling this XML file works fine.

    Case 2:

    XML file is not created manually. All the respective java classes including ObjectFactory.java and jaxb.properties are generated using the widget ' JAXB 2.0 content XML Schema model "jdeveloper. I deleted ObjectFactory.java, jaxb.properties, and package - info.java. Demarshalling xml with this class file works fine.


    Case 3:

    Even in case 2, but this time I do not delete or change whatever it is generated and used as it is. It does not work. Get the following error.

    Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
    javax.xml.bind.UnmarshalException
     - with linked exception:
    [Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project]
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:816)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:109)
      at com.example.jaxbintro.JAXBExampleClass.main(JAXBExampleClass.java:36)
    Caused by: Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project
      at org.eclipse.persistence.exceptions.XMLMarshalException.noDescriptorWithMatchingRootElement(XMLMarshalException.java:129)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshallerHandler.startElement(SAXUnmarshallerHandler.java:208)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1598)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:455)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:401)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:239)
      at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:157)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:688)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:271)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:258)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:218)
      at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:306)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:106)
      ... 1 more
    

    The project is included in the annex to this issue. It is ready for use. More information in the commentary to the java code. The main class is JAXBExampleClass.java.

    What is the problem with case 3?

    OK, I've been messing around with codes generated a bit and found the solution. The problem is that the value of the XmlSchema namespace had error in package - info.java class. There is no specified XmlSchema namespace in the XML file. Thus, the given value in the package - info.java was wrong.

    @javax.xml.bind.annotation.XmlSchema (namespace = "http://www.example.org", value / / wrong, set it to an empty string or that of your xml file, if it has any)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    After you set the namespace to the empty string, since my xml file do not have one, code ran very well.

    @javax.xml.bind.annotation.XmlSchema (namespace = "",)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    The file package - info.java can also be removed and it will work. For more details on the package and XmlSchema annotated level, what information on the package class is for, be found in the following link.

    https://JAXB.Java.NET/NoNAV/jaxb20-FCS/docs/API/javax/xml/bind/annotation/XmlSchema.html

  • How can I download the new update on my Macbook pro when the password is not working? When I connect to the Adobe site with the same user name and password it DOES not work. I don't understand why.

    So I have a macbook pro - and she advised me that I had to update my Adobe flash player. So I go through all the steps and I'm stuck at the last stage, where he asks me my user name and password. I go in there correctly - several times and it does NOT connect. He shakes to show that there's an error. Double check my file AND I go to the Adobe site to connect with the same information. and it works very well.

    WHAT IS THE PROBLEM? Help please.

    Could you please try ComputerName administrator as username and the password as password.

    I hope this works.

    Concerning

    Hervé Khare

  • Hey everyone, I have a problem with the software adobe creative cloud. It does not start! I opened the app, and it seems that the app is about to start, but it won't. I can't see the application what I see is a circle that turns. Help!

    Screen Shot 2015-09-19 at 11.14.21.png@

    Hello

    Please check the help below document:

    Does not open App | Wheels of progress turn continuously

    You can also view the nets below where this issue has been addressed:

    Adobe Creative Cloud / Desktop App / Home Screen: constant spinning wheel

    Creative Cloud Desktop App taped blue spinning wheel after update.

    Kind regards

    Sheena

  • Problem with SideWinder X 8, left button and scrolling does not

    Hello
    I bought my SideWinder X 8 mouse in August 2009. This works fine until last week.
    The left button does NOT have the 'click (default)'.
    The left button is actually simulating the right wheel "tilt".
    What I assigned to the right tilt wheel will be interpreted by the left button.

    I already use the latest version of the driver ipx86_1033_7.00.260.0 download site of material.
    Test in the two Windows Vista x 86 as well as on a Windows 7 x 86.
    Both shows still the same problem.

    Hi WKNG,.

    You can read the following article, try the steps and check if that helps.

    Troubleshoot a wireless mouse that does not correctly

    http://support.Microsoft.com/kb/321122

    If the steps described in the article above does not work, you may need to get the mouse replaced as this appears to be a malfunction of the equipment.

    Hope this information is useful.

    Boumediene. K.
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The mouse scroll wheel doesn't work does not correctly?

    Win 7, Microsoft Wireless Mouse 5000
    Everything worked fine but I had to reformat & return my computer again the conditions of the plant.  I have add the correct software for my mouse.  Now, when I use the scroll wheel, it moves the screen a full coming soon page (spreadsheet, word processing, etc.).  The unique thing is that I can say that she does so ONLY with products at Microsoft (Excel & Word so far), with any other software, it seems to work as it should (a few lines at a time).  No one knows what is the cause?  Help please.

    Thanks in advance... Bob

    Hello

    1. have you checked if the problem occurs with a different mouse?
    2. don't you make changes on the computer before the show?


    You can try the steps provide in the supplied knowledge base articles and check if that helps:
    Troubleshoot a wireless mouse that does not correctly
    http://support.Microsoft.com/kb/321122
    Troubleshoot the incidents of the response to the mouse or wireless keyboard
    http://support.Microsoft.com/kb/838398
     

Maybe you are looking for