if(document.all){  //判断浏览器是否为IE
var content = document.selection.createRange();  //将选区的内容赋值到变量里
}
else{
var content = window.getSelection(); 
content.text 
= content.toString();
}

var str = content.text;    //选择的内容 
posted on 2008-01-25 14:09 湘江夜游神 阅读(360) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

Locations of visitors to this page