fn_cmtag_show(result_translate,"strim"/"nostrim","Tool",10,2,5)
Hàm đợi cho tới khi xuất hiện thẻ TAG - Thư viện CMJIL |
1.Call Function:
fn_cmtag_show(cmtag_show_get_content,cmtag_show_get_content_strim,cmtag_show_content,cmtag_show_count,cmtag_show_delay,cmtag_show_delay_final)
2.Note:
+ cmtag_show_get_content: Tên biến GET nội dung thẻ TAG
+ cmtag_show_get_content_strim: Có 2 chế độ
- “strim”: Xóa hết ký tự “space” (dấu cách) trong đoạn nội dung.
- “nostrim”: Giữ nguyên dạng đoạn nội dung.
+ cmtag_show_content: Nội dung của thẻ Tag đợi xuất hiện
+ cmtag_show_count: Số lần check
+ cmtag_show_delay: Thời gian trễ mỗi lần check
+ cmtag_show_delay_final: Thời gian trễ lần check cuối cùng
3.Example:
Copy đoạn code dưới paste vào file đuôi *.js đã có code CMJIL --> run trên trình duyệt Firefox với Addon iMacros.
alert("11.Waiting until TAG show then the end");
fn_cmurl_go("http://www.caomjnh102.com/",1);
var result_translate;
result_translate ="CODE:";
result_translate +="SET !EXTRACT_TEST_POPUP NO" + cm_nl;
result_translate +="SET !ERRORIGNORE YES" + cm_nl;
result_translate +="TAG POS=1 TYPE=A ATTR=TXT:Tool EXTRACT=TXT" + cm_nl;
fn_cmtag_show(result_translate,"strim","Tool",10,2,5);
Đăng nhận xét Blogger Facebook