![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 158 Pomógł: 0 Dołączył: 10.08.2011 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Jak zmienić kolor tylko i wyłącznie znaku "*" na np. kolor czerwony w poniższym kodzie? Kod var texti = "Ile jest "+randomNr1+" + "+randomNr2+" ?"+" *";
|
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 48 Pomógł: 10 Dołączył: 21.10.2011 Skąd: UK / PL Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 158 Pomógł: 0 Dołączył: 10.08.2011 Ostrzeżenie: (0%) ![]() ![]() |
![]() Po prostu musisz dodać kod html do zmiennej?
Coś nie tak, bo zamiast czerwonej gwiazdki jest widoczny kod Ktoś ma pomysł jak temu zaradzić? |
|
|
![]()
Post
#4
|
|
![]() Grupa: Moderatorzy Postów: 36 556 Pomógł: 6314 Dołączył: 27.12.2004 ![]() |
To moze pokaz, jak ty ten tenkst gdzies tam wkladasz..... Czemu zawsze trzeba to pisac? Czemu nie mozna sie samemu domyslic, ze wrozki zyją tylko w bajkach?
-------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 158 Pomógł: 0 Dołączył: 10.08.2011 Ostrzeżenie: (0%) ![]() ![]() |
Kod (function($){
jQuery.fn.ebcaptcha = function(options){ var element = this; var submit = $(this).find('input[type=submit]'); $('<label id="ebcaptchatext"></label>').insertBefore(submit); $('<input name="captcha" type="text" id="ebcaptchainput"/><br/>').insertBefore(submit); var input = this.find('#ebcaptchainput'); var label = this.find('#ebcaptchatext'); $(element).find('input[type=submit]').attr('disabled','disabled'); var randomNr1 = 0; var randomNr2 = 0; var totalNr = 0; randomNr1 = Math.floor(Math.random()*10); randomNr2 = Math.floor(Math.random()*10); totalNr = randomNr1 + randomNr2; var texti = "Ile jest "+randomNr1+" + "+randomNr2+" ?"+" *"; $(label).text(texti); $(input).keyup(function(){ var nr = $(this).val(); if(nr==totalNr) { $(element).find('input[type=submit]').removeAttr('disabled'); } else{ $(element).find('input[type=submit]').attr('disabled','disabled'); } }); $(document).keypress(function(e) { if(e.which==13) { if((element).find('input[type=submit]').is(':disabled')==true) { e.preventDefault(); return false; } } }); }; })(jQuery); |
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 172 Pomógł: 27 Dołączył: 5.10.2013 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#7
|
|
Grupa: Zarejestrowani Postów: 158 Pomógł: 0 Dołączył: 10.08.2011 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#8
|
|
Grupa: Zarejestrowani Postów: 172 Pomógł: 27 Dołączył: 5.10.2013 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#9
|
|
Grupa: Zarejestrowani Postów: 158 Pomógł: 0 Dołączył: 10.08.2011 Ostrzeżenie: (0%) ![]() ![]() |
Jest na ten problem rozwiązanie?
|
|
|
![]()
Post
#10
|
|
![]() Grupa: Zarejestrowani Postów: 3 034 Pomógł: 366 Dołączył: 24.05.2012 Ostrzeżenie: (0%) ![]() ![]() |
a reszta jak już pisali
Ten post edytował com 2.11.2013, 00:57:24 |
|
|
![]()
Post
#11
|
|
Grupa: Zarejestrowani Postów: 158 Pomógł: 0 Dołączył: 10.08.2011 Ostrzeżenie: (0%) ![]() ![]() |
a reszta jak już pisali
Dzięki, wszystko działa ![]() |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 27.04.2025 - 07:45 |