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,088 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Free website editor 10 554
Pattern Matching LF in Dreamwever CS5 2 276
Create recordset using Dreamweaver PHP and MS SQL 2008 4 534
Coldfusion connection with xampp2 5 225
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

929 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now