锚点参考

    <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. java enum类

    1.可以在enum中添加变量和方法 先来看一段代码示例: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ...

  2. Yii2 如何更好的在页面注入JavaScript

    先添加一个widgets <?php /** * User: yiqing * Date: 14-9-15 * Time: 下午12:09 */ namespace common\widgets ...

  3. MySQL分表自增ID解决方案(转)

    当我们对MySQL进行分表操作后,将不能依赖MySQL的自动增量来产生唯一ID了,因为数据已经分散到多个表中. 应尽量避免使用自增IP来做为主键,为数据库分表操作带来极大的不便. 在postgreSQ ...

  4. Quartz-2D

    Quartz 2D是一个二维图形绘制引擎,支持iOS环境和Mac OS X环境.我们可以使用Quartz 2D API来实现许多功能,如基本路径的绘制.透明度.描影.绘制阴影.透明层.颜色管理.反锯齿 ...

  5. github常见操作和常见错误!

    本人总结: 1.问题:  fatal: Not a git repository (or any of the parent directories) 解决: 本地库还没有创建,请先用git init ...

  6. php 关于时区 date gmdate date_default_timezone_set/get 终极答疑

    关于GMT和UTC时间? GMT+0800 Greenwich: [gri:nitf], 格林威治/格林尼治.是英国伦敦泰晤士河附近的一个小镇 Mean: adj. 自私的; n. 平均.. he i ...

  7. 我的linux桌面

    经过几次尝试安装linux系统之后,终于把自己的系统安装成了linux系统. wangkongming@ThinkPad-T410 ~ $ lsb_release -a No LSB modules ...

  8. linux shell中判断bash脚本输入的参数个数

    看下面的一段程序. #!/bin/bash ]; then echo "参数个数为$#个" else echo "没有参数" fi

  9. log4net的基本配置及用法

    [1].[代码] [C#]代码 跳至 [1] [2] ? 1 2 using System.Reflection;  //使用反射 static private ILog log = log4net. ...

  10. WCF binding的那些事!!!

    原文地址:http://www.cnblogs.com/Anima0My/archive/2008/04/16/1156146.html WCF中常用的binding方式: BasicHttpBind ...