Anyone want to help?????

admin

Administrator
Staff member
i really need help. I started this script but I'm missing someting and don't know how to finish it. This is my script

<html>
<head>
<title>JavaScript Generated Page</title>


<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script language="JavaScript">
var openingTag = null;
var closingTag = null;

var firstName = prompt ("Please enter your first name.","First Name");

var lastName = prompt ("Please enter your last name", "Last Name");

var size = confirm ("Click \"OK\" for large text. Click \"Cancel\" for small text.");
if (size == true) {openingTag = "<h1>"; closingTag = "</h1>";}
if (size == false) {openingTag = "<h6>"; closingTag = "</h6>";}

var color = prompt ("Please enter a color for the background: red, yellow, blue, purple, black, white, or green. Don't use capital letters or other colors.","Color");

var backcolor = prompt ("Please your favorite color: red, yellow, blue, purple, black, white, or green. Don't use capital letters or other colors.","Color");

</script>

</head>

<script language="JavaScript">
document.write("<body text=\"" + color + "\" bgcolor=\"" + backcolor + "\">");
</script>

<div align="center">
<script language="JavaScript">
document.write(openingTag + firstName + "<br>" + lastName + closingTag);
</script>
</div>

</body>

<script language="JavaScript">
<!--

window.open = SymRealWinOpen;

//-->
</script>

</html>


Of more, the ari鑢e-plan color will correspond to the preferred color of the netsurfer. Attention! The welcoming message must be the following one: ?Hello, first name nomDeFamille, good morning (if it before noon), good afternoon (if it is between noon and 18 hours) or good evening (after 18 hours) ?

How can I do this.......:confused:
 
Back
Top