Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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,124 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

722 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