Chầm cảm thặc xự ![]()
Yêu cầuTôi Đã Tạo Ra Quả Code Siêu TO KHỔNG LỒ Khiến Mọi Người Phải Trầm Cảm
24.07.2021 / 21:32
Bài đăng: 109
Member
Samsung j2
PHP
<?php define('_IN_JOHNCMS', 1); $headmod = 'loto'; require('../system/bootstrap.php'); $textl = _t('SONG THỦ LÔ NUÔI KHUNG 3 NGÀY'); require('../system/head.php'); // Lấy source HTML dưới dạng chuỗi $source = $soc->html->get_source('https://http://ketqua1.net/xo-so-mien-bac', 1); if($source){ // Nếu get được dữ liệu // Chuyển từ chuỗi sang dạng DOM $dom = $soc->html->to_dom($source); if($dom){ // Chuyển sang DOM thành công // Lấy ra thẻ img đầu tiên và in ra src $first_img = $dom->find('img', 0); if($first_img){ echo $first_img->src; } // Lấy ra tất cả thẻ a và in ra href foreach($dom->find('a') as $a){ echo $a->href; } // Bỏ script, style trong $source foreach($dom->find('script,style') as $script){ $script->outertext = ''; } // Chỉnh lại nội dung bên trong thẻ p thứ 2 thành abc $second_p = $dom->find('p', 1); if($second_p){ $second_p->innertext = 'abc'; } // In ra text bên trong div có class="xyz" đầu tiên $div_xyz = $dom->find('div.xyz', 0); if($div_xyz){ echo $div_xyz->plaintext; } // In ra tất cả thẻ a bên trong id="tn" foreach($dom->find('#tn a') as $a){ echo $a; // hoặc echo $a->outertext; } // In ra tất cả thẻ a có rel="nofollow" foreach($dom->find('a[rel="nofollow"]') as $a){ echo $a; // hoặc echo $a->outertext; } // Ẩn mọi thẻ pre và thêm alt cho tất cả thẻ img foreach($dom->find('pre,img') as $x){ if($x->tag=='pre'){ $x->outertext = '<div style="display:none">'.$x->outertext.'</div>'; }else{ $x->alt = 'Chú tích cho ảnh'; } } // Tìm ra div con đầu tiên bên trong div class="social" $first_social = $dom->find('.social', 0); if($first_social){ $first_social->first_child(); // Tìm cha con anh em: parent / children / first_child / last_child / next_sibling / prev_sibling } } } ?> <?php require('../system/end.php');
01.08.2021 / 18:31
Bài đăng: 109
Member
Samsung j2
Sau một thời gian vắng mặt, tôi đã trở lại với công việc của mình: else if
PHP
$('#Maincauduoi_btnCreate1').on('click',() => { var text = Number($('#Maincauduoi_txtDan').val()); if(text == '01') { text = '02 - 20';} else if (text == '10') {text = '02 - 20';} else if (text == '00') {text = '01 - 10';} else if (text == '55') {text = '01 - 10';} else if (text == '02') {text = '03 - 30';} else if (text == '20') {text = '03 - 30';} else if (text == '03') {text = '04 - 40';} else if (text == '30') {text = '04 - 40';} else if (text == '04') {text = '05 - 50';} else if (text == '40') {text = '05 - 50';} else if (text == '05') {text = '06 - 60';} else if (text == '50') {text = '06 - 60';} else if (text == '06') {text = '07 - 70';} else if (text == '60') {text = '07 - 70';} else if (text == '07') {text = '08 - 80';} else if (text == '70') {text = '08 - 80';} else if (text == '08') {text = '09 - 90';} else if (text == '80') {text = '09 - 90';} else if (text == '09') {text = '11 - 66';} else if (text == '90') {text = '11 - 66';} else if (text == '11') {text = '12 - 21';} else if (text == '66') {text = '12 - 21';} else if (text == '12') {text = '13 - 31';} else if (text == '21') {text = '13 - 31';} else if (text == '13') {text = '14 - 41';} else if (text == '31') {text = '14 - 41';} else if (text == '14') {text = '15 - 51';} else if (text == '41') {text = '15 - 51';} else if (text == '15') {text = '16 - 61';} else if (text == '51') {text = '16 - 61';} else if (text == '16') {text = '17 - 71';} else if (text == '61') {text = '17 - 71';} else if (text == '17') {text = '18 - 81';} else if (text == '71') {text = '18 - 81';} else if (text == '18') {text = '19 - 91';} else if (text == '81') {text = '19 - 91';} else if (text == '19') {text = '22 - 77';} else if (text == '91') {text = '22 - 77';} else if (text == '22') {text = '23 - 32';} else if (text == '77') {text = '23 - 32';} else if (text == '23') {text = '24 - 42';} else if (text == '32') {text = '24 - 42';} else if (text == '24') {text = '25 - 52';} else if (text == '42') {text = '25 - 52';} else if (text == '25') {text = '26 - 62';} else if (text == '52') {text = '26 - 62';} else if (text == '26') {text = '27 - 72';} else if (text == '62') {text = '27 - 72';} else if (text == '27') {text = '28 - 82';} else if (text == '72') {text = '28 - 82';} else if (text == '28') {text = '29 - 92';} else if (text == '82') {text = '29 - 92';} else if (text == '29') {text = '33 - 88';} else if (text == '92') {text = '33 - 88';} else if (text == '33') {text = '34 - 43';} else if (text == '88') {text = '34 - 43';} else if (text == '34') {text = '35 - 53';} else if (text == '43') {text = '35 - 53';} else if (text == '35') {text = '36 - 63';} else if (text == '53') {text = '36 - 63';} else if (text == '36') {text = '37 - 73';} else if (text == '63') {text = '37 - 73';} else if (text == '37') {text = '38 - 83';} else if (text == '73') {text = '38 - 83';} else if (text == '38') {text = '39 - 93';} else if (text == '83') {text = '39 - 93';} else if (text == '39') {text = '44 - 99';} else if (text == '93') {text = '44 - 99';} else if (text == '44') {text = '45 - 54';} else if (text == '99') {text = '45 - 54';} else if (text == '45') {text = '46 - 64';} else if (text == '54') {text = '46 - 64';} else if (text == '46') {text = '47 - 74';} else if (text == '64') {text = '47 - 74';} else if (text == '47') {text = '48 - 84';} else if (text == '74') {text = '48 - 84';} else if (text == '48') {text = '49 - 94';} else if (text == '84') {text = '49 - 94';} else if (text == '49') {text = '56 - 65';} else if (text == '94') {text = '56 - 65';} else if (text == '56') {text = '57 - 75';} else if (text == '65') {text = '57 - 75';} else if (text == '57') {text = '58 - 85';} else if (text == '75') {text = '58 - 85';} else if (text == '58') {text = '59 - 95';} else if (text == '85') {text = '59 - 95';} else if (text == '59') {text = '67 - 76';} else if (text == '95') {text = '67 - 76';} else if (text == '67') {text = '68 - 86';} else if (text == '76') {text = '68 - 86';} else if (text == '68') {text = '69 - 96';} else if (text == '86') {text = '69 - 96';} else if (text == '69') {text = '78 - 87';} else if (text == '96') {text = '78 - 87';} else if (text == '78') {text = '79 - 97';} else if (text == '87') {text = '79 - 97';} else if (text == '79') {text = '89 - 98';} else if (text == '97') {text = '89 - 98';} else if (text == '98') {text = '00 - 55';} else if (text == '89') {text = '00 - 55';} $('#Maincauduoi_txtDan1').val(text); })
Người dùng đã xem (31)
![[OFF]](/assets/images/off.gif)