Document.getElementById().innerHTML Not Working in Dreamweaver

Hello!
I have Dreamweaver CS5, and am trying to get JavaScript to work in it.
I'm using the example from this online tutorial, which is for an imagemap:
http://www.w3schools.com/js/js_image_maps.asp
Click here to see the working code: http://www.w3schools.com/js/tryit.asp?filename=tryjs_imagemap
I used the code sample they have there, along with the planets.gif image there and put them in a Dreamweaver project.   
For some reason when I mouse over the planets the text description does not show up in the area below the image as it should.   You can try the example on the tutorial page above to see how it should work.  
Additionally, that code DOES work when I put it in the "Check Magazine" project (Adobe's tutorial), so I know it CAN work.     I'm not sure what I'm doing wrong here.    Is Javascript active in one project and not the other?
Many thanks for any feedback!
...John

The code was a cut and paste from the example above.
Here it is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Image Mapping</title>
<script type="text/javascript">
function writeText(txt)
document.getElementById("desc").innerHTML=txt;
</script>
</head>
<body>
<img src="images/planets.gif" width="146" height="126" alt="Planets" usemap="#planetmap" />
<map name="planetmap">
<area shape ="rect" coords ="0,0,82,126"
onMouseOver="writeText('The Sun and the gas giant planets like Jupiter
are by far the largest objects in our Solar System.')"
href ="sun.htm" target ="_blank" alt="Sun" />
<area shape ="circle" coords ="90,58,3"
onMouseOver="writeText('The planet Mercury is very difficult to study
from the Earth because it is always so close to the Sun.')"
href ="mercur.htm" target ="_blank" alt="Mercury" />
<area shape ="circle" coords ="124,58,8"
onMouseOver="writeText('Until the 1960s, Venus was often considered a
twin sister to the Earth because Venus is the nearest planet to us, and
because the two planets seem to share many characteristics.')"
href ="venus.htm" target ="_blank" alt="Venus" />
</map>
<p id="desc"></p>
</body>
</html>
At the bottom where you see the <p id="desc"></p> tag, the descriptions are not showing up when I mouse over a planet in the image.

Similar Messages

  • HP Laserjet 1536dnf MFP document feeder does not work

    HP Laserjet 1536dnf MFP document feeder does not work. I tried the suggested unplugged/plug and wait the required time but still no luck. Any suggestions?  It does not even recognize that there is paper in the document feeder.  Prior to this occuring, it used to say "document loaded"...now it says nothing.  I do not even get an error message.  It just does not work.

    Hi @jdm328 ,
    I see that you are having issues with the ADF not recognizing the paper loaded. I would like to help you out today.
    It might be a hardware or paper sensor issue with the printer, not detecting the paper being loaded.
    Make sure the printer is connected directly to a wall outlet. (don't use a power hub or a surge protector) This ensures the printer is receiving full power and may help this situation.
    I have provided a document with steps for cleaning the ADF rollers and the separator pad, to see if that will help.
    'Document feeder mispick' Message Displays on the Control Panel and the ADF Does Not Pick Up Paper o...
    Disregard the title.
    Try to make a copy again.
    If the issue persists, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Have a nice day!
    Thank You.
    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!
    Gemini02
    I work on behalf of HP

  • CMD+ shortcuts not working in Dreamweaver CS3

    I'm have a very strange issue with CMD+ keyboard shortcuts
    not working in Dreamweaver CS3 on OSX 10.5. These actions are
    working from the menus (i.e., copy, cut, paste, etc.). CMD+
    shortcuts work in other CS3 apps. I've searched this forum and
    googled up and down and found some references to issues like this
    with Dreamweaver 8, but nothing for CS3.
    Has anyone experienced this problem? I'm completely stumped.
    Lawrence

    My concern wasn't with the navbar, but thanks for the headsup.
    The problem is that the link in the upper left hand corner, Suzie's Story, is a rollover image but it does not reveal the other image when the cursor goes over it.
                            <div id="topTabs1">
       <div align="center"><a href="http://www.google.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('suzie','','Images/Suzie's Story Tab_light.jpg',1)"><img src="Images/Suzie's Story Tab_black.jpg" alt="suzie" name="suzie" width="75" height="45" border="0" id="suzie" /></a></div>
             </div>
    #topTabs1 {
    width: 75px;
    height: 45px;
    float: left;
    background-color: #ffffff;
    padding-left: 0px;
    padding-right: 0px

  • Command S not working in Dreamweaver CS6

    Command S not working in Dreamweaver CS6

    Every time I've run into an issue like this, clearing the cache file has repaired it...
    http://forums.adobe.com/thread/494811
    As long as it's not a system wide issue that is.

  • Pay each document alone does not work.

    "Pay each document alone" does not work at supplier level.
    I have a supplier with active flag in "Pay each document alone" but it doesn´t work.
    Only works at invoice level.

    Hi,
    The patch mentioned is already applied so no patch application in required. I reviewed the setup supplier and I found it was in error, I checked the flag "pay alone" at site supplier level.
    Regards
    BR

  • Paste not working in Dreamweaver CS4

    I am running Dreamweaver CS4.  The paste function is not working. Any ideas?

    Assuming that your system runs Windows, there are a number of ways to paste the contents of the Clipboard into your document. The most trustworthy way is to use CTRL+v

  • Flash Buttons Not Working in DREAMWEAVER !!!!!!!!!!! :(

    Ive made an animation in flash of curtians opening to a stage of dancers, who are all buttons.
    When i put this animation into dreamweaver and test the web page the buttons do NOT work
    PLEASE HELP ME !!
    lmack

    Most likely a site definition problem.  Did you define a local site in DW BEFORE you created your web page?  This critical first step is necessary for DW to properly manage your site.
    If you don't already have web hosting (a commercial web server space), you need to sign-up for one.  There are countless hosts and hosting plans available.
    Use the log-in details provided by your web host to set-up your Remote Site connection in DW.  See link below for details.
    Creating  your first web site in DW CS5 -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Auto indent is not working in Dreamweaver

    Hi,
    I'm using Dreamweaver CS5 on Windows 7 and the auto indent in the Code pane is not working. All settings are at default after installation. The Indent option in Code Format in the Preferences is checked and set to 2 Spaces. Auto Indent is also checked in View > Code View Option.
    Steps to reproduce the problem:
    File > New with Blank Page, Page Type > HTML, Layout > None or any.
    The default code is not indented, pressing Enter to create a new line in the code, and typing any tag, for example <p> in a new line after <body> doesn't have any auto indent and all new lines are left aligned.
    Do you have auto indent? If yes, what is different from what I described?
    Your feedback is greatly appreciated.

    Thanks Nancy, but this didn't make any difference.
    Just to be clear, I'm new to Dreamweaver and my expectation is if I have for example:
    <body>
    then press the Enter key and type
    <p>
    after completing the <p> I expect Dreamweaver to recognize it as a tag that logically should be indented and add the indent automatically, making it like this:
    <body>
        <p>
    Is my expectation wrong?. This is how auto indent works in other programing environments like Microsoft Visual Studio when coding in C++.
    If I make the indent manually before typing <p> , for example adding a few spaces then the next line is on the same level keeping the indent. Is this what Dreamweaver considers as auto indent? May be I had higher expectations but then what is this 2 Spaces or Tabs in the Preferences?

  • Link works in Flash 8 but it does not work in Dreamweaver

    I made a Flash swf file which contains button and ball. When
    I put mouse over the button, the ball jumps up.
    And also I have managed to attach a link to the button using
    action script.
    Strange thing is the link works fine when I use test movie
    with Flash 8 but when I insert it into Dreamweaver, although the
    ball works fine with mouse over but the link does not work at all.
    Can anybody tell me why?
    Why it work with test movie in Flash 8 but not in Dreamwever.
    Thank you very much in advance.

    I have just solve my question myself.
    In a Dreamweaver preview the link does not work but once the
    page is published it works.
    Thank you.

  • Acrobat 11 Standard Office 2010 Pro Convert Word documents to PDF not working

    Adobe community,
    I can create PDF's inside Word 2010 using the Acrobat Add-in but right clicking a Word document or dragging a Word document into Adobe Acrobat 11 Standard does not work. I have updated both Acrobat 11 and Office 2010 with the latest updates available. Any suggestions would be greatly appreciated.

    Hi markl16215442,
    In order to convert word document to PDF by right-clicking or dragging the file, you must have Adobe PDF printer installed.
    For Windows, please check that Adobe PDF is set as default printer under "Start > Devices and Printers"
    While for MAC, Adobe PDF printer option is no more available and as it was removed with some changes in Apple's policy regarding virtual printers.
    So, check with your OS and then let me know.
    Regards,
    Anubha

  • Flash not working in Dreamweaver

    Hello.. hope someone can help.
    I'm trying to get a photo gallery to work in Dreamweaver.
    Everything is working fine when testing in Flash but when add to my
    Dreamweaver file and test in browser, it doesn't work.
    any help is really appreciated

    Any way you can post a link to the page you have uploaded?
    Also, you may want to read this after you update to DW 8.0.2,
    reagrding the
    "click to activate" thing in IE -
    It's IE-only behaviour as a result of changes Microsoft made
    several
    years ago to their browser, regarding how Active Content
    (Flash, Quicktime
    etc)
    is handled, after losing a high profile court case.
    http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
    Background:
    http://en.wikipedia.org/wiki/Eolas
    See also
    http://www.adobe.com/devnet/activecontent/
    If you're running Dreamweaver 8.0.2/CS3, the fix is already
    built into DW's
    interface.
    If not, try
    http://blog.deconcept.com/swfobject/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "lorinda75" <[email protected]> wrote in
    message
    news:[email protected]...
    > version 8.0
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <title>Beautimport</title>
    > <style type="text/css">
    > <!--
    > body {
    > margin-left: 0px;
    > margin-top: 0px;
    > margin-right: 0px;
    > margin-bottom: 0px;
    > }
    > #leftimage {
    > height: 260px;
    > width: 160px;
    > margin-top: 10px;
    > float: left;
    > margin-left: 0px;
    > }
    > #gallery {
    > height: 330px;
    > width: 570px;
    > padding-right: 20px;
    > margin-top: 45px;
    > }
    > -->
    > </style>
    > <link href="css/index.css" rel="stylesheet"
    type="text/css" />
    >
    > <style type="text/css">
    > <!--
    > .style1 {font-size: 12px}
    > #content2 {
    >
    > height: 275px;
    > width: 600px;
    > background-repeat: no-repeat;
    > }
    > -->
    > </style>
    > </head>
    >
    > <body>
    >
    > <div id="wrapper">
    > <div id="header"></div>
    > <div id="banner"></div>
    > <div id="menu">
    >
    >
    <a href="index.html">HOME</a></li>
    >
    <a href="aboutus.htm">ABOUT US</a></li>
    >
    <a href="education.htm">EDUCATION</a></li>
    >
    <a href="products.htm">PRODUCTS</a></li>
    >
    <a href="newsandevents.htm">NEWS &
    EVENTS</a></li>
    >
    <a href="gallery.htm">GALLERY</a></li>
    >
    <a href="feedback.htm">FEEDBACK</a></li>
    >
    > </div>
    > <div id="content2">
    > <div id="title"><img
    src="images/titleGallery.jpg" width="400"
    > height="25"
    > /></div>
    > <div id="gallery">
    > <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0" width="570" height="330">
    > <param name="movie"
    value="images/thumbnail_initial2.swf" />
    > <param name="quality" value="high" />
    > <embed src="images/thumbnail_initial2.swf"
    quality="high"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash" width="570"
    height="330"></embed>
    > </object>
    > </div>
    > </div>
    > <div id="footer">
    >
    >
    <a href="#">disclaimer</a></li>
    >
    <a href="#">|</a></li>
    >
    <a href="#">copyright </a></li>
    >
    <a href="#">|</a></li>
    >
    <a href="#">privacy policy</a></li>
    >
    >
    > </div></div>
    > </div>
    > </body>
    > </html>
    >
    >

  • Exported slices not working in Dreamweaver

    I'm hoping someone can tell me what I'm doing wrong. I
    created a simple rollover in fireworks, an image that when you
    rollover it will reveal text. I followed instructions from a
    tutorial, created my duplicate frame, everything looked great when
    I tested the rollover in preview in fireworks but when I exported
    to dreamweaver the rollover didn't work. I exported images with
    html, I didn't say just this frame, not sure what I'm doing wrong.
    I know this should work. Any suggestions would be very much
    appreciated.

    heathrowe wrote:
    >
    quote:
    Originally posted by:
    Michaela1
    > I didn't mean that literally but in tutorials it says
    create the graphic and
    > fireworks will put together the html needed to export
    with the slices for it to
    > work in dreamweaver. I'm thinking it must just be some
    option I didn't select.
    >
    >
    > This is fine Michael. The Help file showcases some round
    tripping methods that
    > use this html as you describe.
    > If you are comfortable with the html output from Fw, and
    the round-tripping
    > support to Dreamweaver then stick to it.
    > I WOULD NOT TAKE Stephane's advise at face value.
    >
    > His advise does no justice to new FW users, nor to those
    who don't use
    > Dreamweaver, yet alone the roundtripping capabilities
    between the two
    > applications.
    >
    > Michael, if the end result works and what you created is
    fine with you, then
    > super. I wouldn't let the the 'high and mighty' attitude
    of some get to you.
    >
    > h
    >
    The point Stephane is making - and rightly so - to use the
    right tool
    for the job. I can create html files from MS Word, but I
    won't, because
    of how Word generates the html (or at least how it *used* to.
    No idea
    what it does in the latest iteration). FW generates passable
    html, but
    it is NOT an html editor.
    Example 1: It doesn't export text as text unless you ensure
    you create
    html slices, and even then, if the output is a table layout,
    the layout
    can explode if the text content is changed or even altered in
    size by
    the user.
    Example 2: Its comprehension of CSS is very poor, if you
    think of the
    program as a web page editor. As a graphics editor, hey at
    least it can
    export layers. With the addition of the Smart CSS extension,
    things are
    even better, but that is not native FW functionality.
    Knowing your way around "under the hood" of a web page is
    still an
    important skill *if* you are producing content for clients
    and being
    paid to do it. IMO, that is part of what being a professional
    is all
    about, and it's worth noting I make a distinction between the
    professional and casual user.
    Very often we assume on this forum that those asking
    questions are
    either in the profession, or planning to be, so at times the
    advice
    given may seem a bit - impassioned - shall we say. But this
    is done for
    a good reason. To help steer people down the right path. To
    help them
    understand that there may be better, more standardized,
    consistent or
    even just preferred ways of doing things in a professional
    manner.
    FW's html has improved over time, but the program is not
    intended to be
    a web page creation tool; it's a graphic design tool. As the
    software
    evolves, maybe this will change somewhat, but no one can
    really say.
    Now if you're just building a site for fun and are not
    concerned about
    all that high-falluting pro mumbo jumbo, then hey, as
    Heathrowe says, go
    ahead. And by all means use FW as a learning tool. Just
    understand there
    are tools more suited to the job of creating html pages than
    FW.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    See my work on Flickr
    http://www.flickr.com/photos/jim_babbage/

  • Javascript: getElementByID does not work on the pop up pages?

    I have two pages that call the same pop up page to get values chosen by the users. Once the value is chosen, a passBack function is called. I tried to use the getElementID to decide which is the calling page. However, it didn't work at all. The code is given as follows:
    < script language="JavaScript" >
    function passBack(passVal1)
    if opener.document.getElementById("P8_search")==NULL
    opener.document.getElementById("P6_name").value = passVal1;
    opener.document.getElementById("P6_name").focus();
    close();
    else
    opener.document.getElementById("P8_name").value = passVal1;
    opener.document.getElementById("P8_name").focus();
    close();
    </script>
    Can somebody kindly enough tell me where is wrong? Thanks in advance.

    Rather late reply... but posting it for the reference of other users...
    In my experince "if" is generally clumsy with javascript. Try avoiding it.
    When u call the popup function instead, in the url, pass the name of the item to the called page. Eg. say 6 and 8 are your base pages. And u r calling - say page 70 (popup page)
    Poup function -
    <script language="JavaScript" type="text/javascript">
    function callPopup (formItem1) {
    var formVal1 = document.getElementById(formItem1).value;
    var url;
    url = 'f?p=&APP_ID.:70:&APP_SESSION.::::P70_X: <if calling page is 8 - give the name of the item on page8, else name of item on page 6 > ' + formVal1;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=400,height=400");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    So on your popup page, u have an element which holds the page it came from. (6 or 8)
    Further, during passback - passback function :
    <script language="JavaScript">
    function passBack(passVal1,passElem1)
    opener.document.getElementById(passElem1).value = passVal1;
    close();
    </script>
    passelem1 will hold the name of the element on your base page.(which gets populated with the value from the popup)
    On the report link that passes back the value, pass this as an additional param :
    $x('P70_X').value
    P70_X will store the name of the item on the callin page which collects the calue from the popup.

  • My Open 'New Document' function is not working properly on Illustrator CS5

    When I open a 'New Document' a message pops up saying 'Print.ai' is not working, I wanted to open a custom 'New Document Profile' not print.  The custom option is grayed out and I cannot select it.  What do I do?

    If you can create a new document by any means, then set up the document the way you want the preset to be, and save the file here:
    ~/Library/Application Support/Adobe/Adobe Illustrator CS5/en_US/New Document Profiles
    You might need to delete/replace the faulty Print.ai file.

  • Document sync is not working between my Macs

    I use several Macs. One year ago Document syncing seem to work perfekt. Then it stopped so i deactivated it and used wuala.com for syncing.
    Now i want to retry to set it up. So i chooses my iMac and MacBook Pro to start first with again. I checked the appropriate checkbox in Systems Preferences. Without success. Documents put into my Homefolder's Document Folder dont get synced.
    Does someone has a hint?

    iCloud doesn't work that way - it does not sync files in your home folder's document folder.
    What kind of files are you trying to sync?  Only files that are associated with a program that is programmed to sync with icloud can be synced, like Pages and Numbers files.

Maybe you are looking for