Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Div overlay drops down on roll over
Old 05-01-2009, 07:02 AM Div overlay drops down on roll over
Skilled Talker

Posts: 90
Trades: 0
Hi all,

I'm looking for a script to do the following:

I want to have a div, with content defined externally, show only a portion of it (with overflows=hidden) until the visitor rolls over the actual div -- then it drops down the rest of it in an overlay way that won't interrupt or shift the page.

In other words...

The user will see this:
____________________
| xxxx 1 xxxxxxxxxxxxx|
| xxxx 2 xxxxxxxxxxxxx |
|_____3_____________|

Until the user rolls the mouse over the div, and then it will expand downwards to show the rest of the content:
____________________
| xxxx 1 xxxxxxxxxxxxx|
|xxxx 2 xxxxxxxxxxxxx |
| xxxx3 xxxxxxxxxxxxx|
| xxxx4 xxxxxxxxxxxxx |
| xxxx 5 xxxxxxxxxxxxx |
|_____6_____________|

Does anyone know of a script that does something like this or can point me in the right direction?

Thanks a bunch!

Last edited by msaz87; 05-01-2009 at 07:04 AM..
msaz87 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-02-2009, 05:17 PM Re: Div overlay drops down on roll over
moatist's Avatar
Skilled Talker

Posts: 64
Trades: 0
I'm just going to throw out a couple of ideas/thoughts off the top of my head:

Using the overflow=hidden sounds like a good idea.

I'm thinking that you could use CSS absolute positioning to place the full DIV directly over the partial DIV. the z-index works well for overlaying things. You could determine the absolute-position values that the full DIV will be positioned to using javascript. Using the javascript onmouseover event, you could show/hide the overlay DIV.

I hope I am making myself clear.

I'll try to come up with some code as soon as I can find the time.

Moatist
__________________
Think in code; Dream in digital.

<?php if($helpfull == true){ $talkupation++; } ?>

Last edited by moatist; 05-02-2009 at 05:18 PM..
moatist is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Div overlay drops down on roll over
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13720 seconds with 12 queries