<img src="http://community.csdn.net/expert/images/rank/user2.gif" alt="this is a test">
好象刚刚回答过了 - -!
好象刚刚回答过了 - -!
解决方案 »
- 高分求助,js history.go(-1)返回问题
- 请教:linux系统下使用javascript判断指定路径的文件是否存在?
- a链接既可以链接,同时触发ajax事件会有问题吗
- JB9+weblogic8为什么EAR文件能发布,WEB的发布不成功呢晕
- 急!javascript 在图片热点上鼠标滑过有提示层显示 在线等
- 在JQuery中,我想去除“.”之前的所有字符,该如何做?
- jQuery 模式窗口的关闭
- 怎么声明全局变量
- 为什么escape编码的结果和GET方法提交的结果不是一样的呢?
- 重新进入一个页面,由于网速原因,在进入页面时加载一会,那些隐藏的图片就会显示
- JS如何实现字符串匹配?达人乱入~~~
- 如何在iframe 中实现页面返回,即history(-1)
<script>
function showText(theID)
{
textArea.innerHTML=text[theID];
}
</script>
text为你的文字存放的数组
<div id=demo style=overflow:hidden;width:750;align="center">
<table border=0 align=center cellpadding=1 cellspacing="1" cellspace=0 >
<tr>
<td valign=top bgcolor="ffffff" id=demo1>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td><a href="show.asp?id=1"><img src="csdn.gif" width="87" height="104" hspace="2" border="0" text="测试文字1" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=2"><img src="csdn2.gif" width="87" height="104" hspace="2" border="0" text="测试文字2" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=3"><img src="csdn3.gif" width="87" height="104" hspace="2" border="0" text="测试文字3" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=4"><img src="csdn4.gif" width="87" height="104" hspace="2" border="0" text="测试文字4" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=5"><img src="csdn5.gif" width="87" height="104" hspace="2" border="0" text="测试文字5" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=6"><img src="csdn6.gif" width="87" height="104" hspace="2" border="0" text="测试文字6" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=7"><img src="csdn7.gif" width="87" height="104" hspace="2" border="0" text="测试文字7" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=8"><img src="csdn8.gif" width="87" height="104" hspace="2" border="0" text="测试文字8" onmouseover="ShowText()"/></a></td> </tr>
</table>
</td>
<td id=demo2 valign=top>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo.scrollLeft>=demo1.scrollWidth)
demo.scrollLeft=0
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}function ShowText()
{
//显示文本
showText.innerText = event.srcElement.text
}
</script>
<table><tr><td id="showText"></td></tr></table>
<div id=demo style=overflow:hidden;width:750;align="center">
<table border=0 align=center cellpadding=1 cellspacing="1" cellspace=0 >
<tr>
<td valign=top bgcolor="ffffff" id=demo1>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td><a href="show.asp?id=1"><img src="csdn.gif" width="87" height="104" hspace="2" border="0" text="测试文字1" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=2"><img src="csdn2.gif" width="87" height="104" hspace="2" border="0" text="测试文字2" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=3"><img src="csdn3.gif" width="87" height="104" hspace="2" border="0" text="测试文字3" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=4"><img src="csdn4.gif" width="87" height="104" hspace="2" border="0" text="测试文字4" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=5"><img src="csdn5.gif" width="87" height="104" hspace="2" border="0" text="测试文字5" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=6"><img src="csdn6.gif" width="87" height="104" hspace="2" border="0" text="测试文字6" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=7"><img src="csdn7.gif" width="87" height="104" hspace="2" border="0" text="测试文字7" onmouseover="ShowText()"/></a></td>
<td><a href="show.asp?id=8"><img src="csdn8.gif" width="87" height="104" hspace="2" border="0" text="测试文字8" onmouseover="ShowText()"/></a></td> </tr>
</table>
</td>
<td id=demo2 valign=top>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo.scrollLeft>=demo1.scrollWidth)
demo.scrollLeft=0
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}function ShowText()
{
//显示文本
showText.innerText = event.srcElement.text
}
</script>
<table><tr><td id="showText"></td></tr></table>