html图片全屏显示插件,jQuery全屏内容显示插件

这篇博客介绍了如何利用jQuery创建一个全屏内容显示插件,该插件允许网站内容动态占据整个窗口,并提供了垂直和水平滚动的配置选项。通过设置MapPosition参数,可以自定义内容的布局。此外,插件还支持历史记录哈希和平滑滚动动画,易于配置和使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

特效描述:jQuery 全屏内容显示插件。jQuery全屏内容显示插件

代码结构

1. 引入CSS

2. 引入JS

3. HTML代码

Jquery Full Content

Enables fully websites

  • Download

    Ready for use

  • What

    the plugin does

  • Docs

    How use this plugin

What pack you want to download

Develop by

Zeh Fernandes

. Special thanks to Zeno Rocha and Cezar Luiz.
  • Minify

    Just the core

  • Complete

    Demo + core

Markup

<div id="container">

  <div id="stage1">

  //The content of this page

  </div>

  <div id="stage2">

  //The content of this page

  </div>

</div>

The id of stage is how you link

<a href="#stage2">Go to stage2</a>

Style

Don't show scroll bars

body { overflow-x: hidden; overflow-y: hidden; }

In case you need vertical scroll

stage1 { overflow-y: auto; }

Javascript

Put Jquery, ScrollTo Plugin and Jquery.fullContent

<script src="js/jquery-1.x.x.min.js"

type="text/javascript"></script>

<script src="js/jquery.jquery.scrollTo.js"

type="text/javascript"></script>

<script src="js/jquery.jquery.fullContent.js"

type="text/javascript"></script>

And you can configure this parameters:

$('#container').fullContent({

  stages: 'div',

  mapPosition: [{v: 1, h: 1}, {v: 1, h: 2}, {v: 2, h: 1},

{v: 2, h: 2}],

  stageStart: 1,

  speedTransition: 800,

  idComplement: 'page_'

});

The Map Position

This parameter you can configuring the position which want

your stage. V - vertical position H - horizontal position. For

example

v1h1 | v1h2

v2h1 | v2h2

What the plugin does

  • Create fully containers with width and height of

    window

  • Dynamic position: Each container could have vertical

    and horizontal position set

  • History hash in URL
  • Scroll animation between containers
  • Simple configuration and easy use

$('#container').fullContent({

stages: 'div',

mapPosition: [{v: 1, h: 3}, {v: 1, h: 1}, {v: 1, h: 6}, {v: 3, h: 3}],

stageStart: 1,

idComplement: 'page_'

});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值