Dreamweaver CC Library Item with rollover link produces two body tags. Why?

I have a library item which is used in two pages and works correctly if it does not contain a rollover arrow with a link taking you to the top of the library item. This produces the following near the top of each of the containing pages:
</head>
<body class="indexpage">
<!-- #BeginLibraryItem "/Library/homemenu.lbi" -->
<p><a id="top"></a></p>
Note that the Library Item does not itself have a <body> tag in this original, working version.
The problem arises when I insert an image rollover with a link up to #top (which is defined as above).
First, the Library Item has the following near its top:
<script ...>
... various functions to handle the rollover
</script>
<body onLoad="MM_preloadImages('../images/uparrowred2.gif')">
<p><a id="top"></a></p>
Secondly, the containing pages now have the following near the top:
</head>
<body class="indexpage" onLoad="MM_preloadImages('images/uparrowred2.gif)">
<!--#BeginLibraryItem "Library/homemenu.lbi" -->
<script ...>
... various functions to handle the rollover
</script>
<body onLoad="MM_preloadImages('../images/uparrowred2.gif')">
<p><a id="top"></a></p>
It can be seen (shown in red) that the Library Item has correctly transferred the onLoad instruction to the containing page's <body> tag and at the same time altered the address of the GIF image from '../images/xxx.gif' to 'images/xxx.gif'. [The root folder with the various html pages has a number of subfolders including 'images' and 'Library']. But now, unfortunately, the containing pages have two <body> tags with the second one pointing to the wrong location for the GIF image.
Would someone please explain what is going on. I can think of three possibilities: (1) I may be doing something really stupid, (2) there may be a bug in Dreamweaver CC or (3) Library Items may not be allowed to contain anything "complicated" like a rollover. I did see a very old (2007) discussion in this forum suggesting that Library Items were rather limited in what they could contain, but over the intervening six years I would have expected things to have improved.

Thank you, but in that case I'm not sure I understand the purpose of Library Items. Before I added the Library Item, there was nothing to preload. When I add a rollover to the Library Item, Dreamweaver creates the preloader instruction within the Library Item. Then when I include the Library Item in an html page, Dreamweaver controls where the preloader is put.
Do I then need to manually edit what Dreamweaver has done? In this instance it would have been almost as quick to have ignored the use of a Library Item and copied and pasted the relevant code into the two pages and manually created the revised <body> tag with a preloader. In my relative inexperience with Dreamweaver, I just thought that using a Library Item in multiple pages would save me some effort when I wanted to change the content of the Library Item. As I said, the Library Item worked OK until I added a rollover within it.

