从人者108 发表于 2017-3-25 00:28:16

求帮助修改下面代码

在线等各位大神,帮忙给滚动图片标题加上颜色和字体加粗


<FONT size=2><div id="colee_left" style="overflow:hidden;width:100%;" class="module cl ml">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="colee_left1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">

<ul>
<td>
<li style="width: {picwidth}px;">
<a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a>
<p><a href="{url}" title="{title}"{target}>{title}</a></p>
</li></td>
</ul>

</tr>
</table>
</td>
<td id="colee_left2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30//速度数值越大速度越慢
var colee_left2=document.getElementById("colee_left2");
var colee_left1=document.getElementById("colee_left1");
var colee_left=document.getElementById("colee_left");
colee_left2.innerHTML=colee_left1.innerHTML
function Marquee3(){
if(colee_left2.offsetWidth-colee_left.scrollLeft<=0)
colee_left.scrollLeft-=colee_left1.offsetWidth
else{
colee_left.scrollLeft++
}
}
var MyMar3=setInterval(Marquee3,speed)
colee_left.onmouseover=function() {clearInterval(MyMar3)}
colee_left.onmouseout=function() {MyMar3=setInterval(Marquee3,speed)}
</script></FONT>

原来我也可以20 发表于 2017-3-25 00:28:16

<FONT size=2><div id="colee_left" style="overflow:hidden;width:100%;" class="module cl ml">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="colee_left1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">

<ul>
<td>
<li style="width: {picwidth}px;">
<a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a>
<p><a href="{url}" title="{title}"{target}><font color="#9900FF"><b>{title}</b></font></a></p>
</li></td>
</ul>

</tr>
</table>
</td>
<td id="colee_left2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30//速度数值越大速度越慢
var colee_left2=document.getElementById("colee_left2");
var colee_left1=document.getElementById("colee_left1");
var colee_left=document.getElementById("colee_left");
colee_left2.innerHTML=colee_left1.innerHTML
function Marquee3(){
if(colee_left2.offsetWidth-colee_left.scrollLeft<=0)
colee_left.scrollLeft-=colee_left1.offsetWidth
else{
colee_left.scrollLeft++
}
}
var MyMar3=setInterval(Marquee3,speed)
colee_left.onmouseover=function() {clearInterval(MyMar3)}
colee_left.onmouseout=function() {MyMar3=setInterval(Marquee3,speed)}
</script></FONT>复制代码

科技小白2015 发表于 2017-3-25 00:28:16

用户名叫什么呢 发表于 2017-3-25 00:28:16

shejay 发表于 2017-2-17 17:32
可否把图片之间的间距缩小
添加样式试下
<style>
.ml li {padding: 0 1px 5px;}
</style>复制代码

蓝小振 发表于 2017-3-25 00:28:16

mandy~ 发表于 2017-2-17 17:48
添加样式试下
框架样式?

aslongxing 发表于 2017-3-25 00:28:16

shejay 发表于 2017-2-17 17:55
框架样式?
就是把板凳的代码添加到你原本代码的最下方即可。

洛书菇凉 发表于 2017-3-25 00:28:16

mandy~ 发表于 2017-2-17 17:57
就是把板凳的代码添加到你原本代码的最下方即可。
感谢!   已经解决
页: [1]
查看完整版本: 求帮助修改下面代码