There are 2 things i need help with html

There are 2 things i need help with html

Page 1 of 1

2 Replies - 1571 Views - Last Post: 28 October 2005 - 06:04 AM

#1 danlew  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 10-October 05

There are 2 things i need help with html

Posted 28 October 2005 - 04:17 AM

There are 2 things i need help with

1.when i hit send it brings up outlook express automatically, and goes through the windows system, I dont want it to do that?


2. I want clients to be able to upload there image, how do i add this option in the html?


<html>

<head><script LANGUAGE="Javascript">

<!-- Begin
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function setCookie(name, value, expires) {
document.cookie = name + "=" + escape(value) +
((expires != null) ? "; expires=" + expires.toGMTString() : "")
+ "; path=/";
}
function setName() {
var expdate = new Date ();
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
var prompt=i = document.Mail.name.value;
setCookie("name", i, expdate);
}
function getName() {
if(getCookie("name") != null) {
document.Mail.Name.value = getCookie("emailname");
}
}
function getInfo() {
var now= new Date();
document.Mail.Info.value = "Browser: " + navigator.userAgent;
document.Mail.Info.value += "Date:" + now;
}
function checkMultiple() {
if (getCookie("emailsent") == 'true') return true;
else return false;
}
function process() {
setCookie("emailsent", "true");
with (document.Mail) {
if (Subject.selectedIndex == 1) action = "mailto:yourtalkingtome@hotmail.com?subject=TJS - Comment";
else if (Subject.selectedIndex == 2) action = "mailto:yourtalkingtome@hotmail.com?subject=TJS - Question";
else if (Subject.selectedIndex == 3) action = "mailto:yourtalkingtome@hotmail.com?subject=TJS - Suggestion";
else if (Subject.selectedIndex == 4) action = "mailto:yourtalkingtome@hotmail.com?subject=TJS - Broken Link";
else action = "mailto:yourtalkingtome@hotmail.com?subject=TJS - Other";
}
}
function formCheck() {
var passed = false;
with (document.Mail) {
if (Subject.selectedIndex == 0) {
alert("Please pick a subject.");
Subject.focus();
}
else if (Name.value == "") {
alert("Please inlcude your name.");
Name.focus();
}
else if (checkMultiple()) {
if (confirm("You just sent an e-mail from this form, are you sure you want to send another?")) {
process();
passed = true;
}
}
else {
process();
passed = true;
}
}
return passed;
}
// End -->
</script>

<title>JavaFILE</title>
<base target="leftframe">
</head>

<body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start-->


<table WIDTH="75%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
<tr>
<font
FACE="ARIEL,HELVETICA" SIZE="-1"><p align="center"></font></a><font
FACE="ARIEL,HELVETICA" SIZE="-1"></p>
<p align="center"><font FACE="ARIEL" SIZE="4"> <a HREF="yourtalkingtome@hotmail.com?subject=TJS - Mail"></a>.
<br>
</p>
<form NAME="Mail" ACTION="mailto:yourtalkingtome@hotmail.com?subject=TJS - Form"
METHOD="POST" ENCTYPE="text/plain" onsubmit="return formCheck();">
<input type="hidden" name="Info" value><table BORDER="0" CELLPADDING="10" CELLSPACING="0">
<tr>
<td>*Business Name: <input TYPE="text" NAME="Name" onchange="setName()" size="20"> </td><td>*Phone: <input TYPE="text" NAME="Phone" onchange="setName()" size="20"> </td><td>*Email: <input TYPE="text" NAME="Email" onchange="setName()" size="20"> </td><td>*Website URL: <input TYPE="text" NAME="Website URL" onchange="setName()" size="20"> </td>
<td ALIGN="RIGHT">Subject: <select NAME="Subject" size="1">
<option SELECT>Type of Advertising Required</option>
<option>1. Basic Display Listing</option>
<option>2. Basic Listing Special 1 Year</option>
<option>3. Animated Flash Banner</option>
<option>4. Home Page Position</option>
<option>5. Category Colour Position</option>
</select> </td>
</tr>
<tr>
<td COLSPAN="2">Business Description : <br>
<br>
<textarea NAME="Comments, Suggestions" COLS="50" ROWS="6">
</textarea> </td>
</tr>
</table>
<div align="center"><center><table>
<tr>
<td align="center"><input TYPE="submit" VALUE="Send"> <script LANGUAGE="Javascript">
<!-- Begin
getInfo();
getName();
// End -->
</script></font></font></td>
</tr>
</table>
</center></div>
</form>
</td>
</tr>
</table>
<!--content stop-->
</body>
</html>

Is This A Good Question/Topic? 0
  • +

Replies To: There are 2 things i need help with html

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: There are 2 things i need help with html

Posted 28 October 2005 - 05:46 AM

Outlook Express is likely being launched because it is the default on your system. How would you like the email to be sent?
Was This Post Helpful? 0
  • +
  • -

#3 danlew  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 10-October 05

Re: There are 2 things i need help with html

Post icon  Posted 28 October 2005 - 06:04 AM

ok so that questions covered silly me,

and of course one last thing if i want to add an image uploader how do i do this?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1