Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var changePic = function(evt){
- //alert("hi");
- var a = $(this);
- var title = $(this).attr("title");
- //alert("hi");
- var imageHref = a.attr("src");
- $("#enlarged").attr("src", imageHref);
- $("#imgtitle").text(title);
- var asideTag = $("#image");
- asideTag.attr("src",imageHref );
- //evt.preventDefault();
- };
- $(document).ready(function() {
- $(".bxslider").bxSlider({
- //auto: true,
- //autoControls: true,
- //stopAutoOnClick: true,
- //pager: true,
- mode: 'fade',
- captions: true,
- slideWidth: 400
- });
- var imgElements = $(".bxslider img");
- //alert(imgElements[2]);
- /*imgElements.each(function() {
- var image = new Image();
- image.src = $(this).attr("href");
- });*/
- imgElements.mouseenter(changePic);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement