X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

on my site: www.windera.com I have java script, which is not showing on firefox browser, but it is visible on smart phones , IE and safary. Is it posible to get fix for firefax?

Posted

Any body can help to make the following script visible on Firefox:

<script type="text/javascript">

var delay = 6800; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=55; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="font: normal 17px Georgia; padding: 7px;">'; //set opening tag, such as font declarations
fcontent[0]="<b>What is WINDERA?</b><br><br>It is a Vertical Axis Hybrid Wind Turbine.</br><br>This is a: </br><br>100% USA developed</br><br>100% USA manufactured </br><br>Created by US Solution's engineering team"
fcontent[1]="<b>Windera 500 </b><br><br>This series of VAHWT is the main driving power for US Solution's H.E.L.P.S.</br><br>Hybrid <br><br>Electric </br><br>Light </br><br>Pole </br><br>System"
fcontent[2]="<b>H. E. L. P. S.</b><br><br>This Art-Deco creation represents US Solutions engineering concept for: <b><br><br>Versatile <b><br><br>Unified <b><br><br>Simplicity</a>";
closetag='</div>';

var fwidth='225px'; //set scroller width
var fheight='320px'; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj.style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) { 
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);
 
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor-endcolor);
    if(diff > 0) {
      newcolor = startcolor-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor = startcolor+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent

</script>

It is visible on IE; Safary; smart phones.

Thanks in advance

Modified by cor-el

Chosen solution

If you mean the script that shows the slide show then that is working fine for me with Firefox 3.6.11


You can reload the page and bypass the cache with:

  • Press and hold Shift and left-click the Reload button.
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Cmd + Shift + R" (MAC)

See Keyboard shortcuts - Perform common Firefox tasks quickly and Use mouse shortcuts to perform common tasks in Firefox


  • "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
  • "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"

Start Firefox in Troubleshoot Firefox issues using Safe Mode to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).

See Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems and Troubleshoot issues with plugins like Flash or Java to fix common Firefox problems

Read this answer in context 3

Additional System Details

Sites Affected

http://www.windera.com

Installed Plug-ins

  • ww-plugin
  • Version 1.5.1.0
  • Google Talk Plugin Video Accelerator version:0.1.43.3
  • np-mswmp
  • npdivxplayerplugin
  • 1.9.0009.1
  • npsharedview
  • 6.0.12.732
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealJukebox Netscape Plugin
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Adobe PDF Plug-In For Firefox and Netscape "9.4.0"
  • Default Plug-in
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Google Update
  • Shockwave Flash 10.1 r85
  • Adobe Shockwave for Director Netscape plug-in, version 11.5
  • iTunes Detector Plug-in
  • GEPlugin
  • Next Generation Java Plug-in 1.6.0_21 for Mozilla browsers
  • 4.0.50917.0
  • Office Live Update v1.5
  • NPWLPG
  • RealPlayer(tm) HTML5VideoShim Plug-In

Application

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729; .NET4.0E)

More Information

cor-el
  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

Chosen Solution

If you mean the script that shows the slide show then that is working fine for me with Firefox 3.6.11


You can reload the page and bypass the cache with:

  • Press and hold Shift and left-click the Reload button.
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Cmd + Shift + R" (MAC)

See Keyboard shortcuts - Perform common Firefox tasks quickly and Use mouse shortcuts to perform common tasks in Firefox


  • "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
  • "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"

Start Firefox in Troubleshoot Firefox issues using Safe Mode to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).

See Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems and Troubleshoot issues with plugins like Flash or Java to fix common Firefox problems

Question owner

My home page: http://windera.com/default.aspx can not load on Firefox!? It uploads perfect on IE. Do I have any problem with my footer java script? I just delete the scrolling text, but page still can not upload? What could be solution?

rsteer 1 solutions 17 answers

The home page loads mostly correctly in Firefox 4.0 Beta 7, which is what I happen to be using at the moment (when I happened to see your question and website).

However, a few notes:

-- The slideshow itself displays OK, but the slideshow *controls* are not visible.

-- Your website is heavily dependent upon proprietary Microsoft technologies, which frequently means that a site will work in IE but not Firefox. (Most of the pages seems to be .aspx; I saw in the page source a reference to MS Silverlight (which I tried six months ago or so, but then uninstalled), and you're doing cross-site scripting with Microsoft's "officelive" website.) Your web-authoring software also seems to be inserting lots of unnecessary "div" tags -- it's possible even that is causing some problems.

raj2052 0 solutions 1 answers

check this link walllook