Jump to content

[SOLVED] A Simple Frequently Asked Questions (FAQs)


yakabod

Recommended Posts

How do I create my own simple FAQ?  I just want it to look like a link, and then when clicked expand with the answer. And then it will collapse when they choose another question.  Any way of doing this or anyone know a script? I looked in hotscripts.com and couldn't find it.

This is was back in the '03 years.  Will this still be compatible with firefox, opera, IE7 & 6, etc??

 

<script language=javascript type='text/javascript'>
function hideDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hideShow').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'hidden';
}
else { // IE 4
document.all.hideShow.style.visibility = 'hidden';
}
}
}

function showDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hideShow').style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'visible';
}
else { // IE 4
document.all.hideShow.style.visibility = 'visible';
}
}
}
</script> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.