FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Script for comments

 


Donutey
I've browsed around hotscripts.com for a while and I haven't been able to find exactly what I'm looking for.

I'm not able to find a script that would be expandable and collapsable, where when a user visited the page it would show "Add comment", then when the user clicks on it, it would expand and show the comments along with the form to add the comment. Preferably I would only have to add a PHP include to the page.

I was wondering if someone has seen a script like this on hotscripts or another place, or if they've made one I'll pay FRIH for it.

Thanks.
Mamsaac
I'm looking exactly for this script you talk about.

I would love anyone who posts the information
Jamatu
Here's some javascript I use to show and hide a comment box on my website.

Javascript
Code:
<script language="javascript" type="text/javascript">
function toggleCBox() {
   if (document.getElementById('panel').style.display == 'none') {
      document.getElementById('panel').style.display = 'block';
   }
   else {
      document.getElementById('panel').style.display = 'none';
   }
}
</script>


Link to show/hide the comments
Code:
<a href="javascript:toggleCBox();">Comment Box</a>


Div container where you can place the comments + form etc
Code:
<div style="display:none;" id="panel"><p>Blah blah blah random put all your stuff here</p></div>


That's it, it's probably not search engine friendly but if your not worried about that then it gets the jobe done fine.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.