hello, im trying to make
show more/less function to work on quests (GESIOR AAC)
I got this script:
can some1 tell me how i make it show 5 first results by default and when you click more it will show all results (clicking less will get it back to the default) .. thx
show more/less function to work on quests (GESIOR AAC)
I got this script:
PHP:
$main_content .= '<script type="text/javascript"><!--
// show/hide events for home page and other pages that need the show hide function.
function showHide(shID) {
if (document.getElementById(shID)) {
if (document.getElementById(shID+\'-show\').style.display != \'none\') {
document.getElementById(shID+\'-show\').style.display = \'none\';
document.getElementById(shID).style.display = \'block\';
}
else {
document.getElementById(shID+\'-show\').style.display = \'inline\';
document.getElementById(shID).style.display = \'none\';
}
}
}
--></script>';
Last edited: