導航:首頁 > 動漫圖片 > 怎麼做網頁滾動圖片

怎麼做網頁滾動圖片

發布時間:2023-09-16 02:24:30

Ⅰ 網頁設計HTML怎麼設置所有圖片一排橫著滾動

HTML頁面圖片橫向滾播效果:

<html>
<head>
<style>
body{margin:0px;}
ul{list-style:none; border:0; padding:0px; margin:0px;}
li{list-style:none; float:left; border:0; padding:0px; margin:0px;}
img{border:0px; padding:0px; margin:0px;}
</style>
</head>
<body>
<center><div id="div1" style="overflow:hidden; cursor:hand; margin-top:50px;" onmouseover="stop()" onmouseout="ss()">
<ul id="img" style="clear:both;"><!--放圖片的容器,此容器在div1里滾動-->
<!--以下是要滾動的內容-->
<li><img id="img0" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
<li><img id="img1" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
<li><img id="img2" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
<li><img id="img3" src="http://www.alixixi.com/images/index180.gif" width="100" height="100" style="display:block;" /></li>
</ul>
</div>
</center>
<script language="javascript">
var w,h,id,speed,Html
w=400;//-------滾動容器的寬度--------//
h=100;//-------滾動容器的高度--------//
id="div1";//-------滾動容器的id--------//
direction="left";//-------滾動方向有四個值

如何在HTML中實現圖片的滾動效果

<MARQUEE onmouseover=stop() onmouseout=start() scrollAmount=3 loop=infinite deplay="0"><IMG src="第一張圖片地址" ><IMG src="第二張圖片地址"></MARQUEE>
注釋:
1) scrollAmount。它表示速度,值越大速度越快。
2) 加入onmouseover=stop() onmouseout=start()代碼,滑鼠指向循環文字圖片時他們會停止滾動,滑鼠離開時繼續滾動。
給滾動圖片加超鏈接
用<a href=>和</a>把<img>包圍,並且img必須設border=0,否則圖片會出現邊框。例子如下:
<MARQUEE scrollAmount=3 loop=infinite deplay="0"><a href="鏈接網址"><img src="圖片網址" border=0></a></MARQUEE>
圖片從右到左滾動
<MARQUEE width=寬 height=高 onmouseover=stop() onmouseout=start() scrollAmount=速度 loop=infinite deplay="0"><img src="圖片地址 "><img src="圖片地址 ">···</MARQUEE>
圖片從下到上滾動
<marquee behavior="scroll" direction=up width="寬" height="高" scrollamount="5" onmouseout="this.start()"><img src="圖片網址 "><img src="圖片網址 ">···</marquee>
帶有超鏈接的圖片實現滾動效果
<marquee behavior="scroll" direction=up width="120" height="60" scrollamount="1" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()"><a target="cont" href="連接地址"><img src="http://圖片地址" idth="88" height="33" border="0"></a><a target="cont" href="連接地址"><img src="圖片地址" width="88" height="33" border="0"></a></marquee>

Ⅲ 如何把很多張照片做成可以滾動播放的圖片

1、雙擊打開愛剪輯軟體,在開始頁面設置作品和作者的名稱。

Ⅳ DW設計網頁中,像這種讓圖片在一個方框內自己滾動的效果怎麼做

圖片輪播。
需要用到js,大致就是設置定時器,然後把圖片橫向拼接在一起,只顯示方框內的,方框外的用hidden隱藏,然後每過一段時間進行向左平移一個圖片的距離,走完全部之後在進行無限循環

Ⅳ 網頁中的圖片滾動效果是怎麼實現的啊

設置層高,比如position:absoulute; z-index:999; top:100px; right:0px;

示例用法:

<html>

<head><title>123</title></head>

<body style="width:1024px; height:2000px;">

<p style="width:100px; height:100px; background-color:red;position:fixed; z-index:999; top:100px; right:0px;">

<img src="圖片地址" />

<p>

</body>

</html>

圖片中的P標簽里有圖片,我這里設置P區塊為寬高各100,用position:fixed定位,距離頂部100像素,右邊0像素漂浮著,z-index:999就是層高,可以理解為層高越高就可以漂浮在網頁上面。

效果如下:

不管如何滾動網頁滾動條 上下翻 左右翻都一直在屏幕距離頂部100像素,右邊0像素漂浮著。

閱讀全文

與怎麼做網頁滾動圖片相關的資料

熱點內容
布娃娃睡著可愛圖片 瀏覽:377
魔鬼魚可愛圖片 瀏覽:209
大一男生正裝帥氣圖片 瀏覽:862
劉海中分長發發型圖片 瀏覽:145
男生穿牛仔衣服圖片 瀏覽:807
美女和錢圖片大全 瀏覽:714
動漫女生戴耳機圖片酷 瀏覽:13
兒童蒙古畫圖片大全 瀏覽:859
實物女士正裝黑色領結簡單圖片 瀏覽:202
圖片大全真實男生頭像 瀏覽:782
男發型名稱及其圖片介紹 瀏覽:718
男生進入圖片 瀏覽:800
小女孩內褲有東西圖片 瀏覽:178
動漫人物意境圖片女生 瀏覽:922
橄欖圖片手機壁紙高清 瀏覽:140
鹿動漫圖片森系 瀏覽:543
不加濾鏡拍衣服圖片 瀏覽:633
和平精英圖片環境天氣如何 瀏覽:569
微信里如何製作表情圖片 瀏覽:4
小溪面膜圖片大全 瀏覽:812