PDA

View Full Version : Javascript bug on Firefox but ok with IE :((



vutaikt
08-01-2014, 02:21 PM
PLZ HELP ME. I have make javascrip but its bug in firefox. fail display,
distortion but I use IE its don't problem :((


Tin tức & Sự kiện
<script type="text/javascript">
epi_id = 'epi-widget-container';
epi_width = 'auto';
epi_height = 'auto';
epi_border = 0;
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<marquee height="125" width="100%" behavior="scroll" direction="up" loop="-1" onmouseout="this.start()" onmouseover="this.stop()" scrolldelay="100" scrollamount="3">
<script type="text/javascript">
document.write('<link rel="stylesheet" type="text/css" media="all" href="http://www.baomoi.com/widget/widget.css" />');
epi_width = typeof epi_width == 'string' ? epi_width : '250px';
epi_height = typeof epi_height == 'string' ? epi_height : '300px';
epi_border = typeof epi_border == 'number' ? 0 : 3;
epi_target = typeof epi_target == 'number' ? '_blank' : '';
epi_theme = typeof epi_theme == 'string' ? epi_theme : 'widgetDisplayThemeBlue';
epi_id = typeof epi_id == 'string' ? ''+epi_id+'' : 'epi-widget-container';
document.write('<div class="widgetPageContentDisplay" style="width: '+epi_width+';">\r\n');
document.write('<div class="'+epi_theme+'" style="border-width: ' + epi_border + 'px;">\r\n');
document.write('<div id="'+epi_id+'" class="widgetDisplayBack" style="height: '+epi_height+';">\r\n');
document.write('</div></div></div>');
function outputWidget(strHtml)
{
document.getElementById(epi_id).innerHTML = strHtml;
}
</script>
<script type="text/javascript" src="http://www.baomoi.com/Widget/GenerateJS.aspx?zone=-1&count=10&ntype=popular&dtype=1&target=0">
</script>
</marquee>