Posts Tagged ‘代码’

搜索引擎的增强

This item was filled under [ 建站笔记 ]

又偷了一段代码,原理在这里,只是如果想应用在自己的搜索引擎里可能还要做相应的修改才行.
(function() { var f = document.getElementById(’searchbox’); if (!f) { f = document.getElementById(’searchbox_demo’); } if (f && f.q) { var q = f.q; var n = navigator; var l = location; if (n.platform == ‘Win32′) { q.style.cssText = ‘border: 1px solid #7e9db9; padding: 2px;’; } var b = function() { if (q.value == ”) { q.style.background [...]

Continue reading...

Tagged with: [ , ]

google的广告与网页的完美融合

This item was filled under [ 建站笔记 ]

今天在网上查找素材的时候,逛到了一韩国网站,其设计其实很简单,但让我好奇的是它把google的广告做成了自己的风格,与自己的网站有机的融合到了一起,让我羡慕不已。把代码住下来看了下,原来还是这么简单的事,但在国内的google说明里却一直没有找到相关的解释,不知道没有呢还是我找的不够仔细!把代码贴过来,留做备用吧!
内容我就不解释了,相信站长们一看就明白的.
[code] <script type=”text/javascript”><!–
google_ad_client = “”;
google_alternate_color = “353535″;
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = “125×125_as”;
google_ad_type = “text”;
//2007-05-26: qnt_rechts
google_ad_channel = “5034349397″;
google_color_border = “353535″;
google_color_bg = “353535″;
google_color_link = “A5A5A5″;
google_color_text = “A5A5A5″;
google_color_url = “A5A5A5″;
//–>
</script>
<script type=”text/javascript” src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
[/code][img]http://www.google.com/coop/images/google_custom_search_watermark.gif [/img]

Continue reading...

Tagged with: [ , ]
第 1 页,共 8 页12345»Nothing最后一页 »