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,082 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

10 Experts available now in Live!

Get 1:1 Help Now