<marquee></marquee>可以实现多种滚动效果,无需js控制。

使用marquee标记不仅可以移动文字,也可以移动图片,表格等.

语法:<marquee>...</marquee>; 说明:在标记之间添加要进行滚动的内容。

重要属性:

1.滚动方向direction(包括4个值:up、 down、 left和 right)

  语法:<marquee direction="滚动方向">...</marquee>

2.滚动方式behavior(scroll:循环滚动,默认效果; slide:只滚动一次就停止; alternate:来回交替进行滚动)

  语法:<marquee behavior="滚动方式">...</marquee>

3.滚动速度scrollamount(滚动速度是设置每次滚动时移动的长度,以像素为单位)

  语法:<marquee scrollamount="5">...</marquee>

4.滚动延迟scrolldelay(设置滚动的时间间隔,单位是毫秒)

  语法:<marquee scrolldelay="100">...</marquee>

5.滚动循环loop(默认值是-1,滚动会不断的循环下去)

  语法:<marquee loop="2">...</marquee>

6.滚动范围width、height

7.滚动背景颜色bgcolor

8.空白空间hspace、vspace

无缝滚动:

<!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>无标题文档</title>
<style type="text/css">
    html,body{margin:0;padding:0;}
    .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}
    .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}
</style>
</head>

<body>
<div id="butong_net_right" style="overflow:hidden;width:700px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="butong_net_right1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="n0.jpg" width="100" height="133"></td>
<td><img src="n0.jpg" width="100" height="133"></td>
<td><img src="n0.jpg" width="100" height="133"></td>
<td><img src="n0.jpg" width="100" height="133"></td>
<td><img src="n0.jpg" width="100" height="133"></td>
</tr>
</table>
</td>
<td id="butong_net_right2" valign="top"></td>
</tr>
</table>
 </div>
</body>
</html>
<script>
var speed=30//速度数值越大速度越慢
butong_net_right2.innerHTML=butong_net_right1.innerHTML
function Marquee4(){
if(butong_net_right.scrollLeft<=0)
butong_net_right.scrollLeft+=butong_net_right2.offsetWidth
else{
butong_net_right.scrollLeft--
}
}
var MyMar4=setInterval(Marquee4,speed)
butong_net_right.onmouseover=function() {clearInterval(MyMar4)}
butong_net_right.onmouseout=function() {MyMar4=setInterval(Marquee4,speed)}
</script>

有问题

新思路:ul做,(对ul进行滚动,滚动一个LI的宽度后,把最后的li提前)循环执行     找时间搞搞 )b

插入百度地图:

直接生成http://api.map.baidu.com/lbsapi/creatmap/index.html

更多方法:http://lbsyun.baidu.com/

更多方法详细说明:http://lbsyun.baidu.com/index.php?title=jspopular

http://developer.baidu.com/map/jsdemo.htm#a1_2

最新文章

  1. android 自定义控件——(一)圆角按钮
  2. [转载]DBA的特质第二部分:性格
  3. Css-自适应高度修复(高度随内容而自动撑高)
  4. 透视校正插值(Perspective-Correct Interpolation)
  5. myeclipse不编译解决方法
  6. 10 notorious computer virus
  7. codeforces 450 B Jzzhu and Sequences
  8. shell脚本一条命令直接发送http请求(xjl456852原创)
  9. perspective结合transform的3D效果
  10. 第九章 观察者模式 OBSERVER
  11. 部署JForum 2.1.9遇到的问题及解决方法
  12. Gym 100952A&amp;&amp;2015 HIAST Collegiate Programming Contest A. Who is the winner?【字符串,暴力】
  13. 查询操作 -- Django从入门到精通系列教程
  14. 5.cgroup资源控制
  15. 什么是SpringCloud
  16. Latex: 添加IEEE论文keywords
  17. Xcode清理存储空间
  18. 高质量C++/C编程指南
  19. [原]secureCRT 改变显示宽度
  20. ELK之elasticsearch6.5

热门文章

  1. git config --global core.autocrlf false
  2. Unixbench测试工具和使用
  3. ecshop程序结构说明
  4. 处理ecshp图片上传失真
  5. Robot Framework--01 创建简单工程示例
  6. jsp日期插件My97DatePicker
  7. 整理一下Entity Framework的查询
  8. Java多线程编程核心技术---拾遗增补
  9. c# 多线程 --Mutex(互斥锁)
  10. move_upload_file 因为文件字符集编码iconv引起的问题