测试一下csdn的代码显示功能
2009-10-01 23:41
471 查看
/** * @author admin */ function MouseDown(nsEvent){ var theEvent = nsEvent ? nsEvent : window.event; var locString = "x = " + theEvent.screenX + "/ny = " + theEvent.screenY; var clientString = "x = " + theEvent.clientX + "/ny = " + theEvent.clientY; var eventType = theEvent.type; document.writeln(locString + "<br />"); //这句如果写到第七行之前,第七行就不能用了 document.writeln(clientString + "<br />"); document.writeln(location + "<br />"); document.writeln(eventType + "<br />"); // document.writeln(window.event.type + "<br />"); // document.writeln(theEvent.type + "<br />"); //这样写firefox可以通过,但是IE就不行,提示permission denyed } function KeyDown(nsEvent) { var theEvent = nsEvent ? nsEvent : window.event; var keyValue = theEvent.keyCode; document.writeln("You press the key value of:" + keyValue + "<br />"); document.writeln(theEvent.type + "<br />"); } document.onmousedown = MouseDown; document.onkeydown = KeyDown;
相关文章推荐
- 测试一下动态棋谱 这个垃圾CSDN博客, 编辑的时候显示正常, 发表之后只有代码, 妈的
- 试验一下CSDN的插入代码功能
- [测试]看看博客园的代码显示功能如何
- 测试一下csdn的blog功能
- CSDN 插入代码测试,为什么没有显示呢
- CSDN 插入代码测试,为什么没有显示呢
- 测试一下CSDN BLOG的编辑功能
- 测试一下新空间的代码支持功能
- 测试一下CSDN的代码插入
- 测试一下在CSDN博客中插入代码
- csdn测试编辑器功能写文本代码
- 测试CSDN的源码高亮显示功能
- 测试一下csdn blog的代码高亮
- 测试一下新功能,贴代码
- csdn功能真强大,做美化代码用的tmp
- Linux下实现流水灯等功能的LED驱动代码及测试实例
- 如何在CSDN博客中的所贴的代码进行【代码块】显示
- 如何在CSDN博客中所贴的代码进行【代码块】显示
- 今天测试了一下MYSQL的功能
- Blog 喜迁CSDN,测试一下先