HTML:
Code: Alles auswählen
<progress progress_stop="1310054187" progress_start="1310052745" max="100" value="69"><div id="ha_zeit-1310052745">69%</div></progress>
Code: Alles auswählen
<progress progress_stop="1310054187" progress_start="1310052745" max="100" value="68.6546463245492"><div id="ha_zeit-1310052745"><img width="120" id="ha_zeit-1310052745_pbImage" title=" 50%" alt=" 0%" src="{T_THEME_PATH}/img/progressbar.gif" style="width: 120px; height: 12px; background-image: url("{T_THEME_PATH}/img/progressbg_orange.gif"); background-position: -60px 50%; padding: 0pt; margin: 0pt;"><span id="ha_zeit-1310052745_pbText"> 69%</span></div></progress>
Code: Alles auswählen
$('progress').each(function() {
$(this).find('div[id^=ha_zeit]').progressBar({
boxImage: '{T_THEME_PATH}/img/progressbar.gif',
barImage: {
0 : '{T_THEME_PATH}/img/progressbg_red.gif',
30 : '{T_THEME_PATH}/img/progressbg_orange.gif',
70 : '{T_THEME_PATH}/img/progressbg_green.gif'
}
});
});
setInterval(function(){
$('progress').each(function(){
$(this).val(((Math.round((new Date()).getTime() / 1000) - $(this).attr("progress_start")) / ($(this).attr("progress_stop") - $(this).attr("progress_start"))) * 100);
val = $(this).val() * (-1.2);
val2 = "px 50%";
$(this).find('img[id$="pbImage"]').css("background-position",val + val2);
});
},500);
Kann mir bitte einer erklären was ich falsch mache und wie es richtig wäre.firebug hat geschrieben:(c.value || "").replace is not a function
[Break On This Error] (function(a,b){function b$(a){return d... a==="string"?a:a+"px")}})})(window);
jquery-1.5.min.js (line 16)