發表文章

目前顯示的是有「jQuery plugin」標籤的文章

多層級收合式選單 Multi-level Accordion

圖片
CSS: <link href='https://fonts.googleapis.com/css?family=News+Cycle:400,700' rel='stylesheet' type='text/css'> <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"> <style> * { margin:0; padding:0; } body { font-size:100%; } .accordion { width:380px; margin:20px auto; } .accordion h1, h2, h3, h4 { cursor:pointer; } .accordion h2, h3, h4 { font-family:"News Cycle"; } .accordion h1 { padding:15px 20px; background-color:#333; font-family:Lobster; font-size:1.5rem; font-weight: normal; color:#1abc9c; } .accordion h1:hover { color:#4afcdc; } .accordion h1:first-child { border-radius:10px 10px 0 0; } .accordion h1:last-of-type { border-radius:0 0 10px 10px; } .accordion h1:not(:last-of-type) { border-bottom:1px dotted #1abc9c; } .accordion div, .accordion p { display:none; } .accordion h2 { padding:5px 25px; background-color:#1abc9c; font-size:1.1rem; ...

jQuery外掛-「SuperResize打造全螢幕背景」適用各瀏覽器

Supersized全螢背景外掛: 適用瀏覽器:IE7.0+、Chrome、Firefox、Safari、Opera 展示: http://ds.minwt.com.tw/file/sampleView/jQuery/superresizefullbackground/ Supersized 參數設定: startwidth: 640 //照片起始長度 startheight: 480 //照片起始寬度 vertical_center: 1 //垂直居中 1居中,0關閉 slideshow: 1 //自動輪播 1開,0關 navigation: 1 //播放控制鈕 1開,0關 transition: 1 //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left //轉場效果 pause_hover: 1 //滑入時停止輪播 1開,0關 slide_counter: 1 //顯示圖片筆數 1開,0關 slide_captions: 1 //圖片名稱 slide_interval: 3000 //轉場時間 Supersized 增加圖片: 加在 <div id="supersize">~</div> 之間即可,增加圖片img標籤中,可用title來設定圖片名稱。 完成後就可在各平台上運作了。