yellowobsession
WordPress.Klub

Imię: Kamil
Dołączył/a: 07 Lut 2012 Posty: 31
|
Wysłany:
2012-06-22, 01:35 [blogger] gadżet (HTML / JavaScript) w poście / na stronie
|
|
|
Chciałbym dodać gadżet postępu:
Kod <style type="text/css"> div.smallish-progress-wrapper { position: relative; border: 1px solid black; } div.smallish-progress-bar { position: absolute; top: 0; left: 0; height: 100%; } div.smallish-progress-text { text-align: center; position: relative; } </style> <script type="text/javascript"> function drawProgressBar(color, width, percent) { var pixels = width * (percent / 100); document.write('<div class="smallish-progress-wrapper" style="width: ' + width + 'px">'); document.write('<div class="smallish-progress-bar" style="width: ' + pixels + 'px; background-color: ' + color + ';"></div>'); document.write('<div class="smallish-progress-text" style="width: ' + width + 'px">' + percent + '%</div>'); document.write('</div>'); } </script>
<p> </p>
<center>
<script type="text/javascript">drawProgressBar('#138917', 176, 38.3);</script>
do mojego postu.
Wklejam w poście (edycja kodu html) ten skrypt,jednak nie widać żadnego efektu.
|
|