yakabod Posted October 6, 2007 Share Posted October 6, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/72068-solved-a-simple-frequently-asked-questions-faqs/ Share on other sites More sharing options...
~n[EO]n~ Posted October 6, 2007 Share Posted October 6, 2007 You can use Javascript to do that, Hide DIV and SHOW Div, search in google you will find lot of them... Quote Link to comment https://forums.phpfreaks.com/topic/72068-solved-a-simple-frequently-asked-questions-faqs/#findComment-363236 Share on other sites More sharing options...
yakabod Posted October 6, 2007 Author Share Posted October 6, 2007 So I should search for, 'Javascript FAQ Scripts?' Quote Link to comment https://forums.phpfreaks.com/topic/72068-solved-a-simple-frequently-asked-questions-faqs/#findComment-363238 Share on other sites More sharing options...
~n[EO]n~ Posted October 6, 2007 Share Posted October 6, 2007 hmmm.. http://www.google.com.hk/search?complete=1&hl=en&q=Javascript+Show%2FHide+DIV&btnG=Google+Search&meta=&aq=o www.webmasterworld.com/forum91/441.htm www.willmaster.com/blog/css/show-hide_floating_div.html Read here... Quote Link to comment https://forums.phpfreaks.com/topic/72068-solved-a-simple-frequently-asked-questions-faqs/#findComment-363242 Share on other sites More sharing options...
yakabod Posted October 6, 2007 Author Share Posted October 6, 2007 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> Quote Link to comment https://forums.phpfreaks.com/topic/72068-solved-a-simple-frequently-asked-questions-faqs/#findComment-363246 Share on other sites More sharing options...
~n[EO]n~ Posted October 6, 2007 Share Posted October 6, 2007 I gave you google link too.. check there too and see here also http://www.experts-exchange.com/Web/Web_Languages/Q_20920333.html Quote Link to comment https://forums.phpfreaks.com/topic/72068-solved-a-simple-frequently-asked-questions-faqs/#findComment-363257 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.