Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

Discuz!X 二级导航广告生成器

  [复制链接]
chris_zcl 发表于 2010-6-24 17:00:19 | 显示全部楼层
太牛x了,没办法不顶~
回复

使用道具 举报

allensun 发表于 2010-6-24 17:25:17 | 显示全部楼层
强大,顶一下。
回复

使用道具 举报

十月阁下 发表于 2010-6-24 17:27:07 | 显示全部楼层
支持了
回复

使用道具 举报

jlbccf 发表于 2010-6-24 17:29:04 | 显示全部楼层
本帖最后由 jlbccf 于 2010-6-24 17:42 编辑

好东西啊

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.         <head>
  4.                  <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  5.                  <title>Discuz! X Ad</title>
  6.                 <link rel="stylesheet" type="text/css" href="https://discuz.dismall.com/data/cache/style_1_common.css" />
  7.                 <script type="text/javascript">
  8.                         function showMSG(msg) {
  9.                                 document.getElementById('code').innerHTML = msg;
  10.                         }
  11.                         function setIcon(obj) {
  12.                                 var target = document.getElementById(obj.parentNode.parentNode.parentNode.id + '_c');
  13.                                 target.style.backgroundImage = 'url(' + obj.value + ')';
  14.                         }
  15.                         function setText(obj,method) {
  16.                                 var target = document.getElementById(obj.parentNode.parentNode.id + '_c');
  17.                                 switch(method) {
  18.                                         case 'text':
  19.                                                 target.innerHTML = obj.value
  20.                                         break
  21.                                        
  22.                                         case 'link':
  23.                                                 target.href = obj.value
  24.                                         break
  25.                                        
  26.                                         case 'color':
  27.                                                 target.style.color = obj.value
  28.                                         break
  29.                                        
  30.                                         case 'weight':
  31.                                                 target.style.fontWeight = obj.value
  32.                                         break
  33.                                        
  34.                                         case 'linebreak':
  35.                                                 target.style.clear = ( obj.checked == true ? 'left' : 'none' )
  36.                                         break
  37.                                 }
  38.                         }
  39.                         function addNewLine(id) {
  40.                                 var targetForm = document.getElementById(id);
  41.                                 var targetContent = document.getElementById(id + '_c');
  42.                                 var formCount = document.getElementById(id).getElementsByTagName('p');
  43.                                 showMSG(formCount.length);
  44.                                 
  45.                                 var newForm = document.createElement('p');
  46.                                 newForm.id = id + '_' + formCount.length;
  47.                                 newForm.className = 'ptm pbm bbda';
  48.                                 newForm.innerHTML = document.getElementById(id+'_1').innerHTML;
  49.                                 newForm.getElementsByTagName('input')[0].value = '一个新链接';
  50.                                 document.getElementById(id).appendChild(newForm);
  51.                                 
  52.                                 var newContent = document.createElement('a');
  53.                                 newContent.id = id + '_' + ( formCount.length - 1 ) + '_c';
  54.                                 newContent.innerHTML = '一个新链接';
  55.                                 document.getElementById(id+'_c').appendChild(newContent);
  56.                         }
  57.                         function switchTab(id) {
  58.                                 document.getElementById('tb_1').className = document.getElementById('tb_2').className = document.getElementById('tb_3').className = '';
  59.                                 document.getElementById('tb_1_c').style.display = document.getElementById('tb_2_c').style.display = document.getElementById('tb_3_c').style.display = 'none';
  60.                                 document.getElementById('tb_' + id).className = 'a';
  61.                                 document.getElementById('tb_' + id + '_c').style.display = 'block';
  62.                                 document.getElementById('tb_' + id).getElementsByTagName('a')[0].blur();
  63.                         }
  64.                 </script>
  65.                  <style type="text/css">
  66.                         * { margin: 0; padding: 0; }
  67.                         body { padding-top: 30px; padding-bottom: 200px; font: 12px/1.5 Tahoma,sans-serif; }
  68.                         h1, h2, h3 { font-size: 12px; font-weight: normal; }
  69.                         fieldset { margin-bottom: 10px; padding: 10px; border: 1px solid #CCC; }
  70.                         #code { width: 958px; height: 200px; font-family: monospace; }
  71.                         ul li { list-style: none; }
  72.                         .tb_c { padding: 10px; border: 1px solid #DDD; border-top: none; }
  73.                                 .tb_c div { padding: 10px 0; }
  74.                         h2 { font-size: 14px; font-weight: bold; }
  75.                         ol { padding-left: 2em; }
  76.                 </style>
  77.         </head>
  78.           <body>
  79.                  <div id="wp" class="wp">
  80.                         <h1 class="xs2">Discuz!X 二级导航广告生成器</h1>
  81.                         <p class="xg1">Discuz!X Advertisement Generator V1.0</p>
  82.                         <div class="cl">
  83.                                 <ul class="tb cl" style="padding-left: 0;">
  84.                                         <li id="tb_1" class="a"><a href="javascript:;">左栏样式</a></li>
  85.                                         <li id="tb_2"><a href="javascript:;">中栏样式</a></li>
  86.                                         <li id="tb_3"><a href="javascript:;">右栏样式</a></li>
  87.                                 </ul>
  88.                                 <div class="tb_c">
  89.                                         <div id="tb_1_c">
  90.                                                 <div id="xad_mu_l">
  91.                                                         <p class="pbm"><label>图标: <input type="text" class="px p_fre" size="35" value="http://cdn.iconfinder.net/data/icons/Icon_for_MealKeeper__s_soft_by_shlyapnikova/help_32.png" /></label></p>
  92.                                                         <hr class="da" />
  93.                                                         <p id="xad_mu_l_1" class="ptm pbm bbda">
  94.                                                                 <label>文字: <input type="text" class="px p_fre" size="15" value="这是一个广告示例" /></label>
  95.                                                                 <label>链接: <input type="text" class="px p_fre" size="25" /></label>
  96.                                                                 <label>颜色: <input type="text" class="px p_fre" size="2" /></label>
  97.                                                                 <label>加粗: <select><option value="normal">常规</option><option value="bold">粗体</option></select></label>
  98.                                                                 <label><input type="checkbox" class="pc" /> 新起一行</label>
  99.                                                         </p>
  100.                                                         <p id="xad_mu_l_2" class="ptm pbm bbda">
  101.                                                                 <label>文字: <input type="text" class="px p_fre" size="15" value="另一个测试链接" /></label>
  102.                                                                 <label>链接: <input type="text" class="px p_fre" size="25" /></label>
  103.                                                                 <label>颜色: <input type="text" class="px p_fre" size="2" value="red" /></label>
  104.                                                                 <label>加粗: <select><option value="normal">常规</option><option value="bold">粗体</option></select></label>
  105.                                                                 <label><input type="checkbox" class="pc" checked="checked" /> 新起一行</label>
  106.                                                         </p>
  107.                                                 </div>
  108.                                                 <p class="pns"><button type="button" class="pn"><em>+ 添加新链接</em></button></p>
  109.                                         </div>
  110.                                         <div id="tb_2_c" style="display: none;">
  111.                                                 <div id="xad_mu_c">
  112.                                                         <p class="pbm"><label>图标: <input type="text" class="px p_fre" size="35" value="http://cdn.iconfinder.net/data/icons/Icon_for_MealKeeper__s_soft_by_shlyapnikova/recipe_32.png" /></label></p>
  113.                                                         <hr class="da" />
  114.                                                         <p id="xad_mu_c_1" class="ptm pbm bbda">
  115.                                                                 <label>文字: <input type="text" class="px p_fre" size="15" value="这是一个广告示例" /></label>
  116.                                                                 <label>链接: <input type="text" class="px p_fre" size="25" /></label>
  117.                                                                 <label>颜色: <input type="text" class="px p_fre" size="2" /></label>
  118.                                                                 <label>加粗: <select><option value="normal">常规</option><option value="bold">粗体</option></select></label>
  119.                                                                 <label><input type="checkbox" class="pc" /> 新起一行</label>
  120.                                                         </p>
  121.                                                         <p id="xad_mu_c_2" class="ptm pbm bbda">
  122.                                                                 <label>文字: <input type="text" class="px p_fre" size="15" value="可放置较长文本内容用作说明文字" /></label>
  123.                                                                 <label>链接: <input type="text" class="px p_fre" size="25" /></label>
  124.                                                                 <label>颜色: <input type="text" class="px p_fre" size="2" value="#999" /></label>
  125.                                                                 <label>加粗: <select><option value="normal">常规</option><option value="bold">粗体</option></select></label>
  126.                                                                 <label><input type="checkbox" class="pc" checked="checked" /> 新起一行</label>
  127.                                                         </p>
  128.                                                 </div>
  129.                                                 <p class="pns"><button type="button" class="pn"><em>+ 添加新链接</em></button></p>
  130.                                         </div>
  131.                                         <div id="tb_3_c" style="display: none;">
  132.                                                 <div id="xad_mu_r">
  133.                                                         <p class="pbm"><label>图标: <input type="text" class="px p_fre" size="35" value="http://cdn.iconfinder.net/data/icons/Icon_for_MealKeeper__s_soft_by_shlyapnikova/search_32.png" /></label></p>
  134.                                                         <hr class="da" />
  135.                                                         <p id="xad_mu_r_1" class="ptm pbm bbda">
  136.                                                                 <label>文字: <input type="text" class="px p_fre" size="15" value="这是一个广告示例" /></label>
  137.                                                                 <label>链接: <input type="text" class="px p_fre" size="25" /></label>
  138.                                                                 <label>颜色: <input type="text" class="px p_fre" size="2" /></label>
  139.                                                                 <label>加粗: <select><option value="normal">常规</option><option value="bold">粗体</option></select></label>
  140.                                                                 <label><input type="checkbox" class="pc" /> 新起一行</label>
  141.                                                         </p>
  142.                                                         <p id="xad_mu_r_2" class="ptm pbm bbda">
  143.                                                                 <label>文字: <input type="text" class="px p_fre" size="15" value="一个粗体的广告示例" /></label>
  144.                                                                 <label>链接: <input type="text" class="px p_fre" size="25" /></label>
  145.                                                                 <label>颜色: <input type="text" class="px p_fre" size="2" /></label>
  146.                                                                 <label>加粗: <select><option value="normal">常规</option><option value="bold" selected="selected">粗体</option></select></label>
  147.                                                                 <label><input type="checkbox" class="pc" checked="checked" /> 新起一行</label>
  148.                                                         </p>
  149.                                                 </div>
  150.                                                 <p class="pns"><button type="button" class="pn"><em>+ 添加新链接</em></button></p>
  151.                                         </div>
  152.                                 </div>
  153.                         </div>
  154.                         <h2 class="mtw">预览</h2>
  155.                         <div id="hd">
  156.                                 <div class="wp">
  157.                                         <div id="mu">
  158.                                                 <ul class="cl">
  159.                                                         <li><a href="javascript:;" hidefocus="true" >菜单</a></li>
  160.                                                         <li><a href="javascript:;" hidefocus="true" >菜单</a></li>
  161.                                                 </ul>
  162.                                         </div>
  163.                                         <div id="a_mu" class="a_mu">
  164. <div id="xad_mu" class="cl">
  165.         <style type="text/css">
  166.                 #xad_mu { padding: 15px 0; }
  167.                 #xad_mu div { padding-left: 70px; width: 311px; w\idth: 241px; background-repeat: no-repeat; background-position: 20px 50%; overflow: hidden; }
  168.                 #xad_mu a { float: left; margin-right: 5px; white-space: nowrap; }
  169.                         #xad_mu a:hover { text-decoration: underline; }
  170.         </style>
  171.         <div id="xad_mu_l_c" class="z" style="border-right: 1px solid #DDD; background-image: url([img]http://cdn.iconfinder.net/data/icons/Icon_for_MealKeeper__s_soft_by_shlyapnikova/help_32.png[/img]); ">
  172.                 <a id="xad_mu_l_1_c" href="#">这是一个广告示例</a><a id="xad_mu_l_2_c" href="#" style="color:red;clear:left;">另一个测试链接</a>
  173.         </div>
  174.         <div id="xad_mu_c_c" class="z" style="border-right: 1px solid #DDD; border-left: 1px solid #FFF; background-image: url([img]http://cdn.iconfinder.net/data/icons/Icon_for_MealKeeper__s_soft_by_shlyapnikova/recipe_32.png[/img]);">
  175.                 <a id="xad_mu_c_1_c" href="#">这是一个广告示例</a><a id="xad_mu_c_2_c" href="#" style="color:#999;clear:left;">可放置较长文本内容用作说明文字</a>
  176.         </div>
  177.         <div id="xad_mu_r_c" class="z" style=" border-left: 1px solid #FFF;  background-image: url([img]http://cdn.iconfinder.net/data/icons/Icon_for_MealKeeper__s_soft_by_shlyapnikova/search_32.png[/img]);">
  178.                 <a id="xad_mu_r_1_c" href="#">这是一个广告示例</a><a id="xad_mu_r_2_c" href="#" style="font-weight:bold;clear:left;">一个粗体的广告示例</a>
  179.         </div>
  180. </div>
  181.                                         </div>
  182.                                 </div>
  183.                         </div>
  184.                         <div class="ptw pbw hm">
  185.                                 <button type="button" class="pn pnc"><strong>生成代码</strong></button>
  186.                         </div>
  187.                          <textarea id="code" class="pt" style="display: none;"></textarea>
  188.                         <h2 class="mtw mbw">如何使用?</h2>
  189.                         <div class="">
  190.                                 <ol>
  191.                                         <li>点击上面的“生成代码”按钮,复制生成的代码;</li>
  192.                                         <li>进入你网站的后台,通过导航进入 <strong>扩展 &gt; 站点广告</strong>,点击 <strong>全局 页头二级导航栏广告</strong></li>
  193.                                         <li>添加新广告,并将第一步中复制的代码粘贴到新广告的 HTML 代码处,保存。</li>
  194.                                 </ol>
  195.                                 <p class="ptn xg1">* 更详细的广告添加步骤请参见 <a href="https://discuz.dismall.com/thread-1671615-1-1.html">[url]https://discuz.dismall.com/thread-1671615-1-1.html&lt[/url];/a><p>
  196.                         </div>
  197.                         <p class="ptw">By Lushnis ( <a href="http://fangming.li" class="xi2">http://fangming.li</a> )</p>
  198.                  </div>
  199.                  <script type="text/javascript">
  200.                   var _gaq = _gaq || [];
  201.                   _gaq.push(['_setAccount', 'UA-97573-1']);
  202.                   _gaq.push(['_trackPageview']);
  203.                
  204.                   (function() {
  205.                         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  206.                         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  207.                         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  208.                   })();
  209.                 </script>
  210.         </body>
  211. </html>
复制代码
回复

使用道具 举报

myron0101 发表于 2010-6-28 00:40:49 | 显示全部楼层
哪里跑......收....哈哈
回复

使用道具 举报

dding1210 发表于 2010-6-28 00:43:33 | 显示全部楼层
这个不错的说
回复

使用道具 举报

qwe136172081 发表于 2010-6-28 00:46:49 | 显示全部楼层
黄山社区 http://bbs.hua110.com/  黄山人的精神家园
回复

使用道具 举报

samchow 发表于 2010-6-29 18:09:11 | 显示全部楼层
非常感谢!!!
回复

使用道具 举报

tzxiaolang 发表于 2010-7-2 10:11:33 | 显示全部楼层
好東西一定要頂,樓主真是好人啊!
希望所有的人都想樓組一樣無私奉獻!
回复

使用道具 举报

kbu5 发表于 2010-7-7 09:18:42 | 显示全部楼层
收藏了,我太爱你了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-11 10:09 , Processed in 0.082272 second(s), 12 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表