Version: 1.00, by dymo
Developer Last Online: Jun 2009
Version: 2.2.x
Rating:
Released: 04-29-2002
Last Update: Never
Installs: 5
Is in Beta Stage
No support by the author.
this is another one of those scriptlets i had collected that i modified to provide a bit of fun for my users but its giving me a bit of a problem, its completely functional, just the response to the question is being parsed to the top of the page rather than under the question
add a template called 8ball
and insert the following
PHP Code:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
}
}
}
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Error you did not post any "+shortFieldName+" , try again.");
return false;
}
else
return true;
}
// End -->
</script>
<title>$bbtitle - Ask the 8Ball?</title>
I like this hack alot and i have added more than a couple hundred different sayings to this 8 Ball. If someone else can create this hack to work with my 8 ball that i made with photoshop and insert the message inside the ball that would be awesome. That would be cool if there was a fading effect when you clicked the buttons after typing in your question and the page doesnt refresh to see you answer. Right when you click the button the 8 ball will fade to the answer. Is anyone with me on this one and willing to help?
Originally posted by BigJohnson Ya but can the answer go somewhere else besides below the footer. I hate that part.
Why below. I said above and you can see on my page that problem just to move up eval("dooutput(\"".gettemplate("8ball")."\");");
PHP Code:
<?
require("./global.php");
if(!$bbuserinfo[userid]) {
eval("dooutput(\"".show_nopermission()."\");");
}
eval("dooutput(\"".gettemplate("8ball")."\");");
if (isset($requiredquestion)) {
$answers = array( "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Yes</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">No</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Of Course</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Never</font>",
"Maybe",
"Theres a Chance",
"What do you think I am, psychic?",
"Sometimes",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Im quit sure about that!</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Thats probably true</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Hell no..</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Dont even think about it....</font>",
"Maby , maby not",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">You may count on it</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">The chanse is quit as big as seeing Jay Leno in a
g-string</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">I would not even concider it..</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">I must say yes...</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Damnd right ...</font>",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Sure thing.</font>.",
"<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Hahah your kidding right?</font>",