zoukankan      html  css  js  c++  java
  • sharepoint 中banner 图片的放大

    <script language=JavaScript" type="text/javascript">

                       function PopBanner(){

                                var obj=document.getElementById("ctl00_onetidHeadbnnr0");

                                var erc=obj.src.substring(obj.src.lastIndexOf('/')+1,obj.src.lastIndexOf('.'));

                                if(erc=='newBanner'){

                                 if(obj.height>100 && obj.width>100){

                                          var title=document.getElementById("ctl00_PlaceHolderSiteName_onetidProjectPropertyTitle");

                                          var sreach=document.getElementById("WebPartWPQ1");

                                      sreach.style.visibility='hidden';

                                          title.style.visibility='hidden';

                                          var td=title.parentNode.parentNode;

                                          var tr=td.parentNode;

                                          tr.deleteCell(1);

                                          tr.deleteCell(1);

                                          obj.height='112';

                                          obj.width='1400';

                                 }

                                }

                       }

             </script>

  • 相关阅读:
    curl查询公网出口IP
    Linux scp命令
    docker 安装 MySQL 8.0
    Ubuntu下apt方式安装与更新Git
    第2章 一切都是对象
    Mave实战(1)——Maven介绍
    关于Identityserver4和IdentityServer3 授权不兼容的问题
    装箱和拆箱、类型比较
    接口自动化用例(Fitnesse)中批量获取系统链路日志
    man时括号里的数字是啥意思
  • 原文地址:https://www.cnblogs.com/KingStar/p/1619660.html
Copyright © 2011-2022 走看看