Difference between revisions of "Team:Tokyo-NoKoGen/Demo"
Line 25: | Line 25: | ||
} | } | ||
− | + | .overview { | |
width:600px; | width:600px; | ||
height:300px; | height:300px; | ||
Line 227: | Line 227: | ||
<div id="box1"/*見えない1段目のボックス*/> | <div id="box1"/*見えない1段目のボックス*/> | ||
− | <div | + | <div class="overview"> |
<img src="http://junk-blog.com/wp-content/uploads/2014/09/sample_image.jpg" alt="サンプル画像" width="550" height="250"alt="Overview"/> | <img src="http://junk-blog.com/wp-content/uploads/2014/09/sample_image.jpg" alt="サンプル画像" width="550" height="250"alt="Overview"/> | ||
Line 275: | Line 275: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
− | $(". | + | $(".overview").click(function(){ |
if($(this).find("a").attr("target")=="_blank"){ | if($(this).find("a").attr("target")=="_blank"){ | ||
window.open($(this).find("a").attr("href"), '_blank'); | window.open($(this).find("a").attr("href"), '_blank'); |
Revision as of 16:10, 26 August 2015