September 19, 201016 yr I have an advert banner in the header of my web page. When the end-user rolls over it I want it to expand/drop-down to display further information about the advert. This is commonplace in rich-media adverts but I can't find any tutorials or resources to get me started. Here's an example of the effect: http://www.e-planning.net/products/admagic/formats/rollover_expandable_video_banner.html Here's an image of what I'm trying to achieve: What's the best way to acheive this? Jquery? Flash? Ajax? Any links would be greatly appreciated.
September 19, 201016 yr Personally I would use jQuery, out of the box you can use jQuery's mouseover functions, something like this would do it (Obviously you'd need to set the correct z-index and position in your stylesheet to overlay the page, but your first job is to get the banner sliding down)... $('#banner').mouseover(function() { $('#big-banner').slideDown('slow'); }).mouseout(function() { $('#big-banner').hide(); }); That will work fine however, I can recommend from experience using the hoverintent plugin instead - http://cherne.net/brian/resources/jquery.hoverIntent.html The example code on thier site should be more than enough to make a div appear.
September 20, 201016 yr Author Thanks for the explanation Jock. You've narrowed the solution down into something I can now search for and expand on. Cheers!
Create an account or sign in to comment