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>
在這邊也提供整個製作完成的範例讓大家下載參考,或直接觀賞網頁檔,其實這個範例還有一些額外的小東西可以改,比如說彈出視窗的圖片標題,按鈕中文化…等,還要請大家再多多研究一下囉!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
Want to remove the author? No problem, just open the field and hit ‘delete’. Additionally you can also remove any of the other fields you do not need.
Page rank
BeCyPDFMetaEdit will analyse the PDF file contents and append the title to this URL: field. Depending on the PDF object, you have the option to also set the page rank. Because this field is not standardised and you can only depend on the information embedded in the PDF file itself http://www.cssdrive.com/?URL=https://sonarejec.weebly.com
6add127376 jaiala
You can personalize your desktop background by adjusting size, transparency, rotation and placement of your favorites.
Scenic Europe Theme is compatible with other themes of Windows 10 Desktop Wallpapers, which means you can start your computer with more than one background wallpapers.
You can also install and use Scenic Europe Theme in other devices such as Windows 8/8.1, Mac and Android.
➜ Theme:
➜ Support on Theme: http://maps.google.gr/url?q=https://hydsedihis.weebly.com
6add127376 volhat
There are options for the screen-refresh rates, too. It’s safe to say that Lenovo Controller allows for the best settings of any gaming application on the market.
Lenovo Controller is free for download and completely compatible with Windows 10.
Lenovo, initially known as Lenovo Computer Corporation and formerly known as Legend Computing, is one of the world’s top personal computer (PC) manufacturers. The company produced several industry firsts and has a large global research-and-development operation in https://gsergenrire.weebly.com
6add127376 eirnkal
There are options for the screen-refresh rates, too. It’s safe to say that Lenovo Controller allows for the best settings of any gaming application on the market.
Lenovo Controller is free for download and completely compatible with Windows 10.
Lenovo, initially known as Lenovo Computer Corporation and formerly known as Legend Computing, is one of the world’s top personal computer (PC) manufacturers. The company produced several industry firsts and has a large global research-and-development operation in https://gsergenrire.weebly.com
6add127376 eirnkal
buy provigil 200mg for sale
It does come with a tool to help you batch convert files though.
Ok, I am new to this WMA file thing, and would like to know if I can get the best digital piano sound out of my iMac. I have gone through the Change settings step by step and although I have changed sample rate, bit depth, add effects, etc… I only get this strange whine effect. I have tested with my I chord and the same recordings as my Kord, and I https://pengedunpae.weebly.com
6add127376 dalcri
This is an audio-effects plug-in that simulates the sound of a power transformer on magnetic guitar pickups. It has two configurable filter settings and three tension control settings. You can fine tune to 100 cents accuracy.
Appalachian & Amadeus apps are GuitarTuner tuned sound files that can be loaded onto your iPad to help you test the parameters of your guitar. You can set the bridge position, saddle height, string height, intonation, string breaking https://kannthitonve.weebly.com
6add127376 prereb
Press the known buttons to make your edits in registry, or use an “Auto Edit” feature that finds keys and edits them automatically.
Key Features:
Add or delete multiple values in one time.
Edit time-out, more or less.
Automatic searches, based on user-defined properties.
Registry backup and restore.
Report registry keys to users.
Image converter to either PNG, JPEG, GIF and BMP.
Edits https://neutalile.weebly.com
6add127376 jancla
https://atennis.kz/tour/upload/files/2022/05/mDIYvZkCRquBsvSHxEmv_17_7f6c3bb3b0a16c8a0749c386ccdfc5bb_file.pdf
341c3170be roewal
https://ipayif.com/upload/files/2022/05/7DUVPaImtalaTnnruUTN_17_2953b46d0df8bc301c051d23bdf5bda7_file.pdf
341c3170be helsall
okaeile 341c3170be https://meetupss.com/upload/files/2022/05/dkk8umAUibj2o6cmk58p_17_fb08ced103b0dd69a84e5a6b867d4c63_file.pdf
hamolam 341c3170be https://facepager.com/upload/files/2022/05/ZjwYqho5GWhff6BcRdcd_17_1cfbf33fa2bdf5028af88aae9be72767_file.pdf
janeiga 341c3170be https://technospace.co.in/upload/files/2022/05/3eLTzbKiXErs2AHouJ5r_17_1eb1d9b01e393bf3a16b416882d864e2_file.pdf
josron 341c3170be https://1orijin.com/upload/files/2022/05/xMcArfZwZ1QjNHCJFIfY_16_201aa4c8ed584cbf8ce1cb95d5c75a41_file.pdf
provigil for sale online modafinil order online
buy modafinil 200mg without prescription buy provigil modafinil 200mg us
renyanne 341c3170be https://wap-robin.com/forum/go.php?strn=https://mimaachat.com/upload/files/2022/05/Ae2PCuPi5EnfXJKErtzw_17_282ee5d59ed2cc9f017996443e1f0f10_file.pdf
best price for daily cialis cialis pills tadalafil without a doctor’s prescription
buy provigil 100mg pill provigil 200mg us
modafinil 100mg oral modafinil 200mg us
yemwha 341c3170be https://baoviet.com.vn/Redirect.aspx?url=https://colored.club/upload/files/2022/05/eeIRKhV4ILGHcmlbxjKR_17_1ed389f9f2e14ec8438a96e240528d4f_file.pdf
fokber 341c3170be http://www.merkfunds.com/exit/?url=https://cosmonet.club/upload/files/2022/05/vtOgqWWQSSqfx2gmiFEa_17_88b3d57a0e617299b764a6f4ce3e7b49_file.pdf
generic provigil 100mg provigil 200mg cheap order modafinil 200mg generic
lasvane 341c3170be http://vpereslavle.ru/bitrix/redirect.php?event1=catalog_out&event2=eroplus.info/&goto=https://www.an.uy/upload/files/2022/05/t2K4uzOriqxpglOca4qG_17_0bd77f344196b3596879f4ed2552c437_file.pdf
brand provigil 200mg oral modafinil 200mg buy modafinil 200mg for sale
illchar 807794c184 http://www.winplc7.com/download.php?Link=https://www.cosmopolitanfashionweek.com/profile/Desktop-Clock-Free-PCWindows/profile
wanegbe 807794c184 https://www.truefitforall.com/profile/Color-Detector-Crack-Latest/profile
valezaka 807794c184 http://www.sozialemoderne.de/url?q=https://www.caixaterapeutica.com.br/profile/Append-Text-If-It-Does-Not-Exist-Software-Crack-With-Key-2022/profile
leejan 807794c184 http://www.taskmanagementguide.com/bitrix/redirect.php?event1=Download&event2=tm-trial-pro&goto=https://www.alumni-uni-koblenz-landau.com/profile/garvanshaneaqua/profile
modafinil 100mg tablet