我對JQuery(以及一般的HTML)非常陌生,我試圖獲得一個覆蓋圖來顯示和播放嵌入式電影,當圖像被點擊時。但是,圖像不可點擊,我看不出爲什麼。JQuery覆蓋不會工作
這裏是我的代碼:
<style>
.film_overlay {
display:none;
z-index:500;
background-color:#d0d0d0;
width:520;
min-heigth:300;
border:1px solid #666;
-moz-box-shadow:0 0 90px 5px #000;
-webkit-box-shadow:0 0 90px 5px #000;
}
.film_overlay .close {
background-image:url(http://www.destinationfjallen.se/sites/destfjallen/files/close.png);
position:absolute;
right:-15px;
top:-15px;
cursor:pointer;
height:35px;
width:35px;
}
</style>
<img class="karta" src="http://www.destinationfjallen.se/sites/destfjallen/files/film1.jpg" rel="#film"/>
<div class="film_overlay" id="#film">
<iframe src="http://player.vimeo.com/video/54730694?title=0&byline=0&portrait=0&autoplay=1" width="500" height="281" frameborder="0"webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
<script>
$(document).ready(function() {
$("img[rel]").overlay();
});
</script>
我的所有幫助我能得到感謝!
'.overlay()'不是jQuery的的一部分。你在使用一些插件嗎? –
這不是?哦,我以爲是這樣!我遵循這個指南: http://jquerytools.org/demos/overlay/index.html – user2594856