Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]Jak go wykorzystać na czas wykonywania się skryptu Canvasloader
silverwind
post
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";
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 14:14