1 //javascript脚本
<script>
2 window.onload = function () {
3 var aid = document.getElementById("aid").href;
4
5 var div1 = document.getElementById("div1");
6 var html = '<object classid="clsid:4F26B906-2854-11D1-9597-00A0C931BFC8" codebase="" id="Pbd1" name="Pbd1" width="100%" height="990px">';
7 html += ' <param name="_cx" value="5080" />';
8 html += '<param name="_cy" value="5080" />';
9 html += '<param name="DisplayUrl" value="' + aid + '" />';
10 html += '</object>';
11 div1.innerHTML = html;
12 };
13 </script>
1
//html 代码 此处a 标签的href 可以是从db中取,也可以是其它的地方传过来
<a href="../PIPDI/11.PDI" id="aid"></a>
2 <center>
3 <div id="div1">
4
13 </div>
14 </center>