|
|
|
จาวาสคริบ ไม่ทำงาน ช่วยดูให้หน่อยครับ งงมาก โค็จไรตรงหมดแล้ว |
|
|
|
|
|
|
|
Code (PHP)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function printDate()
{
var today = new Date();
var day=today.getDate();
var month = today.getMonth() + 1;
var year = today.getFullYear().toString();
var box=document.forms[0].DateBox;//this is where we want to print the date
if ( ( month /10 ) < 1 )
{
month=("0" + month).toString(); //add the leading 0 -- looks more professional
}
if ( (day/10)<1)
{
day=("0" + today.getDate()).toString();//add the leading 0 -- looks better
}
box.value=month + " - " + day + " - " + year;
}
function printTime()
{
var box = document.forms[0].DateBox; //this is where we want to print the date
var thetime=new Date();
if (thetime.getMinutes() / 10 <1 )
{
box.value=thetime.getHours() + " : " + "0" + thetime.getMinutes();
}
else
{
box.value=thetime.getHours() + " : " + thetime.getMinutes();
}
}
// End -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>###---THAIWATERFITER---###</title>
<style type="text/css">
<!--
body {
background-image: url();
text-align: center;
}
.Font10 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
}
.price {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;
color: #F00;
}
.right_menu {
font-family: "Times New Roman", Times, serif;
font-size: 13px;
font-style: normal;
font-weight: normal;
color: #00C;
}
.menu_1 {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.font18 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #00F;
}
.font18 strong {
font-size: 14px;
}
-->
</style>
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Drew Diller | http://www.dillerdesign.com/Licensed under: MIT License
*/
/**
* DD_roundies, this adds rounded-corner CSS in standard browsers and VML sublayers in IE that accomplish a similar appearance when comparing said browsers.
* Author: Drew Diller
* URL: http://www.dillerdesign.com/experiment/DD_roundies/
* Version: 0.0.1a / December 2, 2008
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_roundies/#license
*
* Usage:
* DD:roundtangle.addRule('#doc .container', 5); // selector and radius
* DD:roundtangle.addRule('.box', 5, true); // selector, radius, and optional addition of border-radius code for standard browsers.
**/
var DD_roundies = {
ns: 'DD_roundies',
createVmlNameSpace: function() { /* enable VML */
if (document.namespaces && !document.namespaces[this.ns]) {
document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml');
}
},
createVmlStyleSheet: function() { /* style VML, enable behaviors */
/*
Just in case lots of other developers have added
lots of other stylesheets using document.createStyleSheet
and hit the 31-limit mark, let's not use that method!
further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx
*/
var style = document.createElement('style');
document.documentElement.firstChild.insertBefore(style, document.documentElement.firstChild.firstChild);
if (style.styleSheet) { /* IE */
var styleSheet = style.styleSheet;
styleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
styleSheet.addRule(this.ns + '\\:shape', 'position:absolute; left:0px; top:0px; z-index:-1;');
this.styleSheet = styleSheet;
}
else {
this.styleSheet = style;
}
},
/**
* This is the method to use in a document.
* @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container'
* @param {Integer} radius - REQUIRED - the desired radius for the box corners
* @param {Boolean} standards - OPTIONAL - true if you also wish to output -moz-border-radius/-webkit-border-radius/border-radius declarations
**/
addRule: function(selector, radius, standards) {
if (this.styleSheet.addRule) { /* IE */
this.styleSheet.addRule(selector, 'behavior:expression(DD_roundies.roundifyElement.call(this, ' + radius + '))'); /* seems to execute the function without adding it to the stylesheet - interesting... */
}
else {
this.styleSheet.appendChild(document.createTextNode(selector + ' {border-radius:' + radius + 'px; -moz-border-radius:' + radius + 'px; -webkit-border-radius:' + radius + 'px;}'));
}
},
roundifyElement: function(rad) {
this.style.behavior = 'none';
this.style.zoom = 1;
if (this.currentStyle.position == 'static') {
this.style.position = 'relative';
}
this.vml = document.createElement(DD_roundies.ns + ':shape');
/* methods */
var self = this;
this.interceptPropertyChanges = function() {
switch (event.propertyName) {
case 'style.border':
case 'style.borderWidth':
case 'style.padding':
self.applyVML.call(self);
break;
case 'style.borderColor':
self.updateVmlStrokeColor.call(self);
break;
case 'style.backgroundColor':
self.updateVmlFill.call(self);
};
};
this.applyVML = function() {
this.runtimeStyle.cssText = '';
this.updateVmlFill();
this.updateVmlStrokeWeight();
this.updateVmlStrokeColor();
this.updateVmlDimensions();
this.updateVmlPath();
this.hideSourceBorder();
};
this.hideSourceBorder = function() {
this.runtimeStyle.border = 'none';
var sides = ['Top', 'Left', 'Right', 'Bottom'];
for (var i=0; i<4; i++) {
this.runtimeStyle['padding' + sides[i]] = parseInt(this.currentStyle['padding' + sides[i]]) + parseInt(this.realBorderWidth) + 'px';
}
};
this.updateVmlStrokeWeight = function() {
this.realBorderWidth = parseInt(this.currentStyle.borderWidth, 10);
if (this.realBorderWidth.toString() == 'NaN') {
this.realBorderWidth = 0;
}
this.halfRealBorderWidth = Math.floor(this.realBorderWidth/2);
this.vml.strokeweight = this.realBorderWidth + 'px';
this.vml.stroked = !(this.realBorderWidth === 0);
};
this.updateVmlStrokeColor = function() {
this.vml.strokecolor = this.currentStyle.borderColor;
};
this.updateVmlFill = function() {
this.runtimeStyle.backgroundColor = '';
if (this.currentStyle && (this.currentStyle.backgroundImage != 'none' || (this.currentStyle.backgroundColor && this.currentStyle.backgroundColor != 'transparent'))) {
this.vml.filled = true;
if (!this.vml.filler) {
this.vml.filler = document.createElement(DD_roundies.ns + ':fill');
this.vml.appendChild(this.vml.filler);
}
if (this.currentStyle.backgroundImage) {
var bg = this.currentStyle.backgroundImage;
this.vml.filler.src = bg.substr(5, bg.lastIndexOf('")')-5);
this.vml.filler.type = 'tile';
}
if (this.currentStyle.backgroundColor) {
this.vml.filler.color = this.currentStyle.backgroundColor;
}
this.runtimeStyle.background = 'none';
}
else {
this.vml.filled = false;
}
};
this.updateVmlDimensions = function() {
if (!this.dim) {
this.dim = {};
}
this.dim.w = this.offsetWidth;
this.dim.h = this.offsetHeight;
this.vml.style.width = this.dim.w;
this.vml.style.height = this.dim.h;
this.vml.coordorigin = -this.halfRealBorderWidth + ' ' + -this.halfRealBorderWidth;
this.vml.coordsize = (this.dim.w+this.realBorderWidth) + ' '+ (this.dim.h+this.realBorderWidth);
};
this.updateVmlPath = function() {
this.vml.path = 'm0,'+rad+'qy'+rad+',0l'+(this.dim.w-rad)+',0qx'+this.dim.w+','+rad+'l'+this.dim.w+','+(this.dim.h-rad)+'qy'+(this.dim.w-rad)+','+this.dim.h+'l'+rad+','+this.dim.h+'qx0,'+(this.dim.h-rad)+'xe';
};
this.handlePseudoHover = function() {
setTimeout(function() { /* wouldn't work as intended without setTimeout */
self.runtimeStyle.backgroundColor = '';
self.updateVmlFill.call(self);
self.updateVmlStrokeColor.call(self);
}, 1);
};
/* set up element */
this.insertBefore(this.vml, this.firstChild);
this.applyVML();
/* add change handlers */
if (this.nodeName == 'A') {
this.attachEvent('onmouseleave', this.handlePseudoHover);
this.attachEvent('onmouseenter', this.handlePseudoHover);
}
this.attachEvent('onpropertychange', this.interceptPropertyChanges);
this.attachEvent('onresize', function() {
self.updateVmlDimensions.call(self);
self.updateVmlPath.call(self);
});
}
};
DD_roundies.createVmlNameSpace();
DD_roundies.createVmlStyleSheet();
</script>
<script type="text/javascript">
<!--
DD_roundies.addRule('.littleDD', 15);
//-->
</script>
<style>
.littleDD {
padding:15px;
background:#FFD;
border:1px solid #333;
}
.littleDD li {
padding-top:2px;
padding-bottom:2px;
}
.style1 {color: #FF0000}
</style>
</head>
<body onLoad="show_clock(); return printDate()">
<table width="10%" border="0">
<tr>
<td width="1%" > </td>
<td width="10%" bordercolor="#0776dd" bordercolordark="#0033FF" border="1" bgcolor="#0776dd"><table width="100%" border="0">
<tr>
<td height="21" width="1000" bgcolor="#FFFFFF"><table width="1000" height="50" border="0" bgcolor="#00FFFF">
<tr>
<td><img src="../pic/Head_Beer/Head1.jpg" width="1000" height="60" border="0" usemap="#Map" /></td>
</tr>
</table>
<table width="1000" height="245" border="0">
<tr bgcolor="#00FFFF">
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','240','src','../pic/Head_Beer/Beer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../pic/Head_Beer/Beer' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="240">
<param name="movie" value="../pic/Head_Beer/Beer.swf" />
<param name="quality" value="high" />
<embed src="../pic/Head_Beer/Beer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="240"></embed>
</object></noscript></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0">
<tr>
<td width="16%" align="center" valign="top" background="../pic/UnderTheSea-background.jpg"><!-- นำ CODE ไปตกแต่งแก้ไขรูปแบบได้แล้วแต่คุณเลยครับ -->
<script src="http://www.clocklink.com/embed.js"></script><script type="text/javascript" language="JavaScript">obj=new Object;obj.clockfile="0001-blue.swf";obj.TimeZone="ICT";obj.width=150;obj.height=150;obj.Place="";obj.wmode="transparent";showClock(obj);</script>
<form name="stats">
<input type="text" readonly="readonly" name="DateBox" size="11" onMouseOut="printDate();">
</input>
</form>
<p><script language="javascript" src="js/liveclock.js"></script></p>
<hr />
<div class="littleDD">
<table width="110" height="52">
<tr>
<td align="left" class="right_menu">มือถือ</td>
<td align="right" class="right_menu">081-414-7292,</td>
</tr>
<tr>
<td align="left" class="right_menu">089-113-5388,</td>
<td align="right" class="right_menu">081-551-5028</td>
</tr>
<tr>
<td align="left" class="right_menu">โทร</td>
<td align="right" class="right_menu">02-426-4748</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu">e-mail</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu" ><font color="#FF0000"> [email protected]</font></td>
</tr>
</table>
</div>
<hr />
</td>
<td width="84%" bgcolor="#FFFFFF"><p align="left"><img src="../pic/Head_Beer/pure4.jpg" width="300" height="30" /></p>
<p> </p>
<script language="javascript">
function fncSubmit()
{
if(document.form2.txtTo.value == "")
{
alert('กรุณากรอกอีเมล์ผู้รับ');
document.form2.txtTo.focus();
return false;
}
if(document.form2.address.value == "")
{
alert('กรุณากรอกหัวข้อ');
document.form2.address.focus();
return false;
}
if(document.form2.txtDescription.value == "")
{
alert('กรุณารายละเอียด');
document.form2.txtDescription.focus();
return false;
}
if(document.form2.txtsender.value == "")
{
alert('กรุณากรอกชื่อผู้ส่ง');
document.form2.txtsender.focus();
return false;
}
if(document.form2.txtFormEmail.value == "")
{
alert('กรุณากรอกอีเมล์ผู้ส่ง');
document.form2.txtFormEmail.focus();
return false;
}
document.form2.submit();
}
</script>
<form action="forget_sendmail.php" method="post" name="form2" onSubmit="JavaScript:return fncSubmit();">
<table width="343" border="1">
<tr>
<td>อีเมล์ผู้รับ</td>
<td><div align="left">
<input name="txtTo" type="text" id="txtTo" value = "[email protected]" size="35" readonly>
</div></td>
</tr>
<tr>
<td>หัวข้อ</td>
<td><div align="left">
<input name="txtSubject" type="text" id="txtSubject" value = "ลืม Password" size="20" readonly />
</div></td>
</tr>
<tr>
<td>รายละเอียด</td>
<td><div align="left">
<textarea name="txtDescription" cols="30" rows="4" id="txtDescription"></textarea>
<span class="style1">* </span></div></td>
</tr>
<tr>
<td>ชื่อผู้ส่ง</td>
<td><div align="left">
<input name="txtsender" type="text" id="txtsender" size="30">
<span class="style1">* </span></div></td>
</tr>
<tr>
<tr>
<td>อีเมล์ผู้ส่ง</td>
<td><div align="left">
<input name="txtFormEmail" type="text" size="35">
<span class="style1">*</span></div></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Send">
<label>
<input type="reset" name="reset" id="reset" value="cancel" />
</label></td>
</tr>
</table>
<br>
<br>
<br>
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table></td>
</tr>
<tr>
<td class="menu_1" align="center">ร้านไทยน้ำกรอง 29/38 หมู่บ้านอลิชา 1 หมู่ 2 แขวงบางมด เขตทุ่งครุ กทม. 10140 โทร 02-426-4748 มือถือ 081-414-7292</td>
</tr>
</table></td>
<td width="12%" > </td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="34,6,120,53" href="../index.html" />
<area shape="rect" coords="138,11,201,50" href="product.html" />
<area shape="rect" coords="218,3,320,54" href="order.html" />
<area shape="rect" coords="337,7,469,48" href="payment.html" />
<area shape="rect" coords="489,12,652,49" href="logistic.html" />
<area shape="rect" coords="665,5,769,50" href="aboutus.html" />
<area shape="rect" coords="784,5,873,50" href="contact.html" />
</map></body>
</html>
บรรทัดที่ 345-380
Tag : PHP, JavaScript
|
|
|
|
|
|
Date :
2010-09-11 03:44:26 |
By :
beer656 |
View :
1042 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ลองส่ง id ไปครับ...
<form id="form2" name="form2" method="post" action="" onsubmit="javascript:return fncSubmit();">
|
|
|
|
|
Date :
2010-09-11 04:09:40 |
By :
t-monroe |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ยังไม่ได้เลย ครับ ส่งค่าแล้วก็ยังไม่ได้
|
|
|
|
|
Date :
2010-09-11 15:23:36 |
By :
beer656 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|