手机版

jquery图片播放浏览插件非常好使用详解

时间:2021-10-16 来源:互联网 编辑:宝哥软件园 浏览:

一、非常好简介

1

非常好是一款基于框架的轻量级的灯箱图片播放浏览插件,它不仅支持图片,还同时支持视频、flash、YouTube、iframe和阿贾克斯。而且非常好配置和使用都十分简单,扩展性也不错,你可以最大限度地自定义非常喜欢。目前很好兼容大部分主流的浏览器,包括令人纠结的IE6。

非常好插件的项目地址:http://www .没有误差幅度。com/projects/prettophto-jquery-灯箱-克隆/

建议英文好的朋友直接去官网上了解这个插件的用法,如果你的英文很烂,那么也别急,下面我就给大家来一一介绍非常好的使用方法。

二、非常好使用方法介绍

1、引入框架核心库和非常好插件库以及非常好样式表文件

复制代码代码如下:脚本src=' http : js/jquery。js ' type=' text/JAVAScript ' charset=' utf-8 '/script link rel='样式表href=' CSS/prettypto。CSS ' type=' text/CSS ' media=' screen ' charset=' utf-8 '/script src=' http : js/jquery。很漂亮。js ' type=' text/JAVAScript ' charset='

2、初始化框架插件,以下是最简单的配置的射流研究…代码

复制代码代码如下:美元(文件)。就绪(功能(){ $('a[rel^='prettyPhoto']').prettopopto();});

下面是每种类型的超文本标记语言代码

1、单张图片

复制代码代码如下: a href=' images/全屏/2。jpg ' rel=' prettphopto ' title='这是描述img src=' http : images/thumbnals/t _ 2。jpg ' width=' 60 ' height=' 60 ' alt='这是标题/a

2、图片相册

复制代码代码如下: a href=' images/全屏/1。jpg ' rel=' prettophto[PP _ gal]' title='您可以为图片添加标题img src=' http : images/thumbnals/t _ 1。jpg ' width=' 60 ' height=' 60 ' alt=' Red round shape '/aa href=' images/全屏/2。jpg ' rel=' prettophto[PP _ gal]' img src=' http : images/thumbnals/t _ 2。jpg ' width=' 60 ' height=' 60 ' alt=' Nice building '/aa href=' images/全屏/3。jpg '/aa href=' images/全屏/4。jpg ' rel=' prettphopto[PP _ gal]' img src=' http : images/thumbnals/t _ 4。jpg ' width=' 60 ' height=' 60 ' alt=' Rock driving '/aa href=' images/全屏/5。jpg ' rel=' prettphopto[PP _ gal]' img src=' http : images/thumbnals/t _ 5。jpg ' width=' 60 ' height='//a

3、单个闪光

复制代码代码如下:土坯房。com/products/flash player/include/marquee/design。主权财富基金?width=792 height=294 ' rel=' pre photo[Flash]' title=' Flash 10 demo ' img src=' http : images/缩略图/Flash-徽标。jpg ' alt=' Flash 10 demo '宽度=' 60 '/a

4、YouTube视频

复制代码代码如下:YouTube。com/watch?v=qqxi 8 wmq _ WM ' rel=' prettphopto ' title=' img src=' http : images/缩略图/flash-徽标。jpg ' alt=' YouTube ' width=' 60 '/a

5、Vimeo

复制代码代码如下:com/8245346 ' rel=' prettyphepto ' title=' img src=' http : images/thumbnals/flash-logo。jpg ' alt=' YouTube ' width=' 60 '/a

6、快速时间影片

复制代码代码如下:a标题='卑鄙的我rel=' prettophyto[movies]' href=' http://预告片。苹果。com/movies/universal/despica blem/despica blem-TLR 1 _ r 640s。mov?宽度=640高度=360 ' img src=' http :/WP-内容/主题/NMFE/图片/缩略图/QuickTime-logo . png“alt=”卑鄙的我width=' 50 '/a title='来自地海的故事rel=' prettophyto[movies]' href=' http://预告片。苹果。com/movies/Disney/tales from Earthsea/tales from Earthsea-TLR 1 _ r 640s。mov?宽度=640高度=340 ' img src=' http :/WP-内容/主题/NMFE/图片/缩略图/QuickTime-徽标。png ' alt='来自地海的故事' width=' 50 '/A title=' glush Sing-A-Long ' rel=' pretto photo[movies]' href=' http://预告片。苹果。com/movies/paramount/greassing/greassing-TLR 1 _ r 640s。mov?宽度=640高度=272 ' img src=' http :/WP-内容/主题/NMFE/图片/缩略图/QuickTime-logo . png“alt=”油脂唱-阿-长'宽=' 50 '/阿

7、外部网站(iframe)

复制代码代码如下:谷歌。com?iframe=真宽度=100%高度=100% ' rel=' prettypheto[iframe]' title=' Google。com以100%打开谷歌。com/aa href=' http://www .苹果。com?iframe=true width=500 height=250 ' rel=' prettypheto[iframe]' apple。com/aa href=' http://www .推特。com?iframe=true width=400 height=200 ' rel=' prettopopto[iframe]' Twitter。com/a

8、普通文本

复制代码代码如下: a href=' # inline-1 ' rel=' prettphonto ' img src=' http :/WP-content/themes/NMFE/images/缩略图/earth-logo。jpg ' alt=' width=' 50 '/adiv id=' inline-1 ' class=' hide ' p这里是普通的文本/p p今天给大家介绍的非常好希望大家能喜欢,这个是播放普通文本的html/p/div

9、AJAX内容

复制代码代码如下: a rel=' pret photo[Ajax]' href='/demos/pret photo-jquery-灯箱-clone/xhr _ response。html?Ajax=真宽=325高=185 ' Ajax内容/a

三、总结

漂亮的盒子图片播放插件很好用,赶紧用它来打造你的专属相册吧!

版权声明:jquery图片播放浏览插件非常好使用详解是由宝哥软件园云端程序自动收集整理而来。如果本文侵犯了你的权益,请联系本站底部QQ或者邮箱删除。