Similar Messages

  • Flash Pro CC to CS6 fla issue - Bad library items and new library items with unicode names

    I've noticed a strange issue when opening fla files in Flash Pro CS6 that have been edited in Flash Pro CC. If there are library items in the fla with names that include symbols such as ">" or ".", unicode named symbols are created and the original symobls are unuseable. There are many symbols that cause the issue and the symbols just have to be a part of the name.
    Steps to reproduce:
    1) Create an fla file in Flash Pro CC.
    2) Add a single movieclip to the library with a symbol name of ">".
    3) Save the file.
    4) Open the file in Flash Pro CS6.
    Results:
    Library contains 2 symbols, one named ">" and one named "&#062".
    Expected:
    There's one library symbol named ">".
    After that double clicking the symbol named ">" will do nothing and instances of the symbol will have all their content removed.
    This issue is breaking a JSFL script I wrote that loops the library items. When the script attempts to access item.layerCount the script errors out. My team is blocked from using Flash Pro CC in combination with Flash Pro CS6 because of this issue. The only good solution I can think of is to all switch to CC at the same time to avoid converting our fla files to CS6 from CC.
    Any info on a fix for this issue would be appreciated.

    The dialog you get when you open the FLA in CS6 is that new features may not be available in CS6 so you should save it to a new file to avoid corruption. There's no "save down" from CC to CS6 (yet). So opening the file in CS6 isn't advisable in the first place.
    That said, library items are supported between them both so to your point, yes, I get the same exact behavior. A single symbol named ">" in CC produces 2 library items in CS6 named ">" and "&#062", and the original item is lost. Although I'm not sure where I'd classify this issue being you shouldn't be opening a newer version file from an older version of the application. I did also try XFL, same issue. If they decide to create a save-down to CS6 and this still exists, I'd consider it a bug.
    As for a fix, I think about the only thing that comes to mind is identify the characters causing issues and run a JSFL in CC to rename the library item temporarily to something you know will work fine. Then once back in CS6, run the JSFL opposite to convert them back to what you want. e.g. "this > that" to "this XYZ that" in CC, then "this XYZ that" to "this > that" in CS6. Shouldn't be too hard to map as long as the replacement is unique.

  • Saving Navigation Bar as Library Item with CSS working?

    I have created a simple navigation bar with a separate color for "over" and saved it as a library item. A warning box indicates that the item may not work the same as the original as the CSS may not be copied. What is the simplest method for correcting this?

    If your html docs are linked to an external stylesheet, they will get their styles from the CSS file.
    http://alt-web.com/DEMOS/DW-Link-Stylesheet.shtml
    I highly recommend using server-side includes instead of Library Items for menus.  A server-side include file is easier to maintain by editing one file and uploading it to your server. With Library Items you must make changes to the Library Item and then re-publish all pages containing that item.
    SSI's
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    More on SSI
    http://forums.adobe.com/message/2112460#2112460
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Deleting Library Items with Action Script

    Is it possible to delete the library items at runtime?
    I am loading b.swf in a.swf. After some time b.swf unloads and c.swf is loaded inside a.swf. Though the b.swf unloads but the library items of b.swf remain there and conflict with the library items of c.swf. c.swf has some items with the same name as in b.swf. c.swf shows the movieclips from the library of b.swf with similar name.
    I think the best way would have been to load these assets externally instead of keeping them in the library if we want to destroy them at runtime. But, we have a large number of already constructed files. Ability to destroy the library items at runtime will also help maintain memory usage in limits.

    If you have swf files in your library, that is not a good way to implement a design.  You should load all swf content dynamically at run time.  You cannot delete anything compiled into the file, such as library objects, as far as I know.

  • Using ui5 to send an email with a link in the body of the email

    From my ui5 I hit a button and can successfully open outlook and send an email using the code below.
    location.href = 'mailto:?subject=' +  subj + '&body=' + body;
    If the body of the email is plain text all is well. My problem is that I want to include a link in the body of the email. I have tried using
    <a href = "http:mystuff here" >Click here to open the form</a> in the body but it comes literally with the <a href... in the body.
    Is it possible to place a link into the body of the email and if so how?
    Any suggestions would be greatly appreciated.

    sorry, not possible
    http://stackoverflow.com/questions/5620324/mailto-with-html-body
    https://www.google.com/search?rlz=1C1CHFX_enUS566US566&{google:acceptedSuggestion}oq=mailto+with+mime+type&sourceid=chro…

  • Linking between two IFRAME tags on the same JSP page

    I have a JSP (lets call it �PAGE_A.jsp�) that contains a table� the <TD> tags hold IFRAME tags with an initial �src� referencing a �blank.jsp��

    <!-- Report View Table-->
    <table width="100%">
    <tr>
    <td>
    <iframe id='report_view' name="report_view" width='60%' height="500" frameborder="0" src='blank.jsp'>
    </td>
    <td align="left">
    <iframe id='drilldown_view' name="drilldown_view" width='40%' height="500" frameborder="0" src='blank.jsp'>
    </td>
    </tr>
    </table>

    At a point, the user initiates a call to a servlet, and the output (PAGE_B.jsp) is returned to the first IFRAME �report_view�.
    PAGE_B.jsp contains HTML anchor tags that call the servlet again, this time the return target is the second IFRAME �drilldown_view� :
    ( Some Text).
    Clicking the link produces the desired page to be generated and displayed in the correct IFRAME running IE 5.5, however, the same code under NETSCAPE 7.x causes the �linked� page to open in a new browser window.
    I have deduced that this effect may be due to the NETSCAPE browser �thinking� that the targeted IFRAME (�drilldown_view�) should be a �child� of the IFRAME that contains the link (�report_view�), instead of another IFRAME belonging to PAGE_A.jsp. Under this circumstance, NETSCAPE cannot find the �target�, and thus redirects to a new browser window.
    Q: Is there a way to specify the �parent� of the �iframe� in the anchor�s �target� attribute?

    target in a link shouldn't care, as long as the IFRAME is in the same window... It should be able to find it.
    Otherwise, you could explore using Javascript to get a reference to the object by specifying the path:
    var oIFrame = top.document.getElementById('drilldown_view');
    oIFrame.src = 'somepage.html';
    that could work.. I've used that type of thing before.

  • Sharing some library items with another itunes library on the same computer

    My daughter had pretty much taken over my ipod, and thankfully just received her own for her birthday. I'm not interested in much of her music choice, so I think she should have her own itunes library; however many of the songs in my itunes library are ones she'll want in her library. We share a computer, is there a way I can share some of my songs with her (send copies to her itunes library)?

    No need for a 2nd Itunes library. My daughter has many songs I don't like, however we share the same Itunes library. What I do is create seperate playlists. Go to FILE / new folder... folder can then be named (yours) make another for daughter. Then from main library /music will list all songs.
    Left click and hold on the song to drag it over to your playlist. once over selected playlist it will turn blue, release left mouse. When you plug in you
    IPod click on box sync only checked songs and videos only. From the music tab
    click on circle Selected Playlists, then check your playlist and only your songs will load to your Ipod.
    When adding new songs they will have to be dragged from main music library to your playlists. Songs can be removed from playlists by right clicking on song and selecting delete. the song will be removed from the playlist but remain in the library, a prompt will tell you this. Hope this helps

  • Can you help with D-link and two airport express stations

    I currently run a Dlink 604 wireless and 1 Airport express for iTunes in my front room.
    A Express is also linked to the Dlink via a cable.
    All works fine - G4 dual running OS x 10.3.9
    I would like help with a couple of things please:-
    1. I have no current security on my Express, so anybody can use the net connection through it. How do I change this and still be able to use my tower and laptop?
    2. I have a second Express from work that I would like to use upstairs. It does work but requires me to swap the network to use it for iTunes and then I have no internet.
    It was formatted at work so has different ip numbers etc.
    Can I make this station join my exisitng network?
    As my lap top is wireless will I be able to surf through it upstairs?
    Thanks
    JohnO

    1. You need to open the Express's configuration in Airport Admin Utility and change the Wireless Security settings to WEP or, preferably, WPA or WPA2. When you attempt to connect to the network from your computers, you will be prompted for the password.
    2. The easiest thing to do is to hard reset the second Express and then use the Airport Setup Assistant to configure the second Express to join and extend the first Express's network. To do a hard reset, hold down the reset button until the LED starts flashing rapidly.
    BTW, I know it can work because I have the exact same setup (D-Link DI-604 and two Expresses in an extended wireless network).

  • Doing a "Home" page with a link for two albums. How to do it?

    I´m doing a new Site with this estructure:
    http://homepage.mac.com/guillermo_alvarez/Sites/varios/Imagen%201.jpg
    I want the "Welcome page"(Página Principal) has a link with the albums -Reportajes & Portfolio-
    Please, how can I do it?
    Regards
    Guillermo

    Create a link and choose link to "one of my Pages" or "Una de mis paginas".
    You photopage is there in the popup menu.

  • How do i insert my pdf (with clickable links) into the body of an email?

    I do not want to use mail chimp, copy & paste, or take a screenshot.  Since I have updated my programs I am no longer able to do this and that seems pretty backwards to me.

    What happens if your recipients' email clients do not display images by default? Will your message still get across?
    http://www.emaillabs.com/tools/email-marketing-statistics.html#blockedimages
    Hopefully, you have no more than 100 recipients to your email marketing as AOL imposes a limit.
    The comparison between messages you send and those you have received should be clearly made. Were those messages that you received sent from AOL? Were they sent with the same AOL mail client? Do they use images attached to the message or called from a web server?

  • No Behaviors with Library Items?

    Created a library item and wanted to insert rollover images
    for the items
    but the behaviors menu is greyed out. Can you not use
    behaviors on library
    items? Do I have to delete the asset from the library, rework
    the .html
    file, and then recreate the library item?

    > Can you not use behaviors on library items? Do I have to
    delete the asset
    > from the library, rework the .html file, and then
    recreate the library
    > item?
    That's correct. All behaviors must be applied BEFORE the
    library item is
    created. A well-formed Library item cannot contain
    <html>, <head>, or
    <body> tags, and therefore has no place to put behavior
    javascript or onLoad
    events.
    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
    ==================
    "TxWebdesigner" <[email protected]> wrote
    in message
    news:f2f00h$il4$[email protected]..
    > Created a library item and wanted to insert rollover
    images for the items
    > but the behaviors menu is greyed out. Can you not use
    behaviors on
    > library items? Do I have to delete the asset from the
    library, rework the
    > .html file, and then recreate the library item?
    >

  • Dreamweaver quits when updating library item

    Sometimes it works fine for a week or so but suddenly it
    starts crashing Dreamweaver (CS3) every time I'm updating a library
    item throughout a local site. Any ideas why and how to avoid this?
    Thanks,
    Hanna

    > I really need to understand why library items crash my
    Dreamweaver...
    This may not be possible for you right now. At least SSI
    would get you
    going. But so be it.
    Library item updates do not crash my DW. Sorry.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "HannaB" <[email protected]> wrote in
    message
    news:g4tkc4$nc1$[email protected]..
    > Because I'm a slow learner and Library items work well
    for what I do.
    > Besides,
    > server-side includes are confusing as I can't see them
    on the local site,
    > only
    > when uploaded to the remote server (but please, don't
    get into that at
    > this
    > point. I really need to understand why library items
    crash my
    > Dreamweaver...)
    >

  • Using SSI versus Dreamweaver Library items.

    Murray pointed me at SSI -Server Side Includes in another
    thread. But when I go to one of the books I have on Dreamweaver,
    the author says that my hosting company won't like SSI much because
    it uses more system resources. In response to that, Dreamweaver
    created Library items.
    Is there a reason to pick one method over the other?
    Murray - Was there a reason you didn't recommend Dreamweaver
    Library items for common elements across a lot of pages?
    Thanks,
    Tom

    > Murray - Was there a reason you didn't recommend
    Dreamweaver Library items
    > for
    > common elements across a lot of pages?
    Micha touched on the highpoints. For me, the argument about
    system
    resources on servers is sooo 1980s, and the convenience of
    making a change
    to a single file which is uploaded as opposed to every local
    file needing to
    be uploaded swings the balance. Hosts nowadays accept that
    SSI is the way
    to go, and will never complain. If you have sources that
    continue to press
    that argument, you can be sure that the source is so out of
    date as to be
    useless....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "tomwood2" <[email protected]> wrote in
    message
    news:g5nrav$t$[email protected]..
    > Murray pointed me at SSI -Server Side Includes in
    another thread. But when
    > I go
    > to one of the books I have on Dreamweaver, the author
    says that my hosting
    > company won't like SSI much because it uses more system
    resources. In
    > response
    > to that, Dreamweaver created Library items.
    >
    > Is there a reason to pick one method over the other?
    >
    > Murray - Was there a reason you didn't recommend
    Dreamweaver Library items
    > for
    > common elements across a lot of pages?
    >
    > Thanks,
    >
    > Tom
    >

  • How to use a Spry Menu as a Library item?

    Okay, this is my second post; but, with a different title.
    I made a Spry menu for my Home Page. I saved it and a logo
    together as a library item and placed the library item on a second
    page. The links in the menu work when there is no style sheet
    attached for the Spry meny and the menu appears just as text; but,
    as soon as the .css style sheet for the menu is attached to the
    second page, the menu appears correct except the drop down menus do
    not work. I tried adding a link to the Spry Java Script file as it
    is on the home page; still no luck.
    I tried the same with a test file, which I have since
    removed, stored at the same folder as the home page; same problem.
    How are we suposed to make a workable library item with a
    Spry Menu? Surely this is possible, no?
    Here are the two pages I am referring to:
    Good Page:
    http://iculver.com/
    Bad Page:
    http://iculver.com/pages/AboutUs/Personal_info.html

    Apologies - my mistake. You are correct, and my instructions
    were
    incomplete. That other bit is required too.
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    The comments 'hide' the scripting from validators and older
    browsers, but
    it's still recognized as javascript, since the comments occur
    INSIDE a
    <script> tag.
    > these Spry Menus in Libraries easier to use...)
    It's not so hard once you get all the pieces together.
    1. Create the library item as described.
    2. Make sure that each page that is to carry this library
    item has the
    required links in the head (to the CSS and the js files), AND
    in the body.
    Why not use a template instead? That way, all of these links
    are managed
    for you.
    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
    ==================
    "JustBob" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hummm...
    >
    > Now, don't yell at me, okay? I'm a goLive switcher and
    really a graphic
    > designer, not a coder...
    >
    > So, It seems from the above message that I am to
    establish the links to
    > the
    > script and the css file before inserting the library
    item. But, either
    > way,
    > that didn;t do the trick for me. I did find a bit of
    code in one of the
    > pages
    > that seems to be required.
    >
    > It seems I also need to insert this just before the
    close of the body tag:
    >
    > <script type="text/javascript">
    > <!--
    > var MenuBar1 = new Spry.Widget.MenuBar("MenuBar",
    > {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    > imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    > //-->
    > </script>
    >
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    >
    > I'm sorry I'm such a dope. I probably did something
    funny when I was
    > styling
    > the menu. (I do hope Adobe can accommodate dopes lime
    me, though, and make
    > these Spry Menus in Libraries easier to use...)
    >
    > Thanks for all of your help! Really!
    >

  • Library items not working properly (DW CC)

    Hi
    Working with Dreamweaver CC library items has been easy before. Now, suddenly, something is wrong, and I hope someone has the solution. Example:
    I select a piece of a document, click on New Library Item button (in Assets tab) - a new library item is made, but it jumps the part where I make a name, just automatically names them Untitled1, 2 etc. Right clicking and then Rename is impossible (???).
    And making a library item from scratch is the same - DW automatically gives it a file name Untitled 1, 2 etc. and renaming is impossible.
    What on earth is happening? Please advise

    Once you add a new Library item in the Assets panel, DW gives you the option to name it. See below:
    And even after choosing the default name (Untitled), you can always edit the item by single-clicking it or pressing the Edit button.
    Let us know if you need more help.

Maybe you are looking for

  • Links within portfolio not working for me

    Acrobat 9; Word2007;XP I gave up trying to have links correctly transfer from msword to pdfs.  So I am manually creating each one in the portfolio i'm building. Problem:   The links are not preserved after I save the portfolio and re-open it. Setup: 

  • Upgrading 8.1.7.0 to 8.1.7.4

    Hello, Can anyone tell me where I might find a download for upgrading a 8.1.7.0 Standard Database Server to a 8.1.7.4 Standard Database server, or the full version and where I might find it? I have been able to find downloads of the 8.1.7 software, h

  • Query required for JE posted with the customer

    Dear Experts,                Following is the scenario - Accountant passes Journal Entries once in a while with regard to customers also, i would require a alert for the scenario.                 Whenever the user posts a JE with regard to a customer

  • Control indicators for controlling area 8010 do not exist

    Dear Experts,       When i use PA30 to input some personnel data  startdate is 2003.11.25, occurs error: Control indicators for controlling area 8010 do not exist Message no. KI102 Diagnosis No control indicators exist in fiscal year 2003 for control

  • Delete Request using a Routine in the Scheduler

    Hi all, I have an infocube. Data are loaded into this cube on a <b>weekly basis</b> according to the following requirements. Example: Let's assume <b>we are in April</b>and <b>April has 4 weeks</b>: <b>Week 1 of April</b> - Data for week 1 are loaded