Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> wyswietlanie funkcji bez onclick
mathevs
post 13.04.2013, 07:50:25
Post #1





Grupa: Zarejestrowani
Postów: 39
Pomógł: 0
Dołączył: 5.11.2012

Ostrzeżenie: (10%)
X----


witam mam strone na której chcicałbym użyć okienko alert (specialne) i czy dało by sie zrobic tak ze funkcja wyswietlała by się beż np onclick questionmark.gif


tak ze jak w php napisze echo '<script>.....</script> '; to zeby ta funkcja mi się wyswietlila...


  1.  
  2. //Alertify JS
  3. $ = function (id) {
  4. return document.getElementById(id);
  5. },
  6. reset = function () {
  7. $("toggleCSS").href = "css/alertify.core.css";
  8. alertify.set({
  9. labels: {
  10. ok: "OK",
  11. cancel: "Cancel"
  12. },
  13. delay: 5000,
  14. buttonReverse: false,
  15. buttonFocus: "ok"
  16. });
  17. };
  18.  
  19. // Standard Dialogs
  20. $("alert").onclick = function () {
  21. reset();
  22. alertify.alert("This is an alert Dialog");
  23. return false;
  24. };
  25.  
  26.  


Ten post edytował mathevs 13.04.2013, 07:50:52
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 09:16