Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> pomożcie z cudzysłowiami
mikipl
post 4.11.2010, 16:00:26
Post #1





Grupa: Zarejestrowani
Postów: 28
Pomógł: 0
Dołączył: 23.09.2009

Ostrzeżenie: (0%)
-----


  1. document.getElementById('noticeLbl').innerHTML = ' <a href="javascript : SKRYPCIK" </a> ';


tam gdzie skrypcik chce miec :

  1. java script:var imie = "imie"; var nazwisko = "nazwisko"; var adres1 = "adres"; var adres2 = ""; var miasto = "miasto"; var kod = "kod"; var state = "PL"; var telefon = "0048telefon"; var zapas = 20; selectCountry("PL", $("a[onclick*='PL']").get(0)); hideCountries(); var regexp = /style="top:(\s)*\d{2,3}px;(\s)*left:(\s)*\d{2,3}px/g; var test = regexp.exec(document.body.innerHTML); function abs(x) { return Number(x < 0 ? x * -1 : x); } var values = new Array(); var wsp = new Array(); var i=0; do { wsp[i] = document.body.innerHTML.match(/style="top:(\s)*\d{2,3}px;(\s)*left:(\s)*\d{2,3}px/g)[i].match(/\d{2,3}/g); if(abs(wsp[i][0]-318) <= zapas && abs(wsp[i][1]-460) <= zapas) { values[i] = kod; } else if(abs(wsp[i][0]-179) <= zapas && abs(wsp[i][1]-348) <= zapas) { values[i] = nazwisko; } else if(abs(wsp[i][0]-318) <= zapas && abs(wsp[i][1]-73) <= zapas) { values[i] = miasto; } else if(abs(wsp[i][0]-247) <= zapas && abs(wsp[i][1]-73) <= zapas) { values[i] = adres1; } else if(abs(wsp[i][0]-247) <= zapas && abs(wsp[i][1]-348) <= zapas) { values[i] = adres2; } else if(abs(wsp[i][0]-179) <= zapas && abs(wsp[i][1]-73) <= zapas) { values[i] = imie; } i++; } while((test = regexp.exec(document.body.innerHTML)) != null); values[7] = state; values[11] = telefon; $("input").each(function(i){ $(this).val(values[i]); }); document.getElementById("recaptcha_response_field" ).focus();

// wersja wklej.org http://wklej.org/id/412522/

nie moge tych cudzysłowi ogarnąć

// ten skrypt dziala na 100%

Ten post edytował mikipl 4.11.2010, 16:03:38
Go to the top of the page
+Quote Post

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: 25.07.2025 - 07:56