2 Replies Latest reply on Dec 18, 2013 7:59 PM by stephenhawk

    Can't update background color of library item.

    stephenhawk

      I used a library item as a nav bar on my site pages.  I have changed the background color of the pages, but a different, older, background color is overriding the new one.  I get this error message:

       

      making this change would require changing code that is locked

       

      Maddeningly, if I recreate the link, the lbi gets changed, not the page html.

       

      Here is the offending code:

       

      <!-- #BeginLibraryItem "/public/navbar/navbar.lbi" -->

                      <!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">

                      <style type="text/css">

      body {

          background-color: #7d142c;

      }

                      </style>

                    <script type="text/javascript">

      function MM_swapImgRestore() { //v3.0

        var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

      }

      function MM_preloadImages() { //v3.0

        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

          var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

          if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

      }

       

      function MM_findObj(n, d) { //v4.01

        var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

          d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

        for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

        if(!x && d.getElementById) x=d.getElementById(n); return x;

      }

       

      function MM_swapImage() { //v3.0

        var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

         if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

      }

                      </script>

                      <body onload="MM_preloadImages('navbar2-ads-over.jpg','navbar2-brochures-over.jpg','navbar2-cat alogs-over.jpg','navbar2-exhibits-over.jpg','navbar2-logos-over.jpg','navbar2-web-over.jpg ','navbar2-about-over.jpg')">

                      <table width="521" border="0" cellspacing="0" cellpadding="0">

                        <tr>

                          <td><a href="adspage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','navbar/navbar2-ads-over.jpg',1)"><img src="navbar/navbar2-ads.jpg" alt="Ads" name="Image8" width="47" height="40" border="0" id="Image8" /></a><a href="brochurespage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','navbar/navbar2-brochures-over.jpg',1)"><img src="navbar/navbar2-brochures.jpg" alt="Brochures" name="Image9" width="83" height="40" border="0" id="Image9" /></a><a href="catalogspage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','navbar/navbar2-catalogs-over.jpg',1)"><img src="navbar/navbar2-catalogs.jpg" alt="Catalogs" name="Image10" width="83" height="40" border="0" id="Image10" /></a><a href="exhibitspage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','navbar/navbar2-exhibits-over.jpg',1)"><img src="navbar/navbar2-exhibits.jpg" alt="Trade Show Exhibits" name="Image11" width="70" height="40" border="0" id="Image11" /></a><a href="logospage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','navbar/navbar2-logos-over.jpg',1)"><img src="navbar/navbar2-logos.jpg" alt="Logos" name="Image12" width="61" height="40" border="0" id="Image12" /></a><a href="websitespage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','navbar/navbar2-web-over.jpg',1)"><img src="navbar/navbar2-web.jpg" alt="Web Sites" name="Image13" width="93" height="40" border="0" id="Image13" /></a><a href="aboutus.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','navbar/navbar2-about-over.jpg',1)"><img src="navbar/navbar2-about.jpg" alt="About Us" name="Image14" width="84" height="40" border="0" id="Image14" /></a></td>

                        </tr>

                      </table>

                    <!-- #EndLibraryItem -->