国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 應用 > 圖文處理 > 正文

DW制作九宮格全屏亮燈輪播圖片且自動切換圖片教程

2024-07-16 17:46:58
字體:
來源:轉載
供稿:網友

本文介紹的是利用DW制作九宮格全屏亮燈輪播圖片并且可以自動切換圖片,而且點擊圖片時還會亮燈,推薦過來,大家一起來學習吧!

軟件名稱:Adobe Dreamweaver CS3 官方中文安裝版軟件大小:76.2MB更新時間:2015-05-18

方法/步驟

1、打開Adobe Dreamweaver,新建一個網頁。然后在</head>以上改為以下代碼:

<!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>jquery圖片九宮格樣式布局圖片切換</title>

<meta name="description" content="jquery圖片九宮格樣式布局通過鼠標滑過縮略圖進行大小圖片切換展示。" />

</head>

Dreamweaver cs5 制作九宮格全屏亮燈輪播圖片

2、然后在<body></body>之間插入一下代碼:

<style type="text/css">

*{margin:0;padding:0;list-style-type:none;}

a,img{border:0;}

body{font:12px/180% Arial, Helvetica, sans-serif ,"新宋體";}

/* image_show */

.image_show{width:948px;padding:3px 0 0 3px;border:1px solid #d9d9d9;margin:30px auto}

.image_show .img{padding:0 3px 3px 0;position:relative;}

.image_show .img, .image_show .img img{float:left;}

.col_left{width:191px;float:left;overflow:hidden;}

.col_right{float:left;width:450px;overflow:hidden;}

#bigImg{position:relative;width:304px;height:382px;}

#bigImg .img_mask{position:absolute;left:0;top:340px;width:304px;height:42px;background:#000;opacity:0.6;filter:alpha(opacity=60);}

#bigImg p{position:absolute;left:0;top:340px;width:304px;height:42px;line-height:42px;font-size:16px;text-align:center;color:#fff;}

#bigImg p a, #bigImg p a:visited{color:#fff;}

.mask{position:absolute;left:0;top:0;background:#000;opacity:0.4;filter:alpha(opacity=40);}

.clear{height:0;clear:both;line-height:0;font-size:0;overflow:hidden;}

</style>

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

<script type="text/javascript">

$(function(){

$('#smallImg img').mouseover(function(){

$('#bigImg img').attr('src',$(this).attr('rel'));

$('#bigImg p > a').text($(this).attr('alt'));

$('#bigImg a').attr('href',$(this).parent().attr('href'));

});

$('#smallImg .img').hover(function(){

$('.mask').fadeIn();

$(this).children('.mask').hide();

},function(){

$('.mask').fadeIn();

});

});

</script>

<div class="image_show">

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 平乐县| 昭苏县| 汶川县| 渝北区| 施甸县| 密山市| 兴仁县| 五峰| 定襄县| 岫岩| 顺义区| 昭苏县| 库伦旗| 禄丰县| 个旧市| 麦盖提县| 宜章县| 南靖县| 罗田县| 安宁市| 镇安县| 天峻县| 昭觉县| 汉寿县| 肃北| 永康市| 井陉县| 察雅县| 北票市| 禹州市| 彭山县| 宁晋县| 朔州市| 海盐县| 谷城县| 阜南县| 伽师县| 阳谷县| 礼泉县| 敦煌市| 彭水|