<style type="text/css">
.photoresize {
max-width:600px;
myimg:expression(onload=function(){
this.style.width=(this.offsetWidth > 600)?"600px":"auto"}
);
}
</style>
.neirong img{max-width:680px;myimg:expression(onload=function(){this.style.width=(this.offsetWidth > 680)?"680px":"auto"});}
#upscroll li{ height:20px; line-height:20px;}
本文链接
<!--
function checkMobile(){
var sMobile = document.mobileform.mobile.value
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(sMobile))){
alert("不是完整的11位手机号或者正确的手机号前七位");
document.mobileform.mobile.focus();
return false;
}
}
//-->
</SCRIPT>
本文链接
<script type="text/javascript">
//第一种方法:
function DX(n) { //金额大写转换函数
if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))
return "数据非法";
var unit = "千百拾亿千百拾万千百拾元角分", str = "";
n += "00";
var p = n.indexOf('.');
if (p >= 0)
n = n.substring(0, p) + n.substr(p + 1, 2);
unit = unit.substr(unit.length - n.length);
for (var i = 0; i < n.length; i++)
str += '零壹贰叁肆伍陆柒捌玖'.charAt(n.charAt(i)) + unit.charAt(i);
return str.replace(/零(千|百|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
}
//第二种方法:
function i2c(n) {
if (typeof (n) == "number") {
if (-1 == n.toString().indexOf(".")) {
return seti2c(n);
} else {
var i, istr, f, fstr, a, rstr;
a = n.toString().split(".");
i = a[0];
f = a[1];
istr = seti2c(i);
fstr = setf2c(f);
rstr = istr + "零" + fstr;
rstr = rstr.replace(/零+/g, "零");
return rstr;
}
} else {
return "---";
}
}
function seti2c(n) {
var ns = n.toString();
var tempstr = "";
for (var i = 1; i < ns.length + 1; i++) {
switch (i) {
case 1:
var t = ns.substr(ns.length - i, 1);
if (t != "0") {
tempstr = t + "圆" + tempstr;
} else {
tempstr = "圆" + tempstr;
}
break;
case 2:
var t = ns.substr(ns.length - i, 1);
if (t != "0") {
tempstr = t + "拾" + tempstr;
} else {
tempstr = "0" + tempstr;
}
break;
case 3:
var t = ns.substr(ns.length - i, 1);
if (t != "0") {
tempstr = t + "佰" + tempstr;
} else {
tempstr = "0" + tempstr;
}
break;
case 4:
var t = ns.substr(ns.length - i, 1);
if (t != "0") {
tempstr = t + "仟" + tempstr;
} else {
tempstr = "0" + tempstr;
}
break;
case 5:
var t = ns.substr(ns.length - i, 1);
if (t != "0") {
tempstr = t + "万" + tempstr;
} else {
tempstr = "万" + tempstr;
}
break;
case 6:
var t = ns