FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
Which is your favourite weblog Script?
Chat script
Styling <abbr> in IE
What's the best PHP Wiki script?
Comments to be Added Page
Need A Custom Script Developed !!! Payin Good !!!!
Weblog Free Script - Maian Weblog
Email form script - 50 FRIH$
Problem with perl script
executing a perl script from within a script
Adding Comments to a Webpage
Help required with Captcha script
My own Time Ago Calculation Script in PHP
PHP Comment Script
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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