• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

help on script!

Darkend

New Member
Joined
Mar 24, 2012
Messages
164
Reaction score
1
hello, im trying to make
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>';
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
 
Last edited:
Back
Top