Użytkownik:Vae/monobook.js: Różnice pomiędzy wersjami
Z Nonsensopedii, polskiej encyklopedii humoru
M |
M |
||
Linia 1: | Linia 1: | ||
s2 = ' |
s2 = 'No chyba was pogrzało!'; |
||
hash = '33DE0F8E6A9247CD76EBD7D785FD0C97' |
hash = '33DE0F8E6A9247CD76EBD7D785FD0C97' |
||
YAHOO.util.Event.onContentReady('ajax-poll-'+hash, function(){ |
YAHOO.util.Event.onContentReady('ajax-poll-'+hash, function(){ |
||
var ankieta = document.getElementById('ajax-poll-'+hash); |
var ankieta = document.getElementById('ajax-poll-'+hash); |
||
var |
var odp=document.getElementById('wpPollVote'+hash+'-3').parentNode.previousSibling.childNodes[0].childNodes[0]; |
||
odp.addEventListener('mouseover', function(){ |
|||
var |
var odp = document.getElementById('wpPollVote'+hash+'-3').parentNode.previousSibling.childNodes[0]; |
||
if( |
if(odp.childNodes[0].nodeName == '#text') |
||
{ |
{ |
||
odp.removeChild(odp.childNodes[0]); |
|||
odp.appendChild(document.createTextNode(s2)); |
|||
} |
} |
||
else if(odp2.childNodes[1].nodeName == '#text') |
else if(odp2.childNodes[1].nodeName == '#text') |
||
{ |
{ |
||
odp.removeChild(odp.childNodes[1]); |
|||
odp.insertBefore(document.createTextNode(s2), odp.childNodes[0]); |
|||
} |
} |
||
}); |
}); |
Wersja z 21:12, 21 sty 2012
s2 = 'No chyba was pogrzało!';
hash = '33DE0F8E6A9247CD76EBD7D785FD0C97'
YAHOO.util.Event.onContentReady('ajax-poll-'+hash, function(){
var ankieta = document.getElementById('ajax-poll-'+hash);
var odp=document.getElementById('wpPollVote'+hash+'-3').parentNode.previousSibling.childNodes[0].childNodes[0];
odp.addEventListener('mouseover', function(){
var odp = document.getElementById('wpPollVote'+hash+'-3').parentNode.previousSibling.childNodes[0];
if(odp.childNodes[0].nodeName == '#text')
{
odp.removeChild(odp.childNodes[0]);
odp.appendChild(document.createTextNode(s2));
}
else if(odp2.childNodes[1].nodeName == '#text')
{
odp.removeChild(odp.childNodes[1]);
odp.insertBefore(document.createTextNode(s2), odp.childNodes[0]);
}
});
});