这里是我写的 <div id="content">[!--newstext--]</TD></TR></TBODY></TABLE></div>
一直提示无[!--newstext--]
下面是正文。帮看一下。谢谢
<div class="mm" id="bodyTd"> <div id="printBody" style="word-break:break-all;"> <br/><div align="center"><h1 class="aTitle">电子琴程序</h1></div> <table width="96%" height="34" align="center" style=" border-bottom: #AFBCC2 1px dashed;border-top: #AFBCC2 1px dashed"> <tr> <td align="center">[日期:2011-12-27 ] [来源:本站编程 作者:佚名] [字体:<a href="javascript:ContentSize(16)">大</a> <a href="javascript:ContentSize(0)">中</a> <a href="javascript:ContentSize(12)">小</a>] <a href="/membernewsadd.aspx"><strong>(投递新闻)</strong></a></td> </tr> </table> <div align="center"><script type="text/javascript"><!-- google_ad_client = "pub-1153854311382382"; /* 468x15, 创建于 10-1-13 */ google_ad_slot = "0677189950"; google_ad_width = 468; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> <div id="content">;******这一个商业板的程序,跟外面卖的电子琴一个, <BR>;******有高中低音,可以自己通过按键弹奏乐曲 <BR> KEYBUF EQU 30H <BR> STH0 EQU 31H <BR> STL0 EQU 32H <BR> TEMP EQU 33H <BR> ORG 0000H <BR> LJMP START <BR> ORG 000BH <BR> LJMP INT_T0 <BR> ORG 0030H <BR>START: CLR P3.7 //将峰鸣器置低电平 <BR> <a href="http://shop.picavr.com/" title="东哥电子商城,提供单片机学习开发板,实验板, 编程器,仿真器,无线发射接收模块,各种电子元器件.">MOV</a> TMOD,#01H //设置定时器T0工作于方式1 <BR> SETB ET0 //开T0中断允许 <BR> SETB EA //开中断允许总开关 <BR>WAIT: <a href="http://shop.picavr.com/" title="东哥电子商城,提供单片机学习开发板,实验板, 编程器,仿真器,无线发射接收模块,各种电子元器件.">MOV</a> P1,#0FFH//将P1口会置高电平 <BR> CLR P1.4 //将P1.4清0 <BR> <a href="http://shop.picavr.com/" title="东哥电子商城,提供单片机学习开发板,实验板, 编程器,仿真器,无线发射接收模块,各种电子元器件.">MOV</a> A,P1 //读取P1口的值 <BR> ANL A,#0FH//将P1口的值与0FH相与,保留低四位,屏蔽高四位 <BR> XRL A,#0FH//将所得的值与0FH相异或,可得到按键值 <BR> <BR> JZ NOKEY1//判断按下的是不是1号键 <BR> LCALL DELY10MS//延时再判断(防止是误键) <BR> <a href="http://shop.picavr.com/" title="东哥电子商城,提供单片机学习开发板,实验板, 编程器,仿真器,无线发射接收模块,各种电子元器件.">MOV</a> A,P1 <BR> ANL A,#0FH <BR> XRL A,#0FH <BR> JZ NOKEY1 <BR></div> <div align="center"><script type="text/javascript"><!-- google_ad_client = "pub-1153854311382382"; /* 468x15, 创建于 10-1-13 */ google_ad_slot = "0677189950"; google_ad_width = 468; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> </div> <div style="padding-right:20px;text-align:right;clear:both"> 阅读:<span id="news_hits"></span> 次<br/> 录入:<a href="../../memberProfile.aspx?id=1" target="_blank">admin</a><br/><br/> 【 <a href="../../mail.aspx?ID=2791" target="_blank">推荐</a> 】 【 <a href="javascript:doPrint()">打印</a> 】 </div> <table width="97%" cellpadding="0" cellspacing="0" style="clear:both"> <tr> <td style="font-size:14px;" align="center" height="50"><input type="button" name="Submit" onClick='copyToClipBoard()' value="复制本页文章地址,传给QQ/MSN上的好友" width="100" height="16"> <script language="javascript"> function copyToClipBoard(){ var clipBoardContent=""; clipBoardContent+=document.title; clipBoardContent+=""; clipBoardContent+=this.location.href; window.clipboardData.setData("Text",clipBoardContent); alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友"); } </script>
<script> document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n参考链接:"+location.href; clipboardData.setData("text", text); } }, 100 ) } </script></td> </tr> </table> <div style="padding-left:20px;clear:both"> 上一篇:<a href="../../news/2011-12/2790.htm">AD1549的LCD12864液晶显示</a><br/> 下一篇:<a href="../../news/2012-01/2800.htm">DS12887时钟程序</a> </div>
|