glorify
04-21-2009, 01:54 AM
Hey John. Love the script and am integrating it with settings that can be changed from within my vbulletin admincp.
Demo (http://www.glorifythepast.com/forums/index.php)
Anyway, I am getting RANDOM errors in IE 7. I call the script after the table. Strange because they are intermittent with so many page loads. Wonder if you can shed some light on it.
My code is yours modified with vb variables as you'll see. Any ideas?
<!-- GTP Marquee System -->
<if condition="$vboptions[gtp_marquee_system_switch]">
<table cellpadding="0" cellspacing="0" border="0" width="943px" align="center">
<tr>
<if condition="$vboptions['gtp_marquee_system_image'] == ''">
<td class="alt1" width="10%"><div class="smallfont" align="center"><b>Latest News:</b></div>
</td>
<td class="alt1" width="90%">
<else />
<td class="alt1" width="83px"><div align="center"><img src="{$vboptions['gtp_marquee_system_image']}" /></div>
</td>
<td class="alt1">
</if>
<div class="marquee" id="mycrawler">
<if condition="$vboptions['gtp_marquee_system_message'] == ''">
...If you want your message to use different/multiple font colors for different styles, please edit your message here per style and leave your admincp message setting blank...
<else />
{$vboptions['gtp_marquee_system_message']}
</if>
</div>
</td>
</tr>
</table>
<div style="padding:0 0 2px 0;"></div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'color': '#ffcc00', // Font color customize IF NEEDED per style
'width': '{$vboptions['gtp_marquee_system_width']}',
'font-family': '{$vboptions['gtp_marquee_system_font']}',
'font-size': '{$vboptions['gtp_marquee_system_size']}px',
'padding': '{$vboptions['gtp_marquee_system_padding']}px'
},
inc: <if condition="$vboptions['gtp_marquee_system_behavior'] == 'cursor driven'">8<else />'{$vboptions['gtp_marquee_system_speed']}'</if>,
mouse: '{$vboptions['gtp_marquee_system_behavior']}',
moveatleast: '{$vboptions['gtp_marquee_system_speed']}',
noAddedSpace: <if condition="$vboptions['gtp_marquee_system_addedspace']">false<else />true</if>,
neutral: {$vboptions['gtp_marquee_system_neutral']},
savedirection: <if condition="$vboptions['gtp_marquee_system_direction'] == 'true' OR $vboptions['gtp_marquee_system_direction'] == 'false'">{$vboptions['gtp_marquee_system_direction']}<else />'{$vboptions['gtp_marquee_system_direction']}'</if>
});
</script>
</if>
<!-- / #End GTP Marquee System -->
Demo (http://www.glorifythepast.com/forums/index.php)
Anyway, I am getting RANDOM errors in IE 7. I call the script after the table. Strange because they are intermittent with so many page loads. Wonder if you can shed some light on it.
My code is yours modified with vb variables as you'll see. Any ideas?
<!-- GTP Marquee System -->
<if condition="$vboptions[gtp_marquee_system_switch]">
<table cellpadding="0" cellspacing="0" border="0" width="943px" align="center">
<tr>
<if condition="$vboptions['gtp_marquee_system_image'] == ''">
<td class="alt1" width="10%"><div class="smallfont" align="center"><b>Latest News:</b></div>
</td>
<td class="alt1" width="90%">
<else />
<td class="alt1" width="83px"><div align="center"><img src="{$vboptions['gtp_marquee_system_image']}" /></div>
</td>
<td class="alt1">
</if>
<div class="marquee" id="mycrawler">
<if condition="$vboptions['gtp_marquee_system_message'] == ''">
...If you want your message to use different/multiple font colors for different styles, please edit your message here per style and leave your admincp message setting blank...
<else />
{$vboptions['gtp_marquee_system_message']}
</if>
</div>
</td>
</tr>
</table>
<div style="padding:0 0 2px 0;"></div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'color': '#ffcc00', // Font color customize IF NEEDED per style
'width': '{$vboptions['gtp_marquee_system_width']}',
'font-family': '{$vboptions['gtp_marquee_system_font']}',
'font-size': '{$vboptions['gtp_marquee_system_size']}px',
'padding': '{$vboptions['gtp_marquee_system_padding']}px'
},
inc: <if condition="$vboptions['gtp_marquee_system_behavior'] == 'cursor driven'">8<else />'{$vboptions['gtp_marquee_system_speed']}'</if>,
mouse: '{$vboptions['gtp_marquee_system_behavior']}',
moveatleast: '{$vboptions['gtp_marquee_system_speed']}',
noAddedSpace: <if condition="$vboptions['gtp_marquee_system_addedspace']">false<else />true</if>,
neutral: {$vboptions['gtp_marquee_system_neutral']},
savedirection: <if condition="$vboptions['gtp_marquee_system_direction'] == 'true' OR $vboptions['gtp_marquee_system_direction'] == 'false'">{$vboptions['gtp_marquee_system_direction']}<else />'{$vboptions['gtp_marquee_system_direction']}'</if>
});
</script>
</if>
<!-- / #End GTP Marquee System -->