账号通
    

账号  

密码  

4816

查看

4

回复
主题:bug,bug,bug 重大bug [收藏主题] 转到:  
kswtzj 当前离线

99

主题

6

广播

2

粉丝
添加关注
级别:学前班

用户积分:307 分
登录次数:145 次
注册时间:2011/10/18
最后登录:2015/1/28
kswtzj 发表于:2012/9/24 18:01:28   | 只看该作者 查看该作者主题 楼主 
科汛在线网校系统

在模板里面加上这个js (看绿色)

<script type="text/javascript">
//<![CDATA]
$(document).ready(function(){        
$(".item1").hover(function(){$("#tit_fc1").slideDown("normal"); }, function() {$("#tit_fc1").slideUp("fast");});   
$(".item2").hover(function(){$("#tit_fc2").slideDown("normal"); }, function() {$("#tit_fc2").slideUp("fast");});
$(".item3").hover(function(){$("#tit_fc3").slideDown("normal"); }, function() {$("#tit_fc3").slideUp("fast");});
$(".item4").hover(function(){$("#tit_fc4").slideDown("normal"); }, function() {$("#tit_fc4").slideUp("fast");});
});      
var currentindex=1;
$("#flashBg").css("background-color",$("#flash1").attr("name"));
function changeflash(i)
{
currentindex=i;
for (j=1;j<=5;j++){//此处的5代表你想要添加的幻灯片的数量与下面的5相呼应
if (j==i)
{$("#flash"+j).fadeIn("normal");
$("#flash"+j).css("display","block");
$("#f"+j).removeClass();
$("#f"+j).addClass("dq");
$("#flashBg").css("background-color",$("#flash"+j).attr("name"));
}
else
{$("#flash"+j).css("display","none");
$("#f"+j).removeClass();
$("#f"+j).addClass("no");}
}}
function startAm(){
timerID = setInterval("timer_tick()",8000);//8000代表间隔时间设置
}
function stopAm(){
clearInterval(timerID);
}
function timer_tick() {
    currentindex=currentindex>=5?1:currentindex+1;//此处的5代表幻灯片循环遍历的次数
changeflash(currentindex);}
$(document).ready(function(){
$(".flash_bar div").mouseover(function(){stopAm();}).mouseout(function(){startAm();});
startAm();
});

//]]>
</script>




然后显示的是(黄色)


<script type="text/javascript">
//<![CDATA[

$(document).ready(function(){        
$(".item1").hover(function(), function() );   
$(".item2").hover(function(), function() );
$(".item3").hover(function(), function() );
$(".item4").hover(function(), function() );
});      
var currentindex=1;
$("#flashBg").css("background-color",$("#flash1").attr("name"));
function changeflash(i)
{
currentindex=i;
for (j=1;j<=5;j++){//此处的5代表你想要添加的幻灯片的数量与下面的5相呼应
if (j==i)

else

}}
function startAm(){
timerID = setInterval("timer_tick()",8000);//8000代表间隔时间设置
}
function stopAm(){
clearInterval(timerID);
}
function timer_tick() {
    currentindex=currentindex>=5?1:currentindex+1;//此处的5代表幻灯片循环遍历的次数
changeflash(currentindex);}
$(document).ready(function(){
$(".flash_bar div").mouseover(function(){stopAm();}).mouseout(function(){startAm();});
startAm();
});
//]]>

</script>


绿黄对比


怎么把变量过滤到了呢  什么情况呢?????

 
低价承接div+css,科讯建站,等业务QQ:864633495
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
kswtzj 当前离线

99

主题

6

广播

2

粉丝
添加关注
级别:学前班

用户积分:307 分
登录次数:145 次
注册时间:2011/10/18
最后登录:2015/1/28
kswtzj 发表于:2012/9/24 18:05:48   | 只看该作者 查看该作者主题 沙发 
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
ilove澳门 当前离线

2

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:4 分
登录次数:2 次
注册时间:2012/9/24
最后登录:2012/9/24
ilove澳门 发表于:2012/9/24 19:19:53   | 只看该作者 查看该作者主题 藤椅 
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
romanfaiy 当前离线

3

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:7 分
登录次数:3 次
注册时间:2012/9/22
最后登录:2012/10/1
romanfaiy 发表于:2012/10/1 15:23:53   | 只看该作者 查看该作者主题 板凳 
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
weboyok 当前离线

119

主题

15

广播

6

粉丝
添加关注
级别:一年级

用户积分:175 分
登录次数:120 次
注册时间:2011/9/19
最后登录:2014/7/19
weboyok 发表于:2012/10/9 14:47:19   | 只看该作者 查看该作者主题 报纸 
做在线知识付费 选科汛云开店
我以前反映过这问题,老大说是检签语法过滤掉$号,建议修改脚本,如何不会写的话,也可以外置JS解决问题,希望对你有帮助!~
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.56641秒 powered by KesionCMS 9.0