Post by Mike on Nov 25, 2023 11:44:26 GMT -8
What I'm trying to do is pause each span for 1 minute.
Currently it just cycles through the marquee without pausing.
I have the set interval function at the bottom but doesn't seem to work.
I'm thinking it might have to be in the for loop itself.
Any suggestions
Test site
Thanks in advance
Currently it just cycles through the marquee without pausing.
I have the set interval function at the bottom but doesn't seem to work.
I'm thinking it might have to be in the for loop itself.
Any suggestions
Test site
$(document).ready(function(){
var borderc=pb.plugin.get('news_ticker_2').settings.border_color;
var bc=pb.plugin.get('news_ticker_2').settings.box_background_color_;
var brc=pb.plugin.get('news_ticker_2').settings.breaking_color;
var speed=pb.plugin.get('news_ticker_2').settings.speed;
var foo='<div id="alert" style="color:#'+brc+';font-size:20px;">Breaking</div>';
foo+='<div class="marquee">';
foo+='<div id="inset">';
foo+='<marquee id="mar" direction="up" truespeed="truespeed"scrollamount="3" scolldelay="2000" hspace="30px" onmouseover="this.stop();" onmouseout="this.start();">';
var headl=pb.plugin.get('news_ticker_2').settings.headlines;
for(s=0;s<headl.length;s++) {
var text=headl[s].text;
var tc=headl[s].text_color;
var ts=headl[s].text_size;
var ad=headl[s].address;
foo+='<span class="pops" style="text-transform:uppercase;color:#'+tc+';font-size:'+ts+'px"><a href="'+ad+'">*'+text+'* </a></span>';
if(pb.plugin.get('news_ticker_2').settings.headlines.address ===0){
foo+='<a href="https://riccettstest.freeforums.net/"></a>';
}
}
foo+='</marqee>';
foo+='</div>';
foo+='</div>';
$('.loco').html(foo);
$('.marquee').css({
'background-color':'#'+bc+'',
'border-right':'6px ridge #'+borderc+'',
'border-top':'6px ridge #'+borderc+'',
'border-bottom':'6px ridge #'+borderc+''
});
var t = 0;
setInterval(function () {
$('pops').text(t);
t += 1;
},1000);
});
Thanks in advance