Looks like a cPanel error.
The code I posted is for a standalone page. If you're trying to paste it into an existing page, that might be the problem.
Just use the highlighted changes, apply them to your existing code. Back everything up first because I have another idea.
And if that's not the problem, it could be a cPanel problem of another sort. I have no experience with cPanel.
Edit: Added Later:
I do have another method now. It involves knowing the number of clocks though, as a width must be set in style for that. You could keep whatever you had, just change the init to:
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler2',
style: {
'padding': '2px',
'width': '600px',
'margin': '0 auto',
'height': '80px'
},
inc: 1, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 1,
neutral: 150,
savedirection: true,
noAddedSpace: true
});
</script>
and add these styles to the page (or add their rules to an existing stylesheet for the page):
Code:
<style type="text/css">
#mycrawler2 span, .marquee0 span {
white-space: normal;
display: block;
width: 142px;
margin: 0 4px 0 0;
padding: 0;
float: left;
}
.marquee0 div div {
overflow: hidden;
width: 438px;
}
.marquee0 div div div {
width: auto;
}
#clock_widget { /* with below for some browsers that leave ghost widgets around outside the crawler */
display: none;
}
#mycrawler2 #clock_widget, .marquee0 #clock_widget {
display: inline;
}
#mycrawler2 object, .marquee0 object, #mycrawler2 embed, .marquee0 embed {
width: 142px;
height: 35px;
}
</style>
That red number is important. It's the number of clocks times 146 (140 for each clock, 2 for each clock's left and right border of 1 each and 4 for the right margin of each floated span containing a clock).
You should still get rid of class="marquee1", but it should be changed to class="marquee" instead of being dropped completely. This holds true for the first solution as well.
Bookmarks