Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
2,147 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
3 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

876 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