Ⅰ HTML輪播圖片代碼,帶解釋
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>五圖三屏輪播js特效代碼</title>
<meta name="Keywords" content="五圖三屏輪播js特效代碼" />
<meta name="description" content="五圖三屏輪播js特效代碼" />
<link href="http://img.chinaz.com/max-templates/passport/styles/topbar.css" type="text/css" rel="Stylesheet" />
<link href="/style/style_kj.css" type="text/css" rel="stylesheet" />
<link href="/style/demo.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/style/js/jquery-1.2.pack.js"></script>
<script type="text/javascript">
var theme_list_open = false;
$(document).ready(function () {
function fixHeight() {
var headerHeight = $("#switcher").height();
$("#iframe").attr("height", $(window).height()-84 + "px");
}
$(window).resize(function () {
fixHeight();
}).resize();
//響應式預覽
$('.icon-monitor').addClass('active');
$(".icon-mobile-3").click(function () {
$("#by").css("overflow-y", "auto");
$('#iframe-wrap').removeClass().addClass('mobile-width-3');
$('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
$(this).addClass('active');
return false;
});
$(".icon-mobile-2").click(function () {
$("#by").css("overflow-y", "auto");
$('#iframe-wrap').removeClass().addClass('mobile-width-2');
$('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
$(this).addClass('active');
return false;
});
$(".icon-mobile-1").click(function () {
$("#by").css("overflow-y", "auto");
$('#iframe-wrap').removeClass().addClass('mobile-width');
$('.icon-tablet,.icon-mobile,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
$(this).addClass('active');
return false;
});
$(".icon-tablet").click(function () {
$("#by").css("overflow-y", "auto");
$('#iframe-wrap').removeClass().addClass('tablet-width');
$('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
$(this).addClass('active');
return false;
});
$(".icon-monitor").click(function () {
$("#by").css("overflow-y", "hidden");
$('#iframe-wrap').removeClass().addClass('full-width');
$('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
$(this).addClass('active');
return false;
});
});
</script>
<script type="text/javascript">
function Responsive($a) {
if ($a == true) $("#Device").css("opacity", "100");
if ($a == false) $("#Device").css("opacity", "0");
$('#iframe-wrap').removeClass().addClass('full-width');
$('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
$(this).addClass('active');
return false;
};
</script>
</head>
<body id="by" style="overflow-y: hidden" >
<div id="switcher">
<div class="center">
<ul>
<li class="logoTop">在線預覽!</li>
<div id="Device">
<li class="device-monitor"><a href="javascript:"><div class="icon-monitor"></div></a></li>
<li class="device-mobile"><a href="javascript:"><div class="icon-tablet"> </div></a></li>
<li class="device-mobile"><a href="javascript:"><div class="icon-mobile-1"> </div></a></li>
<li class="device-mobile-2"><a href="javascript:"><div class="icon-mobile-2"> </div></a></li>
<li class="device-mobile-3"><a href="javascript:"><div class="icon-mobile-3"> </div></a></li>
</div>
</ul>
<div class="muen_top">
<a href="/" class="indexactive">首頁</a>
<a href="/tupian/" class="l11active" target="_blank">高清圖片</a>
<a href="/moban/" class="l12active" target="_blank">模板</a>
<a href="/ppt/" class="l726active" target="_blank">ppt模板</a>
<a href="/tubiao/" class="l49active" target="_blank">圖標</a>
<a href="/kuzhan/" class="l713active" target="_blank">酷站</a>
<a href="http://font.chinaz.com/" class="l13active" target="_blank">字體</a>
<a href="/psd/" class="l713active" target="_blank">PSD素材</a>
<a href="/shiliang/" class="l15active" target="_blank">矢量圖</a>
<a href="/yinxiao/" class="l713active" target="_blank">音效</a>
<a href="/biaoqing/" class="l560active" target="_blank">表情</a>
<a href="http://desk.chinaz.com/" class="l713active" target="_blank">壁紙</a>
<a href="/donghua/" class="l653active" target="_blank">動畫</a>
<a href="/jiaoben/" target="_blank">腳本</a>
<a href="/zhuanti/" target="_blank">專題</a>
</div>
<div class="tougao">
<a href="http://sc.chinaz.com/tougao.html" target="_blank">我要投稿</a>
</div>
</div>
</div>
<div id="iframe-wrap">
<iframe id="iframe" src="http://demo.sc.chinaz.com//Files/DownLoad/webjs1/201604/jiaoben4160/" frameborder="0" width="100%"> </iframe>
</div>
<div id="footer-notice" class="kj_bottom">
<div style=" width:980px; margin:0 auto">
<p class="left cut">
<span>名稱:</span>
<a href="/jiaoben/160419378420.htm" title="點擊下載" class="down" target="_blank">五圖三屏輪播js特效代碼</a>
<span>類型:</span>
<a href="/jiaoben/" title="腳本" target="_blank">腳本</a>
<span>標簽:</span><a href="/tag_jiaoben/js.html" target="_blank">js</a><a href="/tag_jiaoben/JiuGongGe.html" target="_blank">九宮格</a><a href="/tag_jiaoben/TuPianQieHuan.html" target="_blank">圖片切換</a><a href="/tag_jiaoben/TuPianLunBo.html" target="_blank">圖片輪播</a>
</p>
<p class="left">
<span>分享到:</span>
<a title='分享到新浪微博' href="javascript:void(0)" id="fxwb" class="sn">新浪</a>
<a title='分享到騰訊微博' href='javascript:void(0)' onclick=posttoWb() class="tx">騰訊</a>
<a title="分享到qq空間" href="javascript:window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));void(0)" class="qq">QQ空間</a>
</p>
<div class="clear"></div>
</div>
</div>
<script type="text/javascript">
var description = '五圖三屏輪播js特效代碼: 五圖三屏輪播js特效代碼是一款ZHIME織蜜內衣絲襪五圖三屏圖片切換特效。';
var sendT = {
getHeader: function () {
var g_title = description;
var re = /<[^<>]*?font[^<>]*?>/gi;
g_title = g_title.replace(re, "");
return g_title;
},
getFirstImgSrc: function () {
var allPageTags = document.getElementsByTagName("div");
for (var i = 0; i < allPageTags.length; i++) {
if (allPageTags[i].className == 'downtext') {
if (allPageTags[i].getElementsByTagName("img")[0] && allPageTags[i].getElementsByTagName("img")[0].width > 200) {
return allPageTags[i].getElementsByTagName("img")[0].src;
}
else {
return null;
}
}
}
},
getContent: function () {
var allPageTagss = document.getElementsByTagName("div");
for (var i = 0; i < allPageTagss.length; i++) {
if (allPageTagss[i].className == 'downtext') {
return allPageTagss[i].innerHTML;
}
}
}
}
document.getElementById("fxwb").onclick = function () {
(function (s, d, e, r, l, p, t, z, c) {
var f = 'http://service.weibo.com/share/share.php?appkey=872996044&', u = z || d.location, p = ['url=', e(u), '&title=', e(sendT.getHeader()), '&source=', e(r), '&sourceUrl=', e(l), '&content=', c || 'gb2312', '&pic=', e(p || '')].join('');
function a() {
if (!window.open([f, p].join(''), 'mb', ['toolbar=0,status=0,resizable=1,width=440,height=430,left=', (s.width - 440) / 2, ',top=', (s.height - 430) / 2].join(''))) u.href = [f, p].join('');
};
if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();
})(screen, document, encodeURIComponent, 'CHINAZ', 'http://sc.chinaz.com/', sendT.getFirstImgSrc(), null, null, null);
}
function posttoWb() {
var _tt = description;
var _t = encodeURI(_tt.replace(/\s+$/, ''));
var _url = encodeURI(window.location);
var _appkey = encodeURI("");
var _site = encodeURI('sc.chinaz.com');
var _pic = sendT.getFirstImgSrc();
var _u = 'http://v.t.qq.com/share/share.php?title=' + _t + '&url=' + _url + '&appkey=' + _appkey + '&site=' + _site + '&pic=' + _pic;
window.open(_u, '轉播到騰訊微博', 'width=700, height=580, top=320, left=180, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');
}
</script>
<script type="text/javascript" src="/js/softinfo.js.aspx?id=534084" defer="defer" charset="UTF-8"></script>
<div style="display:none">
<script src="http://s4.cnzz.com/stat.php?id=300636&web_id=300636" language="JavaScript"></script>
</div>
</body>
</html>
自己修改一下就可以了
Ⅱ 文字輪播怎麼做
好吧 樓上的都發完了 不愧是我二姐 不過還有其他的。 先試試吧
Ⅲ HTML設置字體格式的代碼
HTML標簽:
<b>粗體格式</b>
<i>斜體格式</i>
<small>小字體格式</small>
<font size="2">這一段的字體大小的值是2。</font>
<font fac="arial">這一段的字體是arial。</font>
文字<sub>下標</sub>格式
文字<sup>上標</sup>格式
CSS格式:
#span1 {font-weight:bold; /*粗體*/<br>font-size:16px;/*字體大小*/<br>font-family:arial;/*字體為arial*/<br>color:#ff0000;/*顏色紅色*/<br>background-color:#fffff/*背景色白色*/<br>}
Ⅳ 網頁設計字體滾動代碼
文字滾動是由<marquee></marquee>控制的。marquee的參數如下:
1、方向 <direction=#> #=left, right
如:<marquee direction=left>啦啦啦,我從右向左移!</marquee>
<marquee direction=right>啦啦啦,我從左向右移!</marquee>
2、方式 <bihavior=#> #=scroll, slide, alternate
如:<marquee behavior=scroll>啦啦啦,我一圈一圈繞著走!</marquee>
<marquee behavior=slide>啦啦啦,我只走一次就歇了!</marquee>
<marquee behavior=alternate>啦啦啦,我來回走耶!</marquee>
3、循環 <loop=#> #=次數;若未指定則循環不止(infinite)
如:<marquee loop=3 width=50% behavior=scroll>啦啦啦,我只走 3 趟喲!</marquee>
<marquee loop=3 width=50% behavior=slide>啦啦啦,我只走 3 趟喲!</marquee>
<marquee loop=3 width=50% behavior=alternate>啦啦啦,我只走 3 趟喲!</marquee>
4、速度 <scrollamount=#>
如:<marquee scrollamount=20>啦啦啦,我走得好快喲!</marquee>
5、延時 <scrolldelay=#>
如: <marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>
6、對齊方式(Align) <align=#> #=top, middle, bottom
如:<font size=6>
<marquee align=# width=400>啦啦啦,我會移動耶!</marquee>
</font>
7、底色 <bgcolor=#>
#=rrggbb 16 進制數碼,或者是下列預定義色彩:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua
如:<marquee bgcolor=aaaaee>啦啦啦,我會移動耶!</marquee>
8、面積 <height=# width=#>
如:<marquee height=40 width=50% bgcolor=aaeeaa> 啦啦啦,我會移動耶!</marquee>
9、空白(Margins)<hspace=# vspace=#>
<marquee id="scrollarea" direction="up" scrolldelay="10" scrollamount="1" width="150" height="80" onmouseover="this.stop();" onmouseout="this.start();">
------------------------------------------------------------------------------------------------------------------------------
<marquee></marquee>
以下是一個最簡單的例子:
代碼如下:
<marquee><font size=+3 color=red>Hello, World</font></marquee>
下面這兩個事件經常用到:
onMouseOut="this.start()" :用來設置滑鼠移出該區域時繼續滾動
onMouseOver="this.stop()":用來設置滑鼠移入該區域時停止滾動
代碼如下:
<marquee >onMouseOut="this.start()" :用來設置滑鼠移出該區域時繼續滾動 :用來設置滑鼠移入該區域時停止滾動</marquee>
這是一個完整的例子:
代碼如下:
<marquee align="left" behavior="scroll" bgcolor="#FF0000" direction="up" height="300" width="200" hspace="50" vspace="20" loop="-1" scrollamount="10" scrolldelay="100" >
這是一個完整的例子
</marquee>
該標簽支持的屬性多達11個:
align
設定<marquee>標簽內容的對齊方式
absbottom:絕對底部對齊(與g、p等字母的最下端對齊)
absmiddle:絕對中央對齊
baseline:底線對齊
bottom:底部對齊(默認)
left:左對齊
middle:中間對齊
right:右對齊
texttop:頂線對齊
top:頂部對齊
Ⅳ 怎麼實現導航欄字體隨著圖片的輪播而改變顏色 求JS代碼
給圖片做個標示吧例如一張圖片是紅色,flag="red",然後判斷這個標示(flag)你試試
Ⅵ 字體代碼
#m_artclg div.item 子項{color:#666666;font-size:12px}
#m_artclg div.item a 分類名稱(鏈接){color:#3399CC;font-size:12px}
#m_artclg div.item a:visited{color:#3399CC}
#m_artclg div.line 分界線{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}
Ⅶ CSS代碼如何設置圖片周圍字體環繞
1、准備一張圖片,新建一個空白html文件
Ⅷ HTML文字左右滾動代碼,可控制字體大小,顏色。
最簡單的方法<marquee style="color:red; font-size:large">dddddddddddddddd</marquee>
Ⅸ 可以動的PS字體代碼
PS不需要代碼
Ⅹ 如何在這段文字滾動代碼中加上字體設置要求,字體為微軟雅黑,字型大小為18,謝謝
style="font-size:18px;font-family:微軟雅黑;WIDTH:250px;HEIGHT:100px"