到网上看别人是怎么做的,大部分是JS,还有一部分是flash!不是marquee.
解决方案 »
- 求一段登录代码
- 数据库共有5000多条数据,每30条插入一个时间(共有180个时间) 怎么写php或者mysql的语句?
- 有没有可以得到脚本超时时间和服务器解译引擎的办法
- php与mysql的连接问题
- 怎么做全匹配?
- 我申请了一个支持php的网站,外国的。他给我ftp,我打开后,里面有两个文件夹一个是html文件夹,一个是cgi-bin文件夹,我应该把php文件
- 查询数据库,根据不同的结果打开不同的页面,怎么做??
- <input type="hidden" name="leave_id" value="<?php echo $leave_id ?>" >
- 面包屑导航问题。求救
- 求助一个关于使用phpmyadmin导入mysql文件的问题
- 菜鸟的又一个问题,希望这次不会太菜^_^
- 这些数据如何读出来?
<span id="_tv_item" style="position:relative;top:0">
<font color=red>您好!朋友</font><br>
1.欢迎光临dev-club<br>
2.<a href="http://www.dev-club.com/club/bbs/bbsView.asp?boardid=31">进入php编程</a><br>
3.进入joy asp<br>
4.进入script<br>
5.在dev-club您将获得最好的帮助<br>
<img src=test.gif><br>
<img src=testa.gif>
</span>
</span><script>
var _tv_moveSpeed = 50; // 速度控制,两次移动的间隔ms
var _tv_movestep = 1; // 速度控制,每次的移动量px
var _tv_post = 0; // 工作变量,当前偏移量
var _tv_tvheight = 0; // 工作变量,移动区域的总高度
var _tv_start = true; // 工作变量,运动状态控制
/**
* 移动控制
* 首次调用需有参数
*/
function tv_item_move(v) {
if(v) { // 第一次进入
if(_tv_item.offsetHeight <= _tv_box.offsetHeight) {
return; // 当内容不足以滚动时
}else {
_tv_item.innerHTML += _tv_item.innerHTML; // 复制移动区域内容,这是本算法的关键
_tv_tvheight = _tv_item.offsetHeight; // 获取移动区域的总高度
}
}
if(_tv_start) { // 是移动状态
_tv_post -= _tv_movestep; // 计算偏移
if(_tv_post+_tv_tvheight < _tv_box.offsetHeight) // 若移动后将露出底部
_tv_post += _tv_tvheight/2; // 将偏移上调一段
_tv_item.style.pixelTop = _tv_post; // 设置偏移
}
setTimeout('tv_item_move()',_tv_moveSpeed); // 启动定时器
}
/*** 启动纵向滚动 ***/
tv_item_move(1);
</script>
http://www.tongdexing.com.cn/myth/myth.html
<span id="_tv_item" style="position:relative;top:0"><img src=http://www.aspeasy.com/images/logo.gif><br>
<img src=http://www.aspeasy.com/images/logo.gif><br>
<img src=http://www.aspeasy.com/images/logo.gif><br>
<img src=http://www.aspeasy.com/images/logo.gif><br>
<img src=http://www.aspeasy.com/images/logo.gif><br>
<img src=http://www.aspeasy.com/images/logo.gif><br>
<img src=http://www.aspeasy.com/images/logo.gif><br>
</span>
</span><script>
var _tv_moveSpeed = 50; // 速度控制,两次移动的间隔ms
var _tv_movestep = 1; // 速度控制,每次的移动量px
var _tv_post = 0; // 工作变量,当前偏移量
var _tv_tvheight = 0; // 工作变量,移动区域的总高度
var _tv_start = true; // 工作变量,运动状态控制
/**
* 移动控制
* 首次调用需有参数
*/
function tv_item_move(v) {
if(v) { // 第一次进入
if(_tv_item.offsetHeight <= _tv_box.offsetHeight) {
return; // 当内容不足以滚动时
}else {
_tv_item.innerHTML += _tv_item.innerHTML; // 复制移动区域内容,这是本算法的关键
_tv_tvheight = _tv_item.offsetHeight; // 获取移动区域的总高度
}
}
if(_tv_start) { // 是移动状态
_tv_post -= _tv_movestep; // 计算偏移
if(_tv_post+_tv_tvheight < _tv_box.offsetHeight) // 若移动后将露出底部
_tv_post += _tv_tvheight/2; // 将偏移上调一段
_tv_item.style.pixelTop = _tv_post; // 设置偏移
}
setTimeout('tv_item_move()',_tv_moveSpeed); // 启动定时器
}
/*** 启动纵向滚动 ***/
tv_item_move(1);
</script>
<body bgcolor=#ccccc>
<iframe src=index5.asp frameborder=0 scrolling=no width=500 height=82></iframe><!-- 这是一个执行页面保存为:index5.asp-->
你要把你的数据链接上:
数据库名字为:good (表的名字为:pic)
id(列名) pic(列名) checkpic(列名)
1 1 true
2 2 true
3 3 true
4 4 true
5 5 true
6 6 false
7 7 true
8 8 true <%
set conn=server.createobject("adodb.connection")
conn.open "provider=sqloledb;datasource=local;uid=sa;pwd=;database=good"
set rs3=server.createobject("adodb.recordset")
sql3="select * from pic where checkpic='true' "
rs3.open sql3,conn,3,1
count=rs3.recordcount
count1=count*60+count*2
%>
<script language="javascript">
var s=0
function place(i){
if(i<<%=count1%>)
{
window.scrollTo(i,0);
s++
i++;
id1=window.setTimeout("place("+i+")",15);
}
if(i==<%=count1%>-1)
{
s=0
id1=window.setTimeout("place(0)",15);
}
}
</script>
<body onLoad="place(0)" bgcolor=red topmargin=0 leftmargin=0>
<form name="mf">
<input type="hidden" name="num" value="1">
<table onmousemove="window.clearTimeout(id1)"
onmouseout="place(s)" width=1500 border=0 cellspacing=0 cellpadding=0><tr><td>
<table cellspacing=0 cellpadding=1 >
<tr>
<% set rs=server.createobject("adodb.recordset")
sql="select * from pic where checkpic='true' "
rs.open sql,conn,3,1
do while not rs.eof
%>
<td>
<img id="pic2" src="images/marqueepic/<%=rs("pic")%>.jpg" width=60 height=80 border=0 title="房产信息"></td>
<% rs.movenext
loop
%><%
set rs2=server.createobject("adodb.recordset")
sql2="select * from pic where checkpic='true' "
rs2.open sql2,conn,3,1
do while not rs2.eof
%>
<td>
<img id="pic2" src="images/marqueepic/<%=rs2("pic")%>.jpg" width=60 height=80 border=0 title="房产信息"></td>
<% rs2.movenext
loop
%>
</tr></table>
</td></tr></table>
</form>
</body>
<!-- 这样就能实现要的效果,你试一试,我在我的机子上已经实现了你要的效果,相关的一些细节,根据你的程序做一些相关的改动就可以了,祝你成功! -->