Log in

View Full Version : Help with script in Firefox needed


MRGTB
09-18-2005, 01:53 AM
I have installed a scrolling news text mod on my forum which works perfect with Internet Explorer. But not with Firefox.

The problem is the marquee itself. If I minamize the firefox browser, the marquee box does not minamize also to stay inline. It stays the full width and goes off the screen. Unlike Internet Explorer which shrinks the box bringing the width incline with the rest.

Can somebody take a look at this code and see if they know a possible fix for this for firefox, so it's cross browser compatible:


<if condition="$vboptions['news_on_off']">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="3"><a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_newsbit')"><img

id="collapseimg_forumhome_newsbit" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
<strong>$vboptions[news_title]</strong></td>
</tr>
<tbody id="collapseobj_forumhome_newsbit" style="">
<tr>
<td class="alt1">
<if condition="$vboptions['news_marquee_on_off']">
<marquee width="100%" direction="$vboptions[news_direction]" onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=6" loop="$vboptions[news_loop]">$vboptions[news_message]</marquee>
<else />
$vboptions[news_message]
</if>
</td>
</tr>
</thead>
</table>
<br />
</if>

Marco van Herwaarden
09-18-2005, 04:48 AM
AFAIK Marquee is not fully supported in any other browser then IE. But i might be wrong on this.

MRGTB
09-18-2005, 04:57 AM
AFAIK Marquee is not fully supported in any other browser then IE. But i might be wrong on this.

No, I think your right. I was looking for a way around this using other option other than marquee command. I know it can be done but it will take a coder to figure this one out. Way above my head!

check this thread out: http://www.sitepoint.com/article/cross-browser-scroller-dhtml/3