|
发表于 2013-4-22 17:49:00
|
显示全部楼层
在js中添加如下- $(function() {
- $('#attSendDoc a').live('mouseover', function() {
- var $this = $(this);
- if ($this.attr('name').indexOf('_docDisplay') != -1) {
- $this.attr('onclick', 'function(){return;}');
- }
- });
- $('#attSendDoc a').live(
- 'click',
- function() {
- var $this = $(this);
- if ($this.attr('name').indexOf('_docDisplay') != -1) {
- var docpath = $this.attr('docpath');
- var fileID = $this.attr('fileID');
- var url = justep.Doc
- .getdocServerAction(this.docPath,
- '/repository/file/view/' + fileID
- + '/last/content');
- var pic = document.getElementById("image1");
- pic.src = url;
- }
- });
- });
复制代码 |
|