hi admin or others i want to use this script to display trading comment with number of comment in post eg 54=”veryhot” please check this script and correct error thanks
<script>
function myFunction()
{
var count = <?php echo $comment_num; ?>;
if (count>=10) { document.getElementById( "Trending!!" );}
else if ( count >= 6) { document.getElementById( "Super HOT!!" );}
else if ( count >=5 ) { document.getElementById( "Extra HOT!!" );}
else if ( count >=4 ) { document.getElementById( "HOT!!" );}
else if ( count >=3 ) { document.getElementById( "New!" );}
else if ( count >=2 ) { document.getElementById( "New!" );}
else if ( count >=1 ) { document.getElementById( "New!" );}
else { document.getElementById( "1.0" );
}
</script>
this is the idea i have but not good in js please help me out