jQuery Plugin – LightBox2
這篇文章也在馬老師舊的部落格出現過,不過既然搬家了就重新做一次吧!其實在馬老師雲端研究室裡面也大量應用了這樣的效果,無論你在這點選了圖片或Flash都會觸發這個效果,相信大家也看過很多次了,接下來我們就看看怎麼樣在自己的網頁中加入這樣的效果,首先大家可以先到LightBox2的官方網站下載他們打包好的jQuery和CSS…等資源,或按我直接下載。
下載後會有以下三個資料夾比較重要:
- CSS資料夾是放LightBox2所需要用到的CSS樣式表
- images資料夾是放LightBox2所需要用到的圖檔(例如上一張、下一張的按鈕)
- js資料夾是放LightBox2所需要用到的jQuery檔
接下來就可以開始製作網頁,在製作前也需要先準備一些大圖和小圖,如下圖例:
範例中檔名有s的表示縮圖(160×120)、另外就是大圖(640×480),在網頁裡面首先置入縮圖,在縮圖上製作超連結到大圖。
接下來就要開始針對語法做些處理了,在HTML中<head>…</head>區段加入以下的程式碼:
<script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
第1~3行是連結LightBox2中jQuery的程式,第4行則是連結LightBox2中CSS的樣式表,再來處理超連結的語法,在原本製作圖片超連結的部份加入rel=”lightbox[g1]”的語法,如下:
<a href="foods/location_pic_1.jpg" rel="lightbox[g1]"><img src="foods/location_pic_1_s.jpg" width="160" height="120" border="0" /></a> <a href="foods/location_pic_2.jpg" rel="lightbox[g1]"><img src="foods/location_pic_2_s.jpg" width="160" height="120" border="0" /></a> <a href="foods/location_pic_3.jpg" rel="lightbox[g1]"><img src="foods/location_pic_3_s.jpg" width="160" height="120" border="0" /></a>
其中g1的部份是表示這個圖片的群組,如果三張圖片都是g1則點選任一張,都可以在畫面中切換看到這三張,但若兩張圖片是g1第三張是g2的話,點選第一張圖片後只能切換到第二張,第三張則為獨立的圖檔,大家可以依照自己的情形修改括號內的文字,整體製作好的網頁語法如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>LightBox2</title> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> </head> <body> <a href="foods/location_pic_1.jpg" rel="lightbox[g1]"><img src="foods/location_pic_1_s.jpg" width="160" height="120" border="0" /></a> <a href="foods/location_pic_2.jpg" rel="lightbox[g1]"><img src="foods/location_pic_2_s.jpg" width="160" height="120" border="0" /></a> <a href="foods/location_pic_3.jpg" rel="lightbox[g1]"><img src="foods/location_pic_3_s.jpg" width="160" height="120" border="0" /></a> </body> </html>
在這邊也提供整個製作完成的範例讓大家下載參考,或直接觀賞網頁檔,其實這個範例還有一些額外的小東西可以改,比如說彈出視窗的圖片標題,按鈕中文化…等,還要請大家再多多研究一下囉!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
price of cialis 20 mg cialis coupon cialis 20 mg price
modafinil 200mg sale
order modafinil generic provigil pill oral modafinil 100mg
generic modafinil 200mg order modafinil sale buy modafinil 100mg sale
provigil drug
sildenafil sildenafil 100 mg lowest price sildenafil 100 mg
order modafinil without prescription order generic modafinil order modafinil pill
provigil 100mg pills buy provigil 100mg generic
buy modafinil 200mg online buy generic provigil
order modafinil generic modafinil 100mg ca
is erythromycin a sulfa drug erythromycin ophthalmic solution
price of cialis 20 mg cialis from india tadalafil
modafinil pills provigil 100mg pill
modafinil online buy
3.5
■ Windows 7 or higher
Installation;
1. Before installing, please run setup.exe and read the license agreement. You can use the “I Agree” button or it may guide you through the installation.
2. After you open installer program, next you will see “IE installation”. You need to select option “Yes, I want to install the latest IE”. Click on “Install”.
3. From now on, Bandy manager application will https://influencerstech.com/upload/files/2022/05/VFYa3PnohWXZyj7L8gpI_19_c07d5912ca99f5a483b7b0cafe48ce67_file.pdf 05e1106874 karesamp
modafinil oral modafinil 100mg sale
provigil order online
buy generic provigil 100mg provigil online order
Size: 538 kb.
Saturday, December 24, 2016
If you are using the Theta S is site for music promotion, you are excited to visit the Theta S site,as i will review Music Promotion Tools Theta S in this post.
Sites are just never ending. It is absolutely amazing the way they are continuously being developed to keep interests of users going! Today, many applications and websites are being invented to keep human creativity to do different things in https://www.bausch.com.my/en/redirect/?url=https://eswalilreu.weebly.com
6add127376 marthom
No additional tools or plug-ins need to be downloaded in order to run it, and the interface is clean and well organized.
Tag Editor Pro claims to be the, “easy and quickest way to edit song tags,” but does it really live up to that promise?
More specifically, does it allow you to find and edit song tags with ease?
As their tag editing methods are no different from those of others, what is then making them better than the https://busitilo.weebly.com
6add127376 meawlyn
The list of supported formats is built by use of context-free grammars with the aid of pygrep and pyuniparse Python libraries.
Supported formats are:
■ EUC/EUC-JP
■ SJS
■ JFC
■ JQuickTrans (Some of the checks are BFM specific)
■ Kanjidic
■ Kanji Gold
■ PenPen http://maps.google.rw/url?rct=j&sa=t&url=https://scapvizandzo.weebly.com
6add127376 daryyaki
The list of supported formats is built by use of context-free grammars with the aid of pygrep and pyuniparse Python libraries.
Supported formats are:
■ EUC/EUC-JP
■ SJS
■ JFC
■ JQuickTrans (Some of the checks are BFM specific)
■ Kanjidic
■ Kanji Gold
■ PenPen http://maps.google.rw/url?rct=j&sa=t&url=https://scapvizandzo.weebly.com
6add127376 daryyaki
Download FRSDiag
I liked FRSDiag very much, it enabled me to get a better idea of the state of our file replication and perform some tests on that data. I decided to take this further by using FRSDiag to automate a series of tests and compile all the results into a single report for further investigation. I thought it would be a good idea to do a blog post about my experiences in this area.
Microsoft has released a fix (MS https://image.google.com.cy/url?q=https://neymisnoce.weebly.com
6add127376 gearmart
Visit Site
3. Gally Picture Shine Software
Name: Gally Picture Shine Software
License: Freeware
Price: $0.00
File size: 1.99 MB
Developer: Gally
Version: None
Processor: Windows 2000/XP, Vista, and Windows 7/8
Programming language: Java, CLI
Downloadable from: https://apex-sst.ru/bitrix/redirect.php?goto=https://cardpepeli.weebly.com
6add127376 marcodd
AndroidXplorer is an easy-to-use and versatile backup application that simplifies your life, allowing you to quickly and efficiently take screenshots, backup text, sound, images and movies and synchronize them between your Android smartphones and devices using 3G or Wi-Fi.
Screenshots
AndroidXplorer enables you to take screenshots of the whole screen, only part of it, or a rectangular region of the active application. Not only that, but you may also get rid of http://images.google.sh/url?sa=t&url=https://relalago.weebly.com
6add127376 fabbann
Need the right attention on your new website? Say one simple word, flash!!! It can be one of the simplest means of attracting the number of visitors to your website. It is a fun, simple and affordable technique of selling products or services to the target market which includes website owners, web designers, graphic designers, web developers, flyers, business cards, etc.
After watching many sites and using the most recent SEO method, I have acquired a lot of valuable websites that are already http://labellefrance.tv/home/shop/bannerhit.php?bn_id=76&url=https://joegritalar.weebly.com
6add127376 warrkala
This utility is a C program that cleans up the Windows registry on the local machine using the Windows operating system service called “RegSvr32”.
Mofei was created starting from scratch by Fernando Tomaz Bocella, Sofia Nascimento, and Marcelo Amaral Fonseca, with some final touches by
Rob Rasmussen.
The distribution of Mofei does not include the PAK-files of the German version, but this package is available on https://switalenol.weebly.com
6add127376 brievisi
1. Field of the Invention
The present invention relates to an exhaust gas purifying apparatus for use in an engine for an automobile.
2. Description of Related Art
There has been known a technique of treating in a passage a harmful substance generated during an exhaust gas by addition of a fuel component therein, to remove a harmful substance in the exhaust gas from the automobile or to modify the amount of the harmful substance in the exhaust gas (see Japanese Unexamined Patent Publication Nos. 58 https://google.tn/url?q=https://resttidolna.weebly.com
6add127376 ronwylv
Our testers have found the conversion of GIF, BMP, JPG, JPE, WEBP and TIFF images to be successfu and this SDK also offers other functionality like batch conversion, thumbnail generation, cropping and page segmentation.
To use this SDK, developers need to go through the wizard interface created for the different types of images, including examples of how to use it.
TIFFs to PDF offers three basic methods of converting the source files to the desired format. https://images.google.co.tz/url?q=https://inliachalsubs.weebly.com
6add127376 kircarl
viagra tablets for men viagra viagra