Results 1 to 1 of 1

Thread: Javascript bug on Firefox but ok with IE :((

  1. #1
    Join Date
    Jul 2014
    Location
    Hai Phong, Viet Nam
    Posts
    8
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Javascript bug on Firefox but ok with IE :((

    PLZ HELP ME. I have make javascrip but its bug in firefox. fail display,
    distortion but I use IE its don't problem (

    Code:
    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>
    Last edited by vutaikt; 08-02-2014 at 04:36 AM.

Similar Threads

  1. Javascript Firefox to IE woes...
    By droov_van in forum JavaScript
    Replies: 1
    Last Post: 02-18-2009, 07:49 AM
  2. Detect Firefox Javascript
    By cr3ative in forum Submit a DHTML or CSS code
    Replies: 9
    Last Post: 01-24-2008, 09:14 PM
  3. Replies: 3
    Last Post: 11-16-2005, 10:01 PM
  4. JavaScript FireFox Problem
    By ThE_mASk in forum JavaScript
    Replies: 1
    Last Post: 10-16-2005, 02:31 PM
  5. An JavaScript question in firefox
    By ShongTu in forum JavaScript
    Replies: 1
    Last Post: 09-26-2005, 06:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •