473,396 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Background is not rendered in IE8 but works in chrome browzer

3
I need to display a progress bar.
This is the code written:
Expand|Select|Wrap|Line Numbers
  1. <div style="height:200px; overflow-y: scroll;"> <table id="tableid" class="aui"> <thead> <script>
  2.     function load()
  3.     {
  4.         document.getElementById('myprogress').style.width=$countDetails + "%";
  5.     }
  6.     </script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script type="text/javascript">
  7. $(document).ready(function()
  8. {
  9. // Tooltip only Text
  10. $('.prog-wrap').hover(function()
  11. {
  12.         // Hover over code
  13.         var title = $(this).attr('title');
  14.         $(this).data('tipText', title).removeAttr('title');
  15.         $('<p class="tooltip"></p>')
  16.         .text(title)
  17.         .appendTo('body')
  18.         .fadeIn('slow');
  19. }, function() {
  20.         // Hover out code
  21.         $(this).attr('title', $(this).data('tipText'));
  22.         $('.tooltip').remove();
  23. }).mousemove(function(e) {
  24.         var mousex = e.pageX + 10; //Get X coordinates
  25.         var mousey = e.pageY + 10; //Get Y coordinates
  26.         $('.tooltip')
  27.         .css({ top: mousey, left: mousex })
  28. });
  29. });
  30. </script> <style type="text/css" media="screen">
  31.   div.tooltip {
  32.   position: absolute; /*leave this and next 3 values alone*/
  33.   z-index: 1000;
  34.   left: -1000px;
  35.   top: -1000px;
  36.   background-color:#333427;
  37.   border: 10px solid black;
  38.   color: white;
  39.   padding: 3px;
  40.   width: 250px; /*width of tooltip*/
  41.  
  42. }
  43. </style> <style type="text/css">
  44. .progwrap
  45. {
  46.    position: relative;
  47. }
  48.  
  49. .progwrap, .progvalue
  50. {
  51.     /* The width and height of your image */
  52.  
  53.     background-color: #CCCCFF;
  54.     width: 300px; height: 10px; 
  55. }
  56.  
  57.  
  58.  </style> </thead> <body onload="load()"> </table>
  59. *
  60.  
  61. <p><b>Estimate Completion:* $countDetails% complete</b></p> <div class="progwrap" title=$tooltipmsg> <div id="myprogress" class="progvalue" style="background-color: #009933;" > </div> </div>
--end of code--

When i run the above script it works properly in chrome by displaying a progress bar showing percentage of issues completed as green while the rest of the bar is displayed as grey for not completed. But when i check this in IE, the progress bar is displayed as green and the grey colour is not to be seen. How to fix this?
Mar 12 '14 #1
0 1074

Sign in to post your reply or Sign up for a free account.

Similar topics

23
by: Erik Schulp | last post by:
Hi all, I am using a background image via a stylsheet. I've used this code: background-image:url("/images/tile.gif"); (which I think is correct) The image doesn't show up however, the path,...
21
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
10
by: typingcat | last post by:
Hello. I set a background image like the following; body { background: url('back.png') repeat-x bottom; } See this page for example: http://cat3.dotnet29.hostbasket.com/korean/ When the...
13
by: Giggle Girl | last post by:
Hi there, I need to use a background image in a TR that does NOT restart everytime it hits a TD. Can it be done? Specifically, if you set a background image for an entier table, now mater how...
2
by: frank.sconzo | last post by:
Greetings, I was testing my web application on the Mac/Safari and noticed a problem with the background color of the select input element. Safari doesn't seem to pay any attention to the style I...
4
by: André | last post by:
Hi, i created a table with cells. One cell has background-color (LightSlateGray) and contains a label without text but also with a backgroundcolor (red). The width of the label is set by a value...
0
by: Jonathan N. Little | last post by:
Moon wrote: If spoiler is NOT an A element with an HREF attribute (i.e., a link) :hover pseudo class will not work is <IE7. JavaScript is the usual IE work-a-round. Stinks doesn't it? --...
7
by: mike57 | last post by:
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. ...
2
zorgi
by: zorgi | last post by:
Hi I know you all prefer to look at code but this is sort of general question. I am developing website that is very rich in jquery animations. Everything works as it should but performance is...
0
by: romanticraj | last post by:
Website perfectly centered in chrome and firefox, but in IE it aligned towards left, i have tried lot but nothing works. how to fix that? my style.css /* Theme Name: gazpoMag Theme URI:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.