Hide link JS with span

59 Views Asked by At

I want to hide some link with JS. I found a code to replace a span.

demoer = {'pofkepfisodijfsodijf':'hd@j|m'};
$('span', '#bottom').bind('click', function(){
str = demoer[$(this).attr('title')];
str = str.replace('h', 'http://');
str = str.replace('m', 'mloiqsaeranol');
str = str.replace('d', 'demo');
str = str.replace('j', 'johanbleuzen.fr');
str = str.replace('@', '.');
str = str.replace('|', '/');
window.open(str, '', '');
});

My span

<span title="Demos">Demos</span>

But with all my test nothing happen... Can you help me please ?

0

There are 0 best solutions below