![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 80 Pomógł: 0 Dołączył: 8.02.2013 Ostrzeżenie: (0%) ![]() ![]() |
Po kliknięciu w przycisk chce by pojawił canvasloader na czas wykonywania skryptu. Jak to dobrze po depnąć pod zdarzenie.
$(document).ready(function(){ $("#1").click(function(){ $("#Wynik1").show('slow','cl'); }); }); var cl = new CanvasLoader('canvasloader-container'); cl.setColor('#19610e'); // default is '#000000' cl.setDiameter(85); // default is 40 cl.setRange(1.2); // default is 1.3 cl.setFPS(30); // default is 24 cl.show(); // Hidden by default // This bit is only for positioning - not necessary var loaderObj = document.getElementById("canvasLoader"); loaderObj.style.position = "absolute"; loaderObj.style["top"] = cl.getDiameter() * -0.5 + "px"; loaderObj.style["left"] = cl.getDiameter() * -0.5 + "px"; |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 14:14 |