close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Why aren't my showHideLayers working properly?

Thread began 9/23/2011 8:47 am by stubins430553 | Last modified 9/23/2011 8:47 am by stubins430553 | 511 views | 0 replies


Why aren't my showHideLayers working properly?

I'm a Newbie to creating websites and although I've got a decent way into making my site I have a problem with showHideLayers.

I want to be able to click on an image and play an animation in a div, but as I have 10 animations to play I want to show/hide them at appropriate times. I've attached a couple of images to demonstrate what I want to happen and what I'm currently experiencing.

I've created a css rule using Block-display-none and changed the showHideLayers to reflect this (I changed the show/hide from 'visibility' to 'object display' so that the hidden divs wouldn't occupy space on the web page and push visible divs further down the page):

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 ( {; v=(v=='show')?'block':(v=='hide')?'none':v; }

obj.display=v; }


This should mean that when I click on my image the animations should be displayed in the same place because the other divs aren't physically on the page. (Or this is how I understand it)

What I'm getting is a 'stacking' effect and I'm not sure why this is happening or how to fix it.

As I mentioned before I'm a newbie so please don't get too technical with the answers =] But I thank you in advance for your help.

Here's a link to the webpage: AnimTest.html#

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...