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

 找回密码
 立即注册
搜索

[已答复] ss7.0综合首页广告代码错误,请大家帮我

[复制链接]
孤独的过客 发表于 2009-8-18 00:00:04 | 显示全部楼层 |阅读模式
本帖最后由 孤独的过客 于 2009-8-18 15:13 编辑

我把综合首页的“调查”和“公告”删掉以后,换成了谷歌广告,尺寸是250x250的,结果下面的站内搜索覆盖到了广告上面,怎么解决呢?谢谢大家了,如图:
1.jpg
我的广告代码是:
  1. <!--谷歌广告-->
  2.                 <div class="super_notice">
  3. <script type="text/javascript"><!--
  4. google_ad_client = "pub-4728835475631499";
  5. /* 250x250, 创建于 09-8-14 */
  6. google_ad_slot = "1035603591";
  7. google_ad_width = 250;
  8. google_ad_height = 250;
  9. //-->
  10. </script>
  11. <script type="text/javascript"
  12. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  13. </script>
  14.                 </div>
  15. </div><!--谷歌广告end-->
  16.                 <div class="search_bar margin_bot0">
  17.                         <h3>站内搜索</h3>
  18. ..............后面的就不写了
复制代码
回复

使用道具 举报

littlehz 发表于 2009-8-18 00:31:25 | 显示全部楼层
这不多了</div>么,容器嵌套不正确。详情到模版区咨询
回复

使用道具 举报

 楼主| 孤独的过客 发表于 2009-8-18 00:56:23 | 显示全部楼层
我先把多出的</div>去掉试试
回复

使用道具 举报

 楼主| 孤独的过客 发表于 2009-8-18 15:12:04 | 显示全部楼层
去掉多余的</div>也不行,谁能帮帮我呀,谢谢了~~~~~~~
回复

使用道具 举报

lidq.jingwu 发表于 2009-8-18 15:29:33 | 显示全部楼层
调整系统自带的那个搜索框的位置吧,你上面加的那段google的代码是用js来写的,找不到它的内容,无法修改。
在index.html.php文件中找到以下代码:
                <div class="search_bar margin_bot0">
                        <h3>站内搜索</h3>
                        <div class="search_content">
                                <form action="{S_URL}/batch.search.php" method="post">
                                <input type="text" class="input_tx" size="23" name="searchkey" value="$searchkey" /> <input type="submit" class="input_search" name="authorsearchbtn" value="搜索" />
                                <div class="search_catalog">
                                        <!--{if empty($searchname)}-->
                                        <!--{eval $searchname = 'subject'}-->
                                        <!--{/if}-->
                                        <input id="title" name="searchname" type="radio" value="subject" <!--{if $searchname == 'subject'}-->checked="checked" <!--{/if}-->/><label for="title">标题</label>
                                        <input id="content" name="searchname" type="radio" value="message" <!--{if $searchname == 'message'}-->checked="checked" <!--{/if}-->/><label for="content">内容</label>
                                        <input id="author" name="searchname" type="radio" value="author" <!--{if $searchname == 'author'}-->checked="checked" <!--{/if}-->/><label for="author">作者</label>
                                        <!--{if !empty($channels['menus']['bbs'])}-->
                                        <a class="search_bbs" title="搜索论坛" href="$bbsurl/search.php" target="_blank">搜索论坛</a>
                                        <!--{/if}-->
                                        <input type="hidden" value="news" name="type">
                                        <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
                                </div>
                                </form>
                        </div>
                </div><!--站内搜索-->
修改它的CSS位置吧。
回复

使用道具 举报

 楼主| 孤独的过客 发表于 2009-8-21 14:26:27 | 显示全部楼层
谢谢楼上的,我再试试
回复

使用道具 举报

 楼主| 孤独的过客 发表于 2009-8-21 14:35:40 | 显示全部楼层
谢谢啦,把广告和搜索框位置互换,终于搞定:

1.jpg
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-12 23:30 , Processed in 0.092533 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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