Use with Show/Hide Div

Home » Forums » Website Font » Use with Show/Hide Div


Ambassador
1 post

Trying to use Website Font with an existing site that has multiple show/hide divs handled by javascript.

How do I configure the sIFR javascript so that only the div that is visible is "drawn" by sIFR?

Here's the current show/hide script:

function showSec(n) {
hideSec();
if (ng5) document.getElementById('sec1').style.visibility = "visible";
else if (ns4) document.layers["sec1"].visibility = "show";
else if (ie4) document.all["sec1"].style.visibility = "visible";
if (ng5) document.getElementById('sec'+n).style.visibility = "visible";
else if (ns4) document.layers["sec"+n].visibility = "show";
else if (ie4) document.all["sec"+n].style.visibility = "visible";
}


Ambassador
1,058 posts

You should also use the Get Support link at the top of the page to get help from the programmers who may not see this post.


Temporary User
5,410 posts

Hi Ryan,

I'm sure you could probably modify the sIFR JavaScript to include some conditional statements determining if the element is visible or not, in order to execute the original sIFR javascript code, or not.

Have a great day. CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.