- Code: Select all
<div>
Thanks in advance. Any help would be appreciated in getting this to work as I love this plugin
Here is the website in question: http://verrytechnical.com
Here is the javascript I'm using to show/hide a div:
- Code: Select all
<script language="javascript">
<!--
var state = 'none';
function showhide(layer_ref) {
if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
//-->
</script>
here is the code in the index.php where the FCG is:
- Code: Select all
<p><a href="#" onclick="showhide('div1');">Show/hide Popular Articles Slider</a></p>
<div id="div1" style="display: none;"><?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>









