-2

ここでポートフォリオ サイトを作成しています。なんらかの理由で、onmouseover イベントをアイコンのいずれかにアタッチしようとすると、何も起こりません。自分の名前のテキストをアイコンの名前にフェードインしようとしています。ホバリングしていて、マウスを離すとフェードアウトしますが、これを行う方法はありますか? 私は約10の「解決策」を試しました

ありがとう

4

2 に答える 2

0

あなたのサイトであなたが jQuery を読み込んでいることに気付きました。タグにリストされていなくても、jQuery を使用する回答を提供します。

$("#about").mouseover(function(){ //When the mouse enters
    $("span.text").fadeOut("slow",function(){
        //After your name has fadedOut switch the text and fadeIn
        $("span.text").html("About");
        $("span.text").fadeIn("slow");
    });
}).mouseout(function(){ //When the mouse leaves
    $("span.text").fadeOut("slow",function(){
        //After "about" has fadedOut switch with your name and fadeIn
        $("span.text").html("Matthew Foulks");
        $("span.text").fadeIn("slow");
    });
});

うまくいけば、これが役に立ちます。これについて質問があるかどうか尋ねてください。

于 2013-05-10T02:46:21.477 に答える
0
<td onclick="move('url');" onmouseover="alert();" class="tile" id="portfolio"></td>
于 2013-05-10T02:34:00.653 に答える