首页 > 其他分享 >jQuery Backstretch动态设置背景图片插件

jQuery Backstretch动态设置背景图片插件

时间:2023-06-04 17:02:40浏览次数:33  
标签:jQuery 插件 Backstretch url backgrounds jpg backstretch Images com


[url]http://www.2cto.com/kf/201411/348425.html[/url]
官方: [url]https://github.com/srobbin/jquery-backstretch[/url]

<script src="Scripts/jquery-1.8.2.min.js"></script>
<script src="Scripts/jquery.backstretch.min.js"></script>
$(function () {
            $(".container").css({ opacity: .8 });   //设置透明度
            $.backstretch([
                  "Images/backgrounds/101_1.jpg",
                  "Images/backgrounds/44_1.jpg"
            ], { duration: 3000, fade: 750 });
        });
 </script>

标签:jQuery,插件,Backstretch,url,backgrounds,jpg,backstretch,Images,com
From: https://blog.51cto.com/u_3871599/6411138

相关文章

  • Eclipse插件开发
    Eclipse插件开发之基础篇(1)插件开发的基础知识[url]http://www.360doc.com/content/12/0322/18/9210133_196714278.shtml[/url]Eclipse插件开发之基础篇(2)第一个Eclipse插件[url]http://www.360doc.com/content/12/0322/18/9210133_196715402.shtml[/u......
  • jQuery使用iframe做tab标签
    jQueryTab插件[url]http://jqueryui.com/tabs/#default[/url][b][color=red]Jquery、tabs、iframe相结合[/color][/b][url]http://blog.sina.com.cn/s/blog_656977f401014oy6.html[/url]使用Jquery中的ui.tabs.js,如果tab中的界面有按钮需要跳转到新的页......
  • jquery mobile的一些使用记录。
    [color=red][b]自定义按钮图标去除按钮阴影/圆角[/b][/color][url]http://bbs.phonegap100.com/thread-218-1-1.html[/url][color=red][b]jQueryMobile自定义按钮图标[/b][/color]JqueryMobile自定义按钮图标[url]http://liningjustsoso.iteye.com/blog/1986769[/url][co......
  • 高效的jQuery代码编写技巧大盘点
    [b]缓存变量[/b]DOM遍历是昂贵的,所以尽量将会重用的元素缓存。//糟糕h=$('#element').height();$('#element').css('height',h-20);//建议$element=$('#element');h=$element.height();$element.css('height',h-20);[b]避免全局变......
  • jQuery动画插件: Velocity.js
    官方:[url]http://julian.com/research/velocity/[/url]介绍:[url]http://www.w3ctech.com/topic/1403[/url]使用Velocity.js改善用户体验[url]http://www.w3ctrain.com/2015/11/15/faster-ui-animations-with-velocity-js/[/url]使用VELOCITY.JS来改善和......
  • vscode插件开发----如何向输出通道中输出信息
    插件有时候需要输出一些信息,那么如何在输出通道中显示呢?使用如下代码即可:varoutputChannel:vscode.OutputChannel;//输出通道/***输出信息到控制台上,输出通道为MyCoder*@parammessage输出的文本信息*/exportfunctionmylog(message:string){if(outputC......
  • vscode插件开发----获得当前打开的文件名
    采用下面代码即可:importvscode=require('vscode');//激活函数,是首先要调用的exportfunctionactivate(context:any){//注册一个命令letdisposable=vscode.commands.registerCommand('codeStat.countCurFile',function(){leteditor=vscode.window.......
  • YouCompleteMe插件安装
    Vundle安装YouCompleteMe安装YouCompleteMe对软件版本要求,编译python默认都是静态库,YouCompleteMe需要动态库ProblemsinstallingPython3with--enable-sharedexportLD_RUN_PATH=~/opt/python3.10/lib;./configure--prefix=~/opt/python3.10/--enable-sharedexpo......
  • 分享10个最好的jQuery表单插件
    为web设计或者开发者来说,表单是我们经常需要打交道的设计元素之一。不论你开发登陆功能,在线购物功能,或者是注册功能,你都需要使用表单来执行用户输入。但其实并不是很多开发人员都关心开发或者设计表单元素。而表单设计最重要的目的在于能够将表单设计超越它本身结构以达到使用体......
  • JQuery 导航插件和图表
    [b][color=red]导航代码例子集[/color][/b]:[url]http://www.skyuu.net/jscode/adsCode/caidandaohang/[/url]15个最新的jQuery导航菜单插件[url]http://www.bobd.cn/resources/others/50381.html[/url]这篇文章中,将向大家展示采用jQuery最新技术的导航菜单......