|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: |
<html>
<head>
<title>
Welcome to Typewriter and Mouse Store 2.0
</title>
<script>
var totalCart = 0;
var mouseCount = 1;
var typewriterCount = 1;
var mousePurchased = 0;
var typewriterPurchased = 0;
function mousePurchase() {
mousePurchased++;
mouseCount++;
totalCart=totalCart+10;
document.getElementById('totalCost').innerText=totalCart;
};
function typewriterPurchase() {
typewriterPurchased++;
typewriterCount++;
totalCart=totalCart+50;
document.getElementById('totalCost').innerText=totalCart;
};
function checkoutFunction(){
if (document.checkout.customerName.value=='') {
alert('Please fill in Customer Name.');
document.checkout.customerName.focus();
} else if (mousePurchased==0 && typewriterPurchased==0) {
alert('You have not purchased anything');
} else {
document.checkout.totalAmount.value=totalCart;
document.checkout.totalMouse.value=mousePurchased;
document.checkout.totalTypeWriter.value=typewriterPurchased;
document.checkout.submit();
};
};
function resetForms() {
mousePurchased=0;
mouseCount=1;
typeWriterPurchased=0;
typeWriterCount=1;
totalCart=0;
document.getElementById('mouseInfo').innerText=0;
document.getElementById('totalCost').innerText=totalCart;
document.getElementById('typewriterInfo').innerText=0;
alert('You reset your cart.');
};
</script>
</head>
<body>
<span style='color:black;font-size:30px;'>The Mouse and Typewriter Store</span>
<br/>
<br/>
<form name="checkout" action="checkout.php" method="POST">
<input type='hidden' name='totalAmount'>
<input type='hidden' name='totalMouse'>
<input type='hidden' name='totalTypeWriter'>
</br>
</br>
</br>
<a href='javascript:mousePurchase()'> <img src="http://131.123.8.32/44044/mouse.gif" onclick="mouseInfo.innerText=mouseCount"/> </a>
</br>
<span> The mouse is $10 </span>
</br>
</br>
</br>
<a href='javascript:typewriterPurchase()'><img src="http://131.123.8.32/44044/typewriter.gif" onclick="typewriterInfo.innerText=typewriterCount"/> </a>
</br>
<span> The typewriter is $50 </span>
</br>
</br>
</br>
<input type='button' value='Check Out' onclick='checkoutFunction()' />
<input type='button' value='Reset' onclick='resetForms()' />
</br>
</br>
</br>
First and Last Name: <input name="customerName" />
</br>
</br>
</br>
Total mice in cart: <span id='mouseInfo'>0</span>
</br>
</br>
</br>
Total typewriters in cart: <span id='typewriterInfo'>0</span>
</br>
</br>
</br>
The Total Cost is $ <span id='totalCost'>0</span>
</form>
</body>
</html>
|
Advertisement
| Hall of Fame |