js中document.write()使用方法
?<script>
???????????? var hrf = window.location.href;
??????
??? if(hrf.indexOf('change')>0){
????? document.write('<body>');
?????????????? document.write('恭喜發財');
????? document.write('</body>');
??? }else{
??? document.write('<body background="images/jjkan/backgroundm.jpg" >');
?????? document.write('<label id="lmxj_deatil_1" style="position:absolute;left:10px;top:20px;text-align:left;background-color:#00000;color:#010101;width:330px;font-size:18px;" value="1111" disabled>');
?????? if(isAdv==0){
????? if(entityType=="channel"){??????
????? var sId = viewContent;
????//? target.innerHTML = '<AV id="movieWnd" serviceID="'+sId+'" name="movieWnd" style="position:absolute; border-width:0; left:5px; top:70px; //width:328px; height:244px;visibility: hidden;">';
???? document.write('<AV id="movieWnd" serviceID="'+sId+'" name="movieWnd" style="position:absolute; border-width:0; left:5px; top:70px; width:328px; height:244px;">');
???? movieWnd.play();
????? }else{
????? document.write('<div id="divNodeDescribeImg" style="position:absolute; border-width:0; left:5px; top:70px; width:328px; height:244px;"><img src = "'+viewContent+'" width="339" height="275" border="0"/></div>');
????? //target.innerHTML = '<img src = "'+viewContent+'" width="339" height="275" border="0"/>';?
????? }
??? }else{
????????//廣告調用方式:通過節點的code(由生成頁面的時候生成出來),調用廣告系統中的js代碼方式,返回廣告代碼
????? document.write('<div id="tes" style="position:absolute; border-width:0; left:5px; top:70px; width:328px; height:244px;"><input id? = "showrs" type = "text"></input></div>');
????? setInterval("timeout()",1000);
????//document.getElementById('aaa').value = "aaa";
????//target.style.visibility ="visible";
????// document.write('<img src = "http://192.168.18.146/images/material/advert_epg.jpg" width="339" height="275" border="0"/>');
????//document.getElementById('aaa').value ="bbb";
??? }
?????????? document.write('</body>');
??? }
???
??</script>
總結
以上是生活随笔為你收集整理的js中document.write()使用方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 好太太油烟机价目表
- 下一篇: IBM Storwize V7000 I