Hi - I'm wondering if anyone can help. I've been using nice menus, which look absolutely lovely and I'm really pleased with how they look - thanks to Jakeg :) However in IE6 and ONLY in IE6! there seems to be a clash between the menus and a ticker that I have. the ticker is as follows:-
//Configurable variables...
$nitems=10; //Max number of items to display
$width=140; //Width of marquee in pixels
$height=225; //Height of marquee in pixels
$speed=1; //scroll speed (higher-faster)
$pause=1; //should it stop on mouseover? 1=y, 0=n
//End of configurable vars.
//Specify the marquee's width (in pixels)
var marqueewidth=" echo $width;
px"
//Specify the marquee's height
var marqueeheight=" echo $height;
px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed= echo $speed;
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit= echo $pause;
//Specify the marquee's content
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
//Get last set of records from drupal table if poss.
$un='npear2_apto';
$pw='apto';
$db='npear2_apto'; //dbase
$host='localhost';
$conn = mysql_pconnect($host, $un, $pw) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db($db) or die ("Could not select database");
$q="select * from node,term_node,term_data,node_revisions where node.nid=term_node.nid and term_node.tid=term_data.tid and node_revisions.nid=node.nid and term_data.name='Ticker' order by node.created desc";
$result=mysql_query($q);
$mc='';
if (mysql_num_rows($result)>0)
{
$r=0;
while($row=mysql_fetch_assoc($result))
{
if ($r<$nitems)
{
$title=addslashes(str_replace("\r\n","<br>",$row['title']));
$body=addslashes(str_replace("\r\n","<br>",$row['body']));
$mc.='<p class="marqueeheader">'.$title.'</p>';
$mc.='<p class="content">'.$body.'</p>';
$r++;
}
}
}
var marqueecontent=' echo $mc;
'
////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, ns_marquee
function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualheight=cross_marquee.offsetHeight
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.top=parseInt(marqueeheight)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualheight=ns_marquee.document.height
}
lefttime=setInterval("scrollmarquee()",20)
}
window.onload=populate
function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}
else if (document.layers){
if (ns_marquee.top>(actualheight*(-1)+8))
ns_marquee.top-=copyspeed
else
ns_marquee.top=parseInt(marqueeheight)+8
}
}
if (iedom||document.layers){
with (document){
if (iedom){
write('
and works great. However in IE6, the ticker seems to prevent the drop downs from showing at all. You can see the menu bar and the top level link, which function fine, but no drop down info.
I've read something about an IE6 mouseover bug, but I'm not sure how to proceed. I'm not overjoyed about supporting IE6, but it has to be done (perhaps for another 5 years?) Is ther something in the nice menus module that is amazingly obviously conflicting? i can't see the wood for the trees any more!
Many thanks in advance,
Claire