function number(index1){
var numberstring="一二三四五六七八九十"
if(index1 ==0) {document.write("十")}
if(index1 <10){
document.write(numberstring.substring(0+(index1-1),index1))}
else if(index1 <20 ){
document.write("十"+numberstring.substring(0+(index1-11),(index1-10)))}
else if(index1 <30 ){
document.write("二十"+numberstring.substring(0+(index1-21),(index1-20)))}
else{
document.write("三十"+numberstring.substring(0+(index1-31),(index1-30)))}
}var today1 = new Date()
var month = today1.getMonth()+1
var date = today1.getDate()
var day = today1.getDay()
number(month)
document.write("月")
number(date)
document.write("日")
</script>
通过iframe来调用天机预报的结果<iframe allowtransparency="true" frameborder="0" width="290" height="96" scrolling="no" src="//tianqi.2345.com/plugin/widget/index.htm?s=1&z=1&t=0&v=0&d=2&bd=0&k=&f=&ltf=009944&htf=cc0000&q=1&e=1&a=1&c=54511&w=290&h=96&align=center"></iframe>
<iframe width="420" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&icon=1&num=5"></iframe>
绝对管用 样式可以调整 有不懂的可以问我
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)