你们用的我不用 發表於 2023-8-16 00:00:00

dedecms友情链接(flink)增加下拉菜单的方法

<p>
        <strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>1)实现方法 </strong><br><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>找到/include/taglib/flink.lib.php,找到else if($type=='image'),在其上面一行加入: </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <p class="right">
                <span><u>复制代码</u></span></p>
        <p>
                代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        else if($type=='option') <br>
        { <br>
        $link = "&lt;option value='".$dbrow-&gt;url."'&gt;".cn_substr($dbrow-&gt;webname,$titlelen)."&lt;/option&gt;"; <br>
        } </p>
<p>
        <br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>2)调用方法 </strong><br><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>折叠展开XML/HTML </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <p class="right">
                <span><u>复制代码</u></span></p>
        <p>
                代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        &lt;select onchange="window.open(this.options.value,'_blank')"&gt; <br>
        &lt;option&gt;--相关链接地址--&lt;/option&gt; <br>
        {dede:flink row='24' type='option'/} <br>
        &lt;/select&gt;</p>
<p>
        <span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>3)简单说明 </strong><br><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>1.本拓展保留了原DedeCMS友情链接的一切功能; </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>2.其中的_blank 为链接的打开方式,您可以根据实际需要更改 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>效果如下: </span></p>
<p>
        <br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><img title="dedecms友情链接(flink)增加下拉菜单的方法" alt="dedecms友情链接(flink)增加下拉菜单的方法" src="https://zhuji.jb51.net/uploads/img/202305/88b2e1d47d4f4e88a502fc910cdc3566.jpg" style="max-width:100%!important;height:auto!important;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 696px; font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px; width: 295px; height: 181px;'></p>
頁: [1]
查看完整版本: dedecms友情链接(flink)增加下拉菜单的方法