U
uwe.braunholz
Hello,
I want to set the text of a marqee dynamical. So I created the
following code:
****snip****
<style>
#noticeMarquee
{
background-color:#ff00ff;
color:#ffffff;
display:none;
padding: 2px;
font-size:10pt;
}
</style>
<script type="text/javascript">
function showMarquee(text){
var elem = document.getElementById("noticeMarquee");
if(text==""){
elem.style.display = "none";
}
else{
elem.firstChild.innerHTML = text;
elem.style.display = "block";
}
}
</script>
</head>
<body>
<marquee id="noticeMarquee"></marquee>
<div onclick="showMarquee('this is the text')">clickme</div>
***snap***
This works fine in IE, but Firefox does only display the box of the
marquee, not the text I set it to.
I tried it with innerText or adding childnodes and stuff like that. But
it seems like firefox does not update the marquee.
Hopefully someone can help me this this!
Thank you!
Regards,
Uwe Braunholz
I want to set the text of a marqee dynamical. So I created the
following code:
****snip****
<style>
#noticeMarquee
{
background-color:#ff00ff;
color:#ffffff;
display:none;
padding: 2px;
font-size:10pt;
}
</style>
<script type="text/javascript">
function showMarquee(text){
var elem = document.getElementById("noticeMarquee");
if(text==""){
elem.style.display = "none";
}
else{
elem.firstChild.innerHTML = text;
elem.style.display = "block";
}
}
</script>
</head>
<body>
<marquee id="noticeMarquee"></marquee>
<div onclick="showMarquee('this is the text')">clickme</div>
***snap***
This works fine in IE, but Firefox does only display the box of the
marquee, not the text I set it to.
I tried it with innerText or adding childnodes and stuff like that. But
it seems like firefox does not update the marquee.
Hopefully someone can help me this this!
Thank you!
Regards,
Uwe Braunholz