Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function couponGiver(){
- document.getElementById('logoId').removeEventListener('onmouseover', couponGiver, false);
- var cDiv = document.createElement('div');
- cDiv.id = 'writeDiv'
- cDiv.className = 'coupon';
- document.getElementsByTagName('footer')[0].appendChild(cDiv);
- document.getElementById('writeDiv').innerHTML = "Code:C456";
- }
- function tableSearch(){
- var input, filter, table, tr, td, i;
- input = document.getElementById('userInput');
- filter = input.value;
- table = document.getElementById('tableSearch');
- tr = table.getElementsByTagName('tr');
- for(i = 0; i < tr.lenght; i++){
- td = tr[i].getElementsByTagName("td")[0];
- if(td){
- if(td.innerHTML.toUpperCase().indexOf(filter) > -1){
- tr[i].style.display = " ";
- } else{
- tr[i].style.display ="none";
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement