Click here to Skip to main content
15,881,898 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: PHP - select box Pin
Bradml12-Apr-07 1:39
Bradml12-Apr-07 1:39 
QuestionHow to set browser to full screen on loading ? Pin
Anthony Yeap11-Apr-07 6:48
Anthony Yeap11-Apr-07 6:48 
AnswerRe: How to set browser to full screen on loading ? Pin
Guffa11-Apr-07 7:01
Guffa11-Apr-07 7:01 
AnswerRe: How to set browser to full screen on loading ? Pin
Bradml11-Apr-07 14:56
Bradml11-Apr-07 14:56 
GeneralRe: How to set browser to full screen on loading ? Pin
Anthony Yeap12-Apr-07 6:44
Anthony Yeap12-Apr-07 6:44 
AnswerRe: How to set browser to full screen on loading ? Pin
RichardGrimmer13-Apr-07 6:03
RichardGrimmer13-Apr-07 6:03 
AnswerRe: How to set browser to full screen on loading ? Pin
Vasudevan Deepak Kumar13-Apr-07 7:02
Vasudevan Deepak Kumar13-Apr-07 7:02 
QuestionJava Code Pin
calumogg11-Apr-07 6:32
calumogg11-Apr-07 6:32 
Hi, I have a photography website and am trying to set up a shop for it, but I have no knowledge of web programming, I have found a shop that uses java script (I don't want anything more advance)
The shop has a list of items that have a checkbox next to them, when you click the checkbox its adds up the total cost of the order in a box at the bottom, but being a photography site I need the checkboxes to be drop down lists so the customer can select the size of print that they want. I don't know how to make each list option have a cost attached to it. Below is the source code for the shop, if anyone can understand what I am talking about and is willing to help I would be very greatfull.

<script language="JavaScript">

var Cost, Grand_Total;

function tally()
{
Cost = 0;
if (document.orderform.Item1.checked) { Cost = Cost + 26.15; }
if (document.orderform.Item2.checked) { Cost = Cost + 26.10; }
if (document.orderform.Item3.checked) { Cost = Cost + 26; }

document.orderform.Total.value = "£" + Cost;
}

function pound (amount)
{
amount = parseInt(amount * 100);
amount = parseFloat(amount/100);
if (((amount) == Math.floor(amount)) && ((amount - Math.floor (amount)) == 0))
{
amount = amount + ".00"
return amount;
}
if ( ((amount * 10) - Math.floor(amount * 10)) == 0)
{
amount = amount + "0";
return amount;
}
if ( ((amount * 100) - Math.floor(amount * 100)) == 0)
{
amount = amount;
return amount;
}
return amount;
}

</script>
<form method="post" name="orderform" action="mailto:me@mydomain.com" enctype="text/plain"">
<table border="0">
<tr>
<td colspan="2"><p>
<input type="checkbox" name="Item1" value="Item1_chosen" onclick="tally()" />
Item One (&pound;26.15) </p>
<p>
<input type="checkbox" name="Item2" value="Item2_chosen" onclick="tally()" />
Item Two (&pound;26.10) </p>
<p>
<input type="checkbox" name="Item3" value="Item3_chosen" onclick="tally()" />
Item Three (&pound;26) </p>
<p>
<label>
<select name="prints">
<option>Option</option>
<option value="Print1">Print 1</option>
<option value="Print2">Print 2</option>
<option value="Print3">Print 3</option>
</select>
</label>
</p>
<p>&nbsp;</p></td>
</tr>
<tr>
<td> Total</td>
<td><input type="text" name="Total" value="&pound;0" size="7" /></td>
</tr>

<tr>
<td>Contact Name:</td>
<td><input name="Name" type="Text" id="Name" size="20" /></td>
</tr>
<tr>
<td>Address</td>
<td><input type="Text" name="Street" size="20" maxlength="40" /></td>
</tr>
<tr>
<td>City</td>
<td><input type="Text" name="City" size="20" maxlength="20" /></td>
</tr>
<tr>
<td>Post Code</td>
<td><input type="text" name="Code" size="9" maxlength="10" /></td>
</tr>
<tr>
<td>Email Address</td>
<td><p>
<input type="Text" name="Email" size="30" maxlength="30" />
</p> </td>
</tr>
<tr>
<td colspan="2" height="3"><hr /></td>
</tr>
<tr>
<td colspan="2" align="center"><input name="Submit" type="Submit" value="Send Order" />
Or
<input name="RESET" type="reset" value="Reset Order" /></td>
</tr>
</table>
</form>
AnswerRe: Java Code Pin
Bradml11-Apr-07 14:55
Bradml11-Apr-07 14:55 
AnswerRe: Java Code Pin
Christian Graus11-Apr-07 15:56
protectorChristian Graus11-Apr-07 15:56 
QuestionJ2EE/Java Integration with Sharepoint. Pin
Vikram.....11-Apr-07 2:58
Vikram.....11-Apr-07 2:58 
AnswerRe: J2EE/Java Integration with Sharepoint. Pin
Magnus Salgo12-Apr-07 0:13
Magnus Salgo12-Apr-07 0:13 
AnswerRe: J2EE/Java Integration with Sharepoint. Pin
abcdpqr1019-Jan-10 12:51
abcdpqr1019-Jan-10 12:51 
QuestionISAPI Rewrite Pin
L Viljoen11-Apr-07 2:53
professionalL Viljoen11-Apr-07 2:53 
AnswerRe: ISAPI Rewrite Pin
L Viljoen11-Apr-07 4:26
professionalL Viljoen11-Apr-07 4:26 
QuestionFirefox Javascript Nightmare Pin
L Viljoen11-Apr-07 1:41
professionalL Viljoen11-Apr-07 1:41 
AnswerRe: Firefox Javascript Nightmare Pin
Guffa11-Apr-07 2:06
Guffa11-Apr-07 2:06 
AnswerRe: Firefox Javascript Nightmare Pin
Paddy Boyd11-Apr-07 2:54
Paddy Boyd11-Apr-07 2:54 
AnswerRe: Firefox Javascript Nightmare Pin
L Viljoen11-Apr-07 2:57
professionalL Viljoen11-Apr-07 2:57 
GeneralRe: Firefox Javascript Nightmare Pin
Guffa11-Apr-07 4:16
Guffa11-Apr-07 4:16 
GeneralRe: Firefox Javascript Nightmare Pin
L Viljoen11-Apr-07 4:21
professionalL Viljoen11-Apr-07 4:21 
QuestionRegister Javascript Pin
tadhg8811-Apr-07 1:13
tadhg8811-Apr-07 1:13 
AnswerRe: Register Javascript Pin
Guffa11-Apr-07 2:10
Guffa11-Apr-07 2:10 
GeneralRe: Register Javascript Pin
tadhg8811-Apr-07 4:13
tadhg8811-Apr-07 4:13 
GeneralRe: Register Javascript Pin
RichardGrimmer11-Apr-07 5:48
RichardGrimmer11-Apr-07 5:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.