JQuery overlay wont work -
i'm new jquery (and html in general) , i'm trying overlay show , play embedded film when image clicked. however, image isn't clickable , can't see why.
here's code:
<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>
i'm grateful can get!
.overlay()
not part of jquery. it's plugin found within jquery tools library. you'll have include it. add following line <head>
part of page (after load jquery):
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
Comments
Post a Comment