MX2004 Keeps Inserting Rollover Code

I have CS4 and won't make the switch in the middle of a project. I've been using DW for many, many years and know that it has a mind of its own. At this point I'm pretty frustrated because even though I have declared an external javascript file containing the rollover code the pages keep adding the same code when the template is updated. Itss driving me crazy and bloats the code.
Here's the template head:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>A Web Site</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="resource-type" content="document">
<meta name="revisit-after" content="3 Days">
<meta name="rank" content="1">
<meta name="robots" content="index,follow">
<meta name="distribution" content="Global">
<meta name="rating" content="Safe For Kids">
<link href="../images/styles.css" rel="stylesheet" type="text/css">
<SCRIPT type="text/javascript" src="../js/menu.js"></SCRIPT>  <<<<<<< NOTE THE CALL
</head>
<body>
I've done this for years. The template calls the javascript whether needed on the page or not. Here's a page that calls the code and it is adding the rollover code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/secondary.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>A Web Site</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<script language="JavaScript" 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>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="resource-type" content="document">
<meta name="revisit-after" content="3 Days">
<meta name="rank" content="1">
<meta name="robots" content="index,follow">
<meta name="distribution" content="Global">
<meta name="rating" content="Safe For Kids">
<link href="images/styles.css" rel="stylesheet" type="text/css">
<SCRIPT type="text/javascript" src="js/menu.js"></SCRIPT>
</head>
<body onLoad="MM_preloadImages('images/menu/streaming_b2_over.gif','images/menu/streaming_b3_ov er.gif','images/menu/streaming_b4_over.gif','images/menu/streaming_b5_over.gif')">

Nope. I didn't touch the rollover code. I just cut and pasted the menu system into the new document based on the template. BUT then it failed again and I realized that it did so after adding <script> tags for tool tips. So, I created a new document from the template and cut and pasted the menu code back in and saved the document. Once again any changes to the template are updating and without adding the rollover code back in. I don't know what MX is thinking but I wish that it would stop trying to think for me  I have C4 in the box and just haven't made the switch. This is not the time to learn new stuff.

Similar Messages

  • How do I prevent DW from inserting rollover code in a template update?

    Hi there
    I have looked through the help and searched online, and found
    only one reference this question, and it was never answered.
    I have a template, and in the non-editable region of the
    header, I have a link to a .js file containing the javascript
    rollover effect code.
    However, when I update the html files based on this template,
    DW inserts the rollover code into a <script> in the head of
    the html file, which is redundant and bloats the file.
    I can't find a way to disable this behaviour.
    Can anyone give me any guidance?
    ...Mike

    > I can't find a way to disable this behaviour.
    There isn't. Sorry. It is a known bug in DW.
    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
    ==================
    "Photos for Life" <[email protected]> wrote
    in message
    news:f4a0t0$o6n$[email protected]..
    > Hi there
    >
    > I have looked through the help and searched online, and
    found only one
    > reference this question, and it was never answered.
    >
    > I have a template, and in the non-editable region of the
    header, I have a
    > link
    > to a .js file containing the javascript rollover effect
    code.
    >
    > However, when I update the html files based on this
    template, DW inserts
    > the
    > rollover code into a <script> in the head of the
    html file, which is
    > redundant
    > and bloats the file.
    >
    > I can't find a way to disable this behaviour.
    >
    > Can anyone give me any guidance?
    >
    > ...Mike
    >

  • How to prevent the insertion of rollover code when using a template

    Hi there
    I am designing a site in Dreamweaver using templates. These templates use rollover images. The code that DW uses for the rollover I have abstracted out into a separate javascript file, which is linked to in the header. Further, I am using window.onload() to call the preloader instead of the <body> onload event. All this works fine.
    The problem is that every time I make a change to the template, DW re-inserts the rollover code into the head of the HTML file, and reinserts the preloader code into the <body> tag.
    Now, I have found a solution to the <body> tag problem by changing the preload flag from 1 to 0 in the link created; it seems that DW uses this flag as in indication of whether to insert the onload code into the boday tag.  So that part is fixed.
    But I can't find any way to keep DW from inserting the unecessary and redundant rollover code into the head of the generated HTML files.  Is there a way I can prevent this from happening?
    ...Mike  

    Just don't externalize your js until the very last step before publishing.
    You can let the dev team know about this here -
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • I keep getting error code u44m1p34 when I try to update CC2014.  I've tried uninstalling several times completely to no avail.  Any ideas?  It's really bugging me now!

    I keep getting error code u44m1p34 when I try to update CC2014.  I've tried uninstalling several times completely to no avail.  Any ideas?  It's really bugging me now!

    Error 2, 4 (or -4), 6, 1000, 9006
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps underAdvanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.

  • TS3694 i keep getting error  code 3194 i just want update to5.1.1 on my ipad help

    i keep getting error  code 3194 i just want update to5.1.1 on my ipad help

    Here you go:  http://lmgtfy.com/?q=iphone+error+3194

  • I keep getting  (error code -8003) when I try to empty my trash. Any idea how to overide it?

    I cannot empty my tarsh and keep getting  (error code -8003). Is there any way to override it and get ride of my trash?

    Greetings,
    If you dragged items from a TimeMachine backup drive to the trash then that is most likely the cause of the issue.  Do not move files from the TimeMachine backup into the trash (http://support.apple.com/kb/HT1427).
    If your backup drive only contains a timemachine backup then you will want to reformat that drive:
    http://support.apple.com/kb/TS1600
    Keep in mind that before you reformat the backup drive that you remove any files you wish to keep to your computer. 
    Cheers.

  • Cannot install Illustrator CS5 on a Mac: Keep getting exit code 6 error

    I have been having trouble installing CS5 Design Premium on Mac OS X Version 10.7.5 all day. Having been reading forums and finally was able to get everything to install (except Illustrator) by uninstalling everything, running Mac CS5 Cleanup Utility, then reinstalling.  Still cannot install Illustrator for some reason. Tried contacting Adobe Online chat but they won't help me because CS5 is no longer supported. Keep getting Exit Code 6 (see below). Any ideas would be greatly appreciated!
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 19 error(s), 14 warning(s)
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    ERROR: 51 Unable to preserve original file at "/Library/Application Support/Adobe/PDFL/9.9/Fonts/AdobeFanHeitiStd-Bold.otf" Error 0
    ERROR: 51 Command ARKDeleteFileCommand failed.
    ERROR: Payload {3E7A8DA8-0298-42F2-B927-4DB00E2F8FEE} has an action "repair" but no resultState
    ERROR: The following payload errors were found during install:
    ERROR:  - Adobe WinSoft Linguistics Plugin CS5: Install failed
    ERROR:  - Adobe Bridge CS5: Install failed
    ERROR:  - HIL Help Search: Install failed
    ERROR:  - AdobeColorCommonSetCMYK: Install failed
    ERROR:  - AdobeColorJA CS5: Install failed
    ERROR:  - Adobe Illustrator CS5: Failed due to Language Pack installation failure
    ERROR:  - AdobeColorEU CS5: Install failed
    ERROR:  - AdobeColorCommonSetRGB: Install failed
    ERROR:  - Adobe CSXS Extensions CS5: Install failed
    ERROR:  - PDF Settings CS5: Install failed
    ERROR:  - Adobe Linguistics CS5: Install failed
    ERROR:  - Adobe Illustrator CS5_AdobeIllustrator15en_USLanguagePack: Install failed
    ERROR:  - AdobePDFL CS5: Install failed
    ERROR:  - Required Common Fonts Installation: Install failed
    ERROR:  - AdobeColorNA CS5: Install failed

    Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Mylenium

  • How to insert abap code in LSMW generated program?

    hi,
    i m working on LSMW for loading data in SAP
    i would like to insert abap code into the generated program....
    it's because i have 1 BKPF segment (header data), 2 BSEG segments, but i cannot define rules by customizing for the second BSEG segment(LSMW doesn't permitt).
    i already tried to insert code directly into the program, but obviously it disapears at each time i generate the program.
    i saw that apparently a code insertion has already be made into this program and the subject of this insertion is to define rules for the second BSEG (exactly what i want to do....) and this modification doesn't disapear at new prog generation.....
    Any idea ?

    Hi
    Why dont you use the FORM provided by LSMW
    To use this please do the following
    1.Goto option <b>Maintain Field Mapping and Conversion Rules</b>
    2.Goto menu <b>EXTRAS->LAYOUT->Form Routines</b>
      Here you will now get many options like
       Global Data
       Begin of Transaction
    Begin of Processing
    Begin of Record
      like wise the End of these also.
    Please put a breakpoint and check where you want to insert your code.
    Note:
    This is only for the Conversion Program and does not affect the main program used to update the Standard Tables
    Hi , I was reading your earlier post .. It seems that you have worked on EMIGALL. Consider a similar situation, it is like writing the code in the events till CALL01...
    Thanks
    DOminic
    Message was edited by: Dominic  Pappaly

  • How can I insert a code to switch between channels?

    I’ve got a HP4263A LCR meter which is being used with an ER-18 device to get multiple channel data acquisition, when I go to getting started to trigger the device, but this VI do not have an icon to change the channel how can I insert a code to switch between channels?

    I am just trying to use the drivers developed by NI for this device, but I don't know how to work on them to obtain data from three points, or three channels which I am using from an ER-16 device. So all what I have is the driver VI for the HP4263A.the only VI I can use is getting started, because whe I try to run any other one, this message appears:
    Error -1073807346 occurred at VISA Write in HP4263A Self-Test.vi.
    Possible reasons:
    VISA: (Hex 0xBFFF000E) The given session or object reference is invalid.
    your help would be very helpful
    thanks

  • Help with inserting counter code

    hi friends, i want to put an invisible counter on my website but i cant seem to do it. i got the counter code from statcounter and i also downloaded a trial version of bbedit. in bbedit when i do a search for the code i have to replace bbedit comes up with nothing on the search, im not html savy in the slightest...can somebody walk me through this step by step.

    If you want to insert the code by hand, just open each page.html file and scroll to the end. You will see a <body><html> tag. Just copy and paste your code before the <body> tag and the save.
    But if you want an easy and automatic way to do this for your pages...just download iComment 3.0. Launch it and paste your StatCounter code in the appropriate window. Then point iComment to your Sites folder and click Go. It will place the StatCounter code on every page in your site.
    If you don't want to do the Haloscan commenting, you can just leave that blank in iComment.
    James
    http://www.dirtdoog.com/

  • My ipod classic keeps showing error code 1439 and says its corrupted and nothing on the site that it says to do is working has anyone else had the problem

    my ipod classic 160 gb keeps showing error code 1439 and says it is corrupted and i have done everything the article on it says to do and still reads the same thing. has anyone else had the same problem if so what can i do to fix it. the ipod is only 2 months old

    If it is under warranty, bring it in to Apple Store, most of our suggestions, comes from the Apple support site..
    Besides Restoring the iPod, there are winsocks which have conflict with iTunes, perhaps, disable those plugins and disconnect the Internet and stop antivirus, while you are Restoring or Syncing the iPod.

  • Can anyonehelp, i have updated to ios7 which has put a passcode on my ipad, i keep getting the code wrong, i have ne itunes of cloud sync

    can anyonehelp, i have updated to ios7 which has put a passcode on my ipad, i keep getting the code wrong, i have no itunes or cloud sync

    Duncanray10 wrote:
    ...  I keep getting a message stating my ipad needs software to be 10.6.3. ...
    You are misreading it... it is referring to iTunes on your computer...
    Download and Install the Latest version of iTunes onto your computer...
    http://www.apple.com/support/itunes/install/

  • I keep getting error code-3000 error at itunes store try again later?

    I keep getting error code -3000 error at itunes store try again later  what the heck?

    Hi luvthesuns,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you are getting a few error codes. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    iTunes: Possible iTunes Store errors - Apple Support
    iTunes Store reporting error 0x80090318
    Apple software on Windows: May see performance issues and blank iTunes Store
    Troubleshooting Home Sharing - Apple Support
    Cheers,
    Mario

  • HT203164 while burning audio cd keep getting error code 4265 what is the problem

    Trying to burn a audio cd on itunes keep getting error code 4265 please help

    Oh man it looks like a problem with the web server.
    Its an error that happens on SAP, even my dad reported an error like this to me but i wasn't able to solve it.
    What i find is that its an error with browser incompatibility,
    Check this http://scn.sap.com/message/10338540

  • I keep getting error code 3121

    keep getting error code 3121 when trying to burn a cd in itunes I've never had a problem burning them from windows media player before any help would be appreciated

    Any updates?
    Don't forget to mark the post that solved your issue as &quot;Answered.&quot; By marking the Answer you are enabling users with similar issues to find what helped you. Lewis Renwick - IT Professional

Maybe you are looking for

  • Using a Power Mac G5 as a Gateway

    I have Mac OS X Server v10.6.8 Snow Leapord server installed on an XServe and have things set up in the following order: ISP -> Router -> Switch -> Server and other machines I also have an old Power Mac G5 and bought a DGE-530T Ethernet Card, so now

  • I am getting 100s of emails from Apple Support Communities. How can I stop that????

    I have been trying to load my ITunes music to my IPhone 5 and had posted a question on ASC. Since then I have been deluged with e-mails, despite going on my preferences and clicking No to all the questions. How can I stop that PLEASE. MB

  • External hard drive not working on iMac

    I have a lacie external harddrive that i used on a pc.  i am trying to use it on my new iMac but I can't access files or transfer files from the external hard drive to my iMac or vice versa.  How can I fix this problem?  Should I format it to work on

  • Printing PDF's In Preview Not Working Well

    I use a ScanSnap scanner to scan several hundred page documents and then print them in whole or in part using Preview. There used to be an option to have multiple "images" (if I remember the phrasing correctly) per page (2, 4, 8, 16 etc) but now that

  • I want to sync calendar 's iphone to computer M

    Help me please