yahoo 页面的标签效果
发布时间:2024-04-10 10:38:14
标签:yahoo,页面的标签效果
<P><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>yahoo 标签</title><style type="text/css">.tag_box { width:400px; height:126px; border:1px solid #B0BEC7; font:12px Arial, Helvetica, sans-serif; margin:50px; overflow:hidden}.tag_box ul.menulist { width:402px; height:20px; overflow:hidden; margin:0}.tag_box ul.menulist li { float:left; width:80px; text-align:center; height:19px; line-height:19px; background:url(tag_bg1.gif) repeat-x; position:relative; list-style-type:none}.tag_box ul.menulist li a { color:#18397C; text-decoration:none; display:block; width:80px; background:url(tag_pipe.gif) no-repeat right 1px; border-bottom:1px solid #93A6B4;}.tag_box ul.menulist li a:hover { text-decoration:underline;}.tag_box ul.menulist li a.curMenu { background:url(tag_bg2.gif) repeat-x; border:1px solid #91A7B4; border-bottom:none; width:81px; position:absolute; color:#c63; font-weight:bold; left:-1px;top:-1px; height:21px; z-index:100}.tag_box a.nonebg{ background:none;}.tag_content { padding:6px; clear:both}.tag_content img.bigConImg {border:1px solid #788a98; display:block; float:left}.tag_content h5 {padding:2px 0px; margin:3px 6px; float:left; text-align:center; width:250px; background-color:#f7f7f7}.tag_content a {text-decoration:none; color:#16387c}.tag_content a:hover {text-decoration:underline;}.tag_content p { margin:0; padding:2px 6px; float:left; line-height:18px}.tag_content ul { margin:0px 3px 0px 3px; padding:0; float:left;}.tag_content li { margin-left:20px; margin-bottom:3px}</style><script type="text/javascript">var currentTag = 1;function fivetag(obj,id){ selectMenu(obj); for (var i =1,j; j=document.getElementById("tag_content_"+i); i++){ j.style.display="none"; } document.getElementById("tag_content_"+id).style.display="block"; currentTag++; if (currentTag>5) currentTag=1;}function selectMenu(obj){ var lia = document.getElementById("menulist").getElementsByTagName("li"); var lialen = lia.length; for(i=0; i<lialen; i++){ if(lia[i].getElementsByTagName("a")[0].className=="curMenu") lia[i].getElementsByTagName("a")[0].className = ""; } obj.className = "curMenu";}function init(){ var menulist = document.getElementById("menulist"); setInterval('fivetag(menulist.getElementsByTagName("li")[currentTag-1].getElementsByTagName("a")[0],currentTag)',1000);}</script></head></P><P><body onload="init()"></P><P><div class="tag_box" id="tag_menu"><ul class="menulist" id="menulist"> <li>Home</li> <li>Software</li> <li>Product</li> <li>AboutUs</li> <li>ContactUs</li></ul><!----> <div id="tag_content_1" class="tag_content"> <img src="images/tag_1_img.jpg" class="bigConImg"> <h5>Supercars for the super-richHome</h5> <p>For those who can drop six figures on a car, there's a fresh crop of shiny new 2007 models. &raquo; More</p> </div></P><P> <div id="tag_content_2" class="tag_content"> <img src="images/tag_2_img.jpg" class="bigConImg"> <h5>Time and again Software</h5> <ul> <li>Negroponte says U.S. not at higher risk</li> <li>U.S. to relax ban of liquids on planes</li> <li>U.S. pursues closer ties with Kazakhstan</li> </ul> </div></P><P> <div id="tag_content_3" class="tag_content"> <img src="images/tag_3_img.jpg" class="bigConImg"> <h5>Saints' storybook return Product</h5> <p>In front of a sellout Superdome crowd, New Orleans rides the emotional wave to victory over Atlanta. &raquo; More</p> </div></P><P> <div id="tag_content_4" class="tag_content"> <img src="images/tag_4_img.jpg" class="bigConImg"> <h5>Fall foliage alternatives AboutUs</h5> <p>Dieting with a partner can be motivating, but presents unexpected challenges as well. &raquo; More</p> </div></P><P> <div id="tag_content_5" class="tag_content"> <img src="images/tag_5_img.jpg" class="bigConImg"> <h5>10 ways to earn more pay ContactUs</h5> <p>Why settle for your current salary and benefits when you can negotiate for more? &raquo; More</p> </div> </P><P></div></P><P>修改:<ul style="font:11px Tahoma"> <li>每隔一段时间自动循环切换Tag (修改于 2006-10-10)</li></ul></P><P><div style="font:12px '宋体'; margin-top:50px">Writen By 快乐笛子</div></body></html></P>
取消自动自动循环最简单的方法。请将
<BODY onload=init()>
改成
<BODY> 就行了,如果觉得不爽,再把
function init(){
var menulist = document.getElementById("menulist");
setInterval('fivetag(menulist.getElementsByTagName("li")[currentTag-1].getElementsByTagName("a")[0],currentTag)',1000);
}这几行也干掉就行了。当然你要看清那几个链接别搞错了!


猜你喜欢
- 在输出代码行中,加入“index=False”如下:m_pred_survived.to_csv("clasified.csv&q
- 1.python爬虫浏览器伪装#导入urllib.request模块import urllib.request#设置请求头headers=(
- 项目需求近日需要实现用户推荐相关的功能,也就是说向用户推荐他可能喜欢的东西。我们的数据分析工程师会将用户以及用户可能喜欢的东西整理成文档给我
- 表结构学生表如下:CREATE TABLE `t_student` ( `id` int NOT NULL AUTO_INCRE
- 记忆点:前序:VLR中序:LVR后序:LRV举例:一颗二叉树如下图所示:则它的前序、中序、后序遍历流程如下图所示:1.前序遍历class S
- 本文实例讲述了Python正则抓取新闻标题和链接的方法。分享给大家供大家参考,具体如下:#-*-coding:utf-8-*-import
- 重置系统后,很久之前安装的MySQL数据库出现了控制台查询中文乱码问题,时间太久早已经不记得怎么设置了。网上查询了许多,各种设置,重启数据库
- 本文较为详细的分析了python内存管理机制。分享给大家供大家参考。具体分析如下:内存管理,对于Python这样的动态语言,是至关重要的一部
- 自定义组件挂载原型上以elementUI二次分装dialog举例PageDialog.vue<!-- 页面提示弹框 --><
- 本篇博客介绍如何使用Python调用百度地图WEB服务API获取地点对应坐标值,现有一系列结构化地址数据(如:北京市海淀区上地十街十号),目
- 异常详细信息: System.Web.HttpException: 无法向会话状态服务器发出会话状态请求。请确保已启动 ASP.NET St
- 前言用命令行方式调用用例是我们最常用的方式,这方面确实比java的TestNG框架要好用许多,至少不用写xml文件,为了提供定制化运行用例的
- 二维码是用某种特定的几何图形按一定规律在平面(二维方向上)分布的、黑白相间的、记录数据符号信息的图形。二维码被称为快速响应码,可能看起来很简
- 如何定义记录集打开的游标类型和锁定类型?我们知道,打开记录集时,可以定义记录集打开的游标类型和锁定类型。在adovbs.inc文件中就定义了
- ORA-01578:Oracle data block corrupted(file # num,block # num)产生原
- 1、grid 布局说明:参数说明: sticky:在插件正常尺寸下,分配单元中多余的空间(如果没有声明属性,默认插
- 简介LRU(Least Recently Used)最近最少使用,最近有时间和空间最近的歧义,所以我更喜欢叫它近期最少使用算法。它的核心思想
- 如下所示:# 返回一个列表中第二大的数def second(ln):max = 0s = {}for i in range(len(ln))
- 这篇文章主要介绍了Python实现图片批量加入水印代码实例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要
- 本文实例讲述了Python全局变量与局部变量区别及用法。分享给大家供大家参考,具体如下:对于很多初学的同学,对全局和局部变量容易混淆,看看下