View Full Version : cmarquee not working in FF or Safari

03-13-2008, 11:51 AM
1) Script Title: Cross browser Marquee script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

3) Describe problem:

The script works fine for me in IE, but in FF and Safari (don't have Opera to try), the text in the scroller sits too far down and you can only see the top of the characters. The demo on the DD page works fine in all 3 browsers, and the only code I have modified is the content, width, height and background colour.

You can see the problem on the page at: http://www.thehealthcorrespondent.com/thc/index.php

The modifications to the script are below ( nothing else has changed):

//Specify the marquee's width (in pixels)
var marqueewidth="490px"
//Specify the marquee's height
var marqueeheight="19px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=2
//configure background color:
var marqueebgcolor="#FFFF00"
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

var marqueecontent='<nobr><pre><span class="scroller"><? do { echo "<a href=\"../thc/index.php?mode=article&art_id=".$row_rs_scrollerHL["art_id"] . "\">".str_replace("'","\'",$row_rs_scrollerHL["headline"])."</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FF0000\">THC INTERNATIONAL NEWS</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; } while ($row_rs_scrollerHL = mysql_fetch_assoc($rs_scrollerHL)); ?></span></pre></nobr>'

03-13-2008, 12:02 PM
Solved it! It was the PRE tag.