Spency
11-26-2012, 11:21 AM
Good day!
A kind member helped me out with a popup I was trying to create for a test taking suite.
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
var twoletters = "First Take Z Quiz, Then Take Y Quiz"
var now = new Date().getSeconds(); // returns 0-59
if (now%2 == 0) { // even number
var twoletters = "First Take Y Quiz, Then Take Z Quiz";
}
alert (twoletters);
/*]]>*/
</script>
Now I understand that as an Alert, I can't change the title of the popup nor can I change the font size of the alert. Is this true? Is there any way I can alter at least the body text of the popup?
Thank you very much.
A kind member helped me out with a popup I was trying to create for a test taking suite.
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
var twoletters = "First Take Z Quiz, Then Take Y Quiz"
var now = new Date().getSeconds(); // returns 0-59
if (now%2 == 0) { // even number
var twoletters = "First Take Y Quiz, Then Take Z Quiz";
}
alert (twoletters);
/*]]>*/
</script>
Now I understand that as an Alert, I can't change the title of the popup nor can I change the font size of the alert. Is this true? Is there any way I can alter at least the body text of the popup?
Thank you very much.