Advertisement
Guest User

Altoholic Anonymous

a guest
Nov 11th, 2009
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Progess bar widget, by Matthew Harvey (matt at smallish.com) -->
  2. <!-- Wow X of Y version with name edited by Altoholic Anonymous (musings.altoholicanonymous.com) -->
  3.     <!-- Licensed under a Creative Commons Attribution-Share Alike 2.5
  4.          License (http://creativecommons.org/licenses/by-sa/2.5/) -->
  5.     <style type="text/css">
  6.       div.smallish-progress-wrapper
  7.       {
  8.         /* Don't change the following lines. */
  9.         position: relative;
  10.         border: 1px solid black;
  11.         background-color:transparent;
  12.       }
  13.  
  14.       div.smallish-progress-bar
  15.       {
  16.         /* Don't change the following lines. */
  17.         position: absolute;
  18.         top: 0; left: 0;
  19.         height: 100%;
  20.       }
  21.  
  22.       div.smallish-progress-text
  23.       {
  24.         /* Don't change the following lines. */
  25.         text-align: center;
  26.         position: relative;
  27.         /* Add your customizations after this line. */
  28.       }
  29.     </style>
  30.  
  31.     <!-- Progess bar widget, by Matthew Harvey (matt at smallish.com) -->
  32.     <!-- Licensed under a Creative Commons Attribution-Share Alike 2.5
  33.          License (http://creativecommons.org/licenses/by-sa/2.5/) -->
  34.     <script type="text/javascript">  
  35.       function nameddrawProgressBar(color, width, percent, total, cname)  
  36.       {  
  37.         var pixels = width * (percent / total);  
  38.      
  39.         document.write('<div style="width: ' + width + 'px" class="smallish-progress-wrapper">');  
  40.         document.write('<div style="width: ' + pixels + 'px; background-color: ' + color + ';" class="smallish-progress-bar"></div>');  
  41.         document.write('<div style="width: ' + width + 'px" class="smallish-progress-text">' + cname + ': ' + percent + ' of ' + total + '</div>');  
  42.         document.write('</div>');  
  43.       }  
  44.     </script>
  45.  
  46.  
  47. <!-- You are going to change the info in the parenthesis to suit your needs. The first entry is the color in hex, the second is the bar length, the third is your character level, the fourth is the maximum levels available, the fifth is your character name. This can also be applied to other things, such as progression. You can give a bar a width of 200 and list 13 and 14 with an entry of Ulduar and the bar will instead display Ulduar 13 of 14. -->
  48. Paladin
  49. <script type="text/javascript">nameddrawProgressBar('#F58CBA', 200, 13, 80, 'Charactername');</script>
  50.  
  51. Shaman
  52. <script type="text/javascript">nameddrawProgressBar('#2459FF', 200, 27, 80, 'Charactername');</script>
  53.  
  54. Hunter
  55. <script type="text/javascript">nameddrawProgressBar('#ABD473', 200, 63, 80, 'Charactername');</script>
  56.  
  57. Druid
  58. <script type="text/javascript">nameddrawProgressBar('#FF7D0A', 200, 40, 80, 'Charactername');</script>
  59.  
  60. Death Knight
  61. <script type="text/javascript">nameddrawProgressBar('#C41F3B', 200, 75, 80, 'Charactername');</script>
  62.  
  63. Priest
  64. <script type="text/javascript">nameddrawProgressBar('#DDDDDD', 200, 73, 80, 'Charactername');</script>
  65.  
  66. Mage
  67. <script type="text/javascript">nameddrawProgressBar('#69CCF0', 200, 72, 80, 'Charactername');</script>
  68.  
  69. Warrior
  70. <script type="text/javascript">nameddrawProgressBar('#C79C6E', 200, 79, 80, 'Charactername');</script>
  71.  
  72. Rogue
  73. <script type="text/javascript">nameddrawProgressBar('#FFF569', 200, 37, 80, 'Charactername');</script>
  74.  
  75. Warlock
  76. <script type="text/javascript">nameddrawProgressBar('#9482C9', 200, 33, 80, 'Charactername');</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement