Solved

Why doesn't function MM_showHideLayers() { //v9.0 (from DW CS3) work with pages created created in DW 8?

Posted on 2008-06-25
4
2,094 Views
Last Modified: 2010-08-05
I upgraded DW8 to DW CS3.
I reopened some files from my site and while adding a few more layers, the program removed the older versions of javascript an replaced them with new ones which don't work. For example CS3 replaces
this js with the one below it
--------------------
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
________________  
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
So, why won't version 9.0 work in this page? It works in pages that have fewer instances of showHide layers. I have removed it and reinstalled version 6 and it works again, but when I make an addition to the page, it re-inserts version 9.0 Is there someplace in CS3 I can go to change the fact that CS3 will update these pages to version 9.0  on its own?
Thanks
0
Comment
Question by:lingua-guy6591
  • 2
4 Comments
 

Expert Comment

by:mvanthof
ID: 21874451
Search in your adobe CS3 dir for MM
there are some directories called MM one of them  contains the script so you can adjust.
0
 

Expert Comment

by:mvanthof
ID: 21874498
or take a look at:
\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\Snippets\JavaScript\readable_MM_functions
0
 

Accepted Solution

by:
lingua-guy6591 earned 0 total points
ID: 21875887
Hi mvanthof,
and thanks for that. I found it and opened it,   I also went back to my copy of DW8 to compare that file to CS3's copy and they are identical. So I don't know why CS3 inserts v9.0 instead of v6.0. and how to fix this.  In the meantime, I'm just reinserting v6.0 in the <head> and it i working.    I'd like to ask Adobe, but they are functionally useless past purchase.   Thanks for your idea.



0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to setup "Site" setup , in Dreamweaver 5 441
Issue when emailing and there is a space 7 394
thumbnails in content 11 294
Video Not Showing 8 99
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question