User:KazutoIKEDA/wiki/change-image.js

From 2009.igem.org

(Difference between revisions)
Line 13: Line 13:
});
});
-
function showimg1(){
+
function showimg1(val){
 +
document.obj.src = "https://static.igem.org/mediawiki/2009/2/2c/Mandala1.jpg";
document.obj.src = "https://static.igem.org/mediawiki/2009/a/af/Mandala2.jpg";
document.obj.src = "https://static.igem.org/mediawiki/2009/a/af/Mandala2.jpg";
 +
document.obj.src = "https://static.igem.org/mediawiki/2009/7/74/Mandala3.jpg";
 +
document.obj.src = "https://static.igem.org/mediawiki/2009/e/e8/Mandala4.jpg";
 +
document.obj.src = "https://static.igem.org/mediawiki/2009/6/61/Mandala5.jpg";
 +
document.obj.src = "https://static.igem.org/mediawiki/2009/e/e0/Mandala6.jpg";
}
}

Revision as of 20:07, 21 October 2009

$(document).ready( function() {
    $("#mandala .thumbnail img")
    .hover( 
        function(){// マウスオーバー時
            $(this).fadeTo(200, 0.7);
        },
        function(){// マウスアウト時
            $(this).fadeTo(500, 1.0);
        }
    )


});

function showimg1(val){
document.obj.src = "https://static.igem.org/mediawiki/2009/2/2c/Mandala1.jpg";
document.obj.src = "https://static.igem.org/mediawiki/2009/a/af/Mandala2.jpg";
document.obj.src = "https://static.igem.org/mediawiki/2009/7/74/Mandala3.jpg";
document.obj.src = "https://static.igem.org/mediawiki/2009/e/e8/Mandala4.jpg";
document.obj.src = "https://static.igem.org/mediawiki/2009/6/61/Mandala5.jpg";
document.obj.src = "https://static.igem.org/mediawiki/2009/e/e0/Mandala6.jpg";
}

function showimg2(){
document.obj.src = "画像2のURL";
}

function showimg3(){
document.obj.src = "画像3のURL";
}