Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Banner that expands on rollover?

Featured Replies

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:

advertry.png

 

What's the best way to acheive this? Jquery? Flash? Ajax?

 

Any links would be greatly appreciated.

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.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.