!DOCTYPE?html
臨夏ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!
head
meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/
titletest/title
style?type="text/css"
*{margin:0;padding:0;}
body{background:?#C8EDCC;?font-size:?14px;?color:?#333;}
a{text-decoration:?none;}
li{list-style:?none;}
.fl{float:?left;}
.fr{float:?right;}
.clear{clear:both;display:?block;}
.top,.nav,.banner,.content,.g_notice,.foot{width:?960px;?margin:?0?auto;}
.top{height:40px;}
.logo{display:block;width:130px;?height:?40px;}
.top_right{width:?830px;?height:?40px;}
.top_right?a{display:block;?float:?right;?line-height:?40px;?color:#666;?padding-right:8px;}
.nav{height:?30px;background:?#010080;}
.nav?li{float:?left;?display:block;?width:?160px;?height:?30px;?line-height:?30px;}
.nav?li,.nav?li?a{color:?#fff;?display:block;?width:?160px;?height:?30px;?line-height:?30px;text-align:?center;}
.content,.con_part1,.con_part2,.con_part3{height:?300px;}
.con_part1{width:?310px;?margin-right:?10px;}
.con_part2{width:?470px;?margin-right:?10px;}
.con_part3{width:?160px;?}
.con_part1?ul?li,.con_part3?ul?li{height:?28px;?line-height:?28px;padding-left:2px;?}
.con_part1?ul?li?a,.con_part3?ul?li?a{color:?#666;}
.con_part2?p{text-indent:2em;?font-size:?14px;?line-height:?28px;}
.more{color:?#333;}
.g_notice{padding:28px?0;}
.u_colon{width:80px;?color:#777;?font-size:16px;?display:inline-block;?}
#g_scrollNotice{display:inline-block;?width:958px;?height:28px;?line-height:28px;?overflow:hidden;?*position:relative;?*overflow:hidden;?padding-left:34px;?*background-position-y:2px;}
#g_scrollNotice?li{height:28px;?padding-left:10px;?color:#777;?font-size:16px;?}
.foot{text-align:?center;?height:?30px;?line-height:?30px;}
/style
/head
body
div?class="top?clear"
a?class="logo?fl"?href=""?title="logo"img?src=""?width="130px"?height="40px"?//a
div?class="top_right?fl?"
div?clas="clear"
a?href=""聯(lián)系我們/a
a?href=""加入收藏?|/a
a?href=""設(shè)為首頁?|/a
/div
/div
/div
div?class="nav"
ul
lia?href=""網(wǎng)站首頁/a/li
lia?href=""新聞動態(tài)/a/li
lia?href=""圖片相冊/a/li
lia?href=""精彩活動/a/li
lia?href=""招聘啟事/a/li
lia?href=""聯(lián)系我們/a/li
/ul
/div
div?class="banner"???
a?href=""?title="banner"img?src=""?width="960px"?height="110px"?//a
/div
div?class="content?clear"
div?class="con_part1?fl"
h2新聞動態(tài)/h2
ul
lia?href=""一條新聞/a/li
lia?href=""一條新聞/a/li
lia?href=""一條新聞/a/li
lia?href=""一條新聞/a/li
lia?href=""一條新聞/a/li
lia?href=""一條新聞/a/li
lia?href=""一條新聞/a/li
lia?href=""一條新聞/a/li
/ul
/div
div?class="con_part2?fl"
h2公司介紹/h2
p公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹公司介紹a?class="more"?href=""【更多】/a/p
/div
div?class="con_part3?fr"
h2聯(lián)系我們/h2
ul
liQQ:/li
li電話:/li
li官網(wǎng):a?href=""www/a/li
li地址:/li
/ul
/div
/div
div?class="g_notice"
div?id="g_scrollNotice"?class="clearfix"
span?class="u_colon?fl"最新活動:/span
ul?class="fl"
li滾動新聞1/li
li滾動新聞2/li
li滾動新聞3/li
li滾動新聞4/li
li滾動新聞5/li
li滾動新聞6/li
li滾動新聞7/li
li滾動新聞8/li
/ul
/div
/div
div?class="foot"COPYRIGHT2014HUALI/div
/body
/html
script?type="text/javascript"?src="jquery-1.9.1.min.js"/script
script?type="text/javascript"
function?AutoScroll(obj){
$(obj).find("ul:first").animate({
marginTop:"-28px"
},500,function(){
$(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
});
}
$(document).ready(function(){
setInterval('AutoScroll("#g_scrollNotice")',2000)
});
/script
具體細(xì)節(jié)你自己調(diào)一調(diào)吧,寬高,邊框都是隨便寫的
jq文件自己加下
1、首先打開myeclipse獲取idea這樣的編輯器,在編輯器中寫一個table標(biāo)簽,這里給出table的值。
2、然后可以在頁面中看到此時展示的是沒有樣式的table樣板,此時所有的數(shù)據(jù)沒有經(jīng)過渲染,比較緊湊,也不是一個頁面展示。
3、可以在table中引入樣式標(biāo)簽style來設(shè)計table的樣式。
4、還可以使用內(nèi)部元素,使用jquery ,在jquery中首先給table一個class屬性,在JavaScript中通過.class屬性獲取這個table,給出樣式設(shè)計。
5、根據(jù)上面的設(shè)計再經(jīng)過背景、寬度、高度的設(shè)計,可以設(shè)計出一個比較好看的table。
!doctype html
html
head
meta http-equiv="Content-Type" content="text/html; charset=gbk" /
title滑動門/title
style
!--
* {
margin:0;
padding:0;
font-size:12px;
}
body {
padding:30px;
}
.tabsBox {
width:400px;
margin:20px auto;
}
.tabs {
height:20px;
}
.tabs li {
width:80px; text-align:center;
padding-top:2px;
line-height:18px;
float:left;
background-color:#ccc;
margin-right:5px;
list-style:none;
position:relative;
cursor:pointer;
color:#333;
}
.tabs li span {
display:none;
}
.tabs .cur {
background-color:#f0f0f0;
}
.tabs .cur span {
display:block;
width:1px;
height:1px;
border:solid 8px;
border-color:#f0f0f0 #fff #fff #fff;
position:absolute;
top:20px;
left:32px;
overflow:hidden;
z-index:-1;
}
.cons {
height:120px;
padding:8px 12px;
overflow:hidden;
border:1px solid #f0f0f0;
position:relative;
z-index:1;
}
.cons ul li {
list-style:none;
line-height:20px;
}
.hidden {
display:none;
}
.block {
display:block;
}
--
/style
/head
body
div class="tabsBox"
ul id="Tabs" class="tabs"
li class="cur"最新更新span/span/li
li推薦下載span/span/li
li下載排行span/span/li
li本月排行span/span/li
/ul
div id="TabsCon" class="cons"
ul
lia href="/soft/4764.shtml" target="_blank"基于JavaScript的氣泡提示網(wǎng)頁版/a/li
lia href="/soft/8021.shtml" target="_blank"C#調(diào)用OFFICE組件生成Excel表格示例/a/li
lia href="/soft/9011.shtml" target="_blank"iFrame 框架在多頁面間相互傳值的實(shí)例/a/li
lia href="/soft/1658.shtml" target="_blank"高亮顯示代碼的在線編輯器ASP.NET版/a/li
lia href="/soft/1852.shtml" target="_blank"《Java2核心技術(shù)卷2:高級特性》第7版中文高清 PDF/a/li
lia href="/soft/1361.shtml" target="_blank"VB餐廳POS收銀軟件/a/li
/ul
ul
lia href="/soft/1361.shtml" target="_blank"VB餐廳POS收銀軟件/a/li
lia href="/soft/3855.shtml" target="_blank"VB 6.0 簡體中文標(biāo)準(zhǔn)版/a/li
lia href="/soft/8467.shtml" target="_blank"Delphi加密隱藏或還原Windows盤符驅(qū)動器/a/li
lia href="/soft/5238.shtml" target="_blank"ImageVue 2.0 PHP+FLASH+XML高級相冊/a/li
lia href="/soft/7667.shtml" target="_blank"VB商品零售進(jìn)銷存程序含MSSQL數(shù)據(jù)庫文件/a/li
/ul
ul
lia href="/jscss/code/1915.shtml" target="_blank"jQuery 模塊拖動,拖動層效果,可淡入淡出/a/li
lia href="/jscss/code/1914.shtml" target="_blank"jQuery單行新聞滾動/a/li
lia href="/jscss/code/1913.shtml" target="_blank"經(jīng)典的jQuery多行文本滾動/a/li
lia href="/jscss/code/1912.shtml" target="_blank"JS圖片切換學(xué)習(xí)版,沒有過多修飾/a/li
lia href="/jscss/code/1911.shtml" target="_blank"漂浮廣告代碼,Js演示/a/li
lia href="/jscss/code/1910.shtml" target="_blank"邊滾邊停的JS圖片滾動/a/li
/ul
ul
lia href="/soft/9217.shtml" target="_blank"遞歸讀取數(shù)據(jù)庫創(chuàng)建樹控菜單的Delphi例子/a/li
lia href="/soft/9199.shtml" target="_blank"VB抓取DLL或EXE應(yīng)用程序內(nèi)的圖標(biāo)資源/a/li
lia href="/soft/9236.shtml" target="_blank"jQuery StartStopSlider 滾動切換插件/a/li
lia href="/soft/9235.shtml" target="_blank"jQuery EasyUI 實(shí)例演示(菜單、TAB等)/a/li
lia href="/soft/9227.shtml" target="_blank"VB+SQL2000考試卷(題庫)生成與管理系統(tǒng)/a/li
/ul
/div
/div
script
!--
var lis = document.getElementByIdx_x("Tabs").getElementsByTagName_r("li");
var uls = document.getElementByIdx_x("TabsCon").getElementsByTagName_r("ul");
var order = 0;
for(var i=0; ilis.length; i++){
lis[i].value = i;
lis[i].onmouseover = function(){
ChangeTabs(this.value);
};
uls[i].className = "hidden";
}
lis[order].className = "cur";
uls[order].className = "block";
function ChangeTabs(nowTab){
lis[order].className = "";
uls[order].className = "hidden";
order = nowTab
lis[nowTab].className = "cur";
uls[nowTab].className = "block";
}
--
/script
/body
/html
//聲明一個為0的變量做記錄值
doucument.body.addEvenetListener('touchstart',function(e){
//記錄下按下時的e.touches[0].clientY或者e.touches[0].pageY;
});
document.body.addEventListener('touchmove',function(e){
//獲取當(dāng)前e.touches[0].clientY或者e.touches[0].pageY 并且與之前記錄的值比較 當(dāng)前值大于之前值的話就可以判斷當(dāng)前動作是在向上滑動 然后做翻頁的操作即可
});
如果用現(xiàn)成的js框架做的話 有一個叫quo.js的框架非常不錯
這個上下活動效果你可以網(wǎng)上找個你想要的js效果,整合到你欄目頁去即可,剩下的就是調(diào)試了,具體情況而視,如果涉及到嵌入標(biāo)簽還得弄標(biāo)簽,還沒弄好可以找硪?guī)兔?/p>
分享標(biāo)題:滾動新聞jquery,滾動新聞是什么意思
標(biāo)題路徑:http://www.chinadenli.net/article12/dseoggc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、網(wǎng)站制作、微信小程序、網(wǎng)站建設(shè)、靜態(tài)網(wǎng)站、外貿(mào)網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)