0

JS とのリンクを非表示にしたい。スパンを置き換えるコードを見つけました。

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, '', '');
});

私のスパン

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

しかし、私のすべてのテストで何も起こりません...助けてください。

4

0 に答える 0