/* Created by HolySavior of iFusion
Hows My Post v1 ZB
This may not be Edited at all!
*/
function word_count() {
var post_words = document.forms['posting'].post.value.split(/ /g); var count = 0;
for(i=0;i 2) count++;
var iObj = document.getElementById('count');
iObj.innerHTML = "
"+ count+" words over 3 letters";
if(count >= 40){ iObj.innerHTML += "Hows My Post? Excellent Post!";
}else if (count >=10){ iObj.innerHTML += "Hows My Post? Good Post!";
} else if(count < 10){ iObj.innerHTML += "Hows My Post? You can do better than that!";
}
}
function check_count(){
var post_words = document.forms['posting'].post.value.split(/ /g); var count = 0;
for(i=0;i 2) count++;
if(count < 6){
return confirm("Post Length Alert!!\r\n\r\nYour post has only " + count + " words with over three letters. Are you sure you want to add it?");
}
}
var hows_my_post = {
init: function(){
if(location.href.match(/post/) || location.href.match("msg")){
document.getElementById("c_post").innerHTML += "Hows My Post?
";
}