Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 09-19-2010, 10:35 PM   #1
New Member
 
Join Date: Aug 2009
Posts: 6
Default Banner that expands on rollover?

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/a...eo_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.
rexusdiablos is offline   Reply With Quote


Old 09-20-2010, 03:21 PM   #2
Gold Member
 
Join Date: Oct 2008
Location: Yonkers, NY
Posts: 495
Default

jQuery would work just fine.

I prefer to use the ddlevelsmenu.js, which you can find here:

http://www.dynamicdrive.com/dynamici...menu/index.htm

-Lou
LouTheDesigner is offline   Reply With Quote
Old 09-20-2010, 03:57 PM   #3
Gold Member
 
Join Date: Nov 2009
Location: New York
Posts: 370
Default

JQ will do but you can do this with simple CSS.

#element #stuff-to-show {
display: none;
}
#element:hover #stuff-to-show {
display: block;
}

Obviously this is just an example not complete code.
__________________
Submit to my Website Gallery | NY Web Design
bcee is offline   Reply With Quote
Old 09-20-2010, 06:52 PM   #4
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

If you just want the expanded area visible while the cursor is hovering over it, then all you will only need CSS (use the :hover psuedo class)

If you want it to stay expanded even if the cursor is no longer hovering over the element, then that will take javascript. JQuery would be great here. Flash would also work, but its not my first choice.
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Old 09-22-2010, 08:53 PM   #5
New Member
 
Join Date: Aug 2009
Posts: 6
Default

Quote:
Originally Posted by LouTheDesigner View Post
jQuery would work just fine.

I prefer to use the ddlevelsmenu.js, which you can find here:

http://www.dynamicdrive.com/dynamici...menu/index.htm

-Lou
Thanks. I'll delve through the code and review it.

Quote:
Originally Posted by bcee View Post
JQ will do but you can do this with simple CSS.

#element #stuff-to-show {
display: none;
}
#element:hover #stuff-to-show {
display: block;
}

Obviously this is just an example not complete code.
Quote:
Originally Posted by PixelPusher View Post
If you just want the expanded area visible while the cursor is hovering over it, then all you will only need CSS (use the :hover psuedo class)

If you want it to stay expanded even if the cursor is no longer hovering over the element, then that will take javascript. JQuery would be great here. Flash would also work, but its not my first choice.
Yeah, in terms of the staying expanded without the hover it sounds like I'll need jquery so best to use it altogether methinks.

I was hoping to find specific tutorials and resources. Rich media expanding banners are commonplace. Perhaps they're all using different approaches and not sharing the wisdom.

Last edited by rexusdiablos; 09-22-2010 at 08:54 PM. Reason: Typo
rexusdiablos is offline   Reply With Quote


Reply

Tags
banner, how to, rich media, tutorial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:57 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.