锚点参考

    <ul class="banner-pic">
<li style="background: url(../Content/images/new_cert/recruit/banner_test.jpg) no-repeat center; height: 355px" title="了解招聘">
<a href="javascript:;">@*火热资讯*@</a>
</li>
<li style="background: url(../Content/images/new_cert/recruit/banner_test.jpg) no-repeat center; height: 355px" title="网上申请">
<a href="javascript:;">@*全程服务*@</a>
</li>
<li style="background: url(../Content/images/new_cert/recruit/banner_test.jpg) no-repeat center; height: 355px" title="笔试">
<a href="javascript:;">@*真题资料*@</a>
</li>
<li style="background: url(../Content/images/new_cert/recruit/banner.png) no-repeat center; height: 355px" title="课程介绍">
<a href="javascript:;">@*精品课程*@</a>
</li>
</ul>
var aLi = null;
$(function () {
aLi = $(".tab").find("li");
aLi.click(function () {
if ($(this).index() == 0) {
removerClass();
aLi.addClass("one-active");
$(".content-box").find(".font").hide();
$(".content-box").find(".font").eq($(this).index()).show();
} else if ($(this).index() == 1) {
removerClass();
aLi.addClass("two-active");
$(".content-box").find(".font").hide();
$(".content-box").find(".font").eq($(this).index()).show();
} else if ($(this).index() == 2) {
removerClass();
aLi.addClass("three-active");
$(".content-box").find(".font").hide();
$(".content-box").find(".font").eq($(this).index()).show();
} else if ($(this).index() == 3) {
removerClass();
aLi.addClass("four-active");
$(".content-box").find(".font").hide();
$(".content-box").find(".font").eq($(this).index()).show();
} else if ($(this).index() == 4) {
removerClass();
aLi.addClass("five-active");
$(".content-box").find(".font").hide();
$(".content-box").find(".font").eq($(this).index()).show();
} }) //banner大图切换
$(".banner").slide({
titCell: ".num ul",
mainCell: ".banner-pic",
effect: "fold",
autoPlay: true,
delayTime: 700,
autoPage: true
}); var aBannerLi = $(".banner-pic").find("li"); aBannerLi.click(function () {
if ($(this).get(0).title == "了解招聘") {
$("html,body").animate({ scrollTop: $(".s-news").offset().top }, 900);
aLi.eq(0).trigger("click");
}
if ($(this).get(0).title == "网上申请") {
$("html,body").animate({ scrollTop: $(".s-news").offset().top }, 900);
aLi.eq(1).trigger("click");
}
if ($(this).get(0).title == "笔试") {
$("html,body").animate({ scrollTop: $(".s-news").offset().top }, 900);
aLi.eq(2).trigger("click");
}
if ($(this).get(0).title == "课程介绍") {
$("html,body").animate({ scrollTop: $(".s-products").offset().top }, 900);
}
}) });

HTML锚点参考的更多相关文章

  1. HTML锚点参考II

    锚点使用:<a href="#a">会直接找到id为a的元素的位置,不需要其他设置.如此简单! <a href="#a"> <li ...

  2. github的markdown页内锚点以及本地资源链接

    页内锚点参考 https://my.oschina.net/antsky/blog/1475173 [aaa](#2-aaabbb) 字母小写,.去掉,空格换成- 本地资源链接 [aaa](docs/ ...

  3. SyncML 同步协议 感谢 周鹏(我只是做一个备份)

    SyncML 同步协议(SyncML Sync Protocol) 翻译周鹏 2006-1-24 摘要 本规范定义了SyncML客户和服务的同步协议. 它规范了怎样使用SynML表示层协议去完成Syn ...

  4. NGUI 3.0.7的新锚点系统设置不好就会造成显示错误的错觉

    每次设置NGUI控件的锚点时,都需要刷新一下窗口,不然就会造成显示错误的错觉. 同时,NGUI控件设置锚点的参考对象为一个物体时还需要调整其控件大小,不然也会造成显示错误的错觉.

  5. js 定位到某个锚点

    js 定位到某个锚点 html页面内可以设置锚点,锚点定义 <a name="firstAnchor">&nsbp;</a> 锚点使用 <a  ...

  6. URL锚点HTML定位技术机制

    一.锚点是什么 锚点就等同于火影中的“飞雷神之术”,我们先看百科中锚点的解释: 使用命名锚记可以在文档中设置标记,这些标记通常放在文档的特定主题处或顶部.然后可以创建到这些命名锚记的链接,这些链接可快 ...

  7. URL锚点定位

    我们都知道<a>标签中的url属性有三种值: 绝对 URL - 指向另一个站点(比如 href="http://www.example.com/index.htm") ...

  8. osgearth earth文件规范-符号参考

    osgearth earth文件规范-符号参考 osgEarth用样式表渲染要素和注记. 本文档列出了可在样式表中使用的所有符号属性.不是每个符号是适用于每种情况:这只是一个主列表. 跳转到符号: • ...

  9. html锚点 点击跳转到页面指定位置

    本来是在看阮大神写的ajax教程,突然发现点击目录文字会跳转到相对应的文本内容,于是乎激发了我的兴趣. 这个究竟怎么做的,刚开始看的时候一知半解,找度娘就是:"点击跳转到页面指定位置&quo ...

随机推荐

  1. osharpV3数据库初始化

    var databaseInitializer = new DatabaseInitializer(); databaseInitializer.MapperAssemblyFinder = new ...

  2. linux 下 zip unzip压缩与解压

    注:*压缩成限.zip格式文件 常用解压缩: [root@mysql test]# unzip -o test.zip -d tmp/ 将压缩文件test.zip在指定目录tmp下解压缩,如果已有相同 ...

  3. js的DOM对象

    1.js的Array对象           ** 创建数组(三种)                          - var arr1 = [1,2,3];                    ...

  4. 浅谈JavaScript中的Function引用类型

    引言 在JavaScript中最有意思的就是函数了,这一切的根源在于函数实际上是一个对象.每一个函数都是Function类型的实例,而且都和其他引用类型的实例一样具有属性和方法.函数作为一个对象,因此 ...

  5. C语言strdup函数

    static RD_INLINE RD_UNUSED char *rd_strdup(const char *s) { #ifndef _MSC_VER char *n = strdup(s); #e ...

  6. vim 创建和管理折叠

    参考文章: http://blog.csdn.net/bendanban/article/details/7743530 首先要有折叠, 然后才能说, 打开和关闭 折叠; 打开: zo: zip op ...

  7. UGUI事件解析

    http://www.tuicool.com/articles/7fYjMr http://www.xuanyusong.com/archives/3325

  8. 游戏BUFF设计

    游戏中的BUFF/DEBUFF我们见过很多,我见到的玩得比较泛滥的就属WAR3.魔兽世界.九阴真经.仿DOTA类的如LOL. 总体上来说,BUFF/DEBUFF都属于“临时的技能效果”,因此它们可以沿 ...

  9. window 常用软件

    参考链接: http://www.aiweibang.com/yuedu/721140.html http://www.aiweibang.com/yuedu/145263218.html 1.wox ...

  10. hash-5.ConcurrentHashMap

    http://www.cnblogs.com/dolphin0520/p/3932905.html有时间细看