Current location: Hot Scripts Forums » General Web Coding » JavaScript » onmouseover Pop Out Windows


onmouseover Pop Out Windows

Reply
  #1 (permalink)  
Old 07-19-07, 04:54 PM
nellystl nellystl is offline
New Member
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
onmouseover Pop Out Windows

Outside of manipulation scripts and having read a few chapters from the book on JavaScript that I just purchased, I am a novice when it comes to JavaScript, so please forgive me if I happen to misuse some terminology when asking this question.

The Problem: Until I can create my own, does anyone know of a script or tutorial that will create a popout window when a user hovers over a link?

When a user hovers over a link, I would like a window to popout that provides some additional information (i.e. text and a couple of links) about the links before they make a selection. When they mouse off of the link, it disappears.

View the Effect: It can be viewed at http://www.amazon.com and selecting the "See all 41 Product categories at the top of the page.

While I find the intellitext ads to be annoying, I do like the pop out windows that they have created. Is this created with JavaScript? Example in the middle of the page: http://webscripts.softpedia.com/scri...ows-13721.html

Thank you in advance for any insight or assistance that is provided.
Reply With Quote
  #2 (permalink)  
Old 07-20-07, 10:50 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
These are not actual windows. They are really just plain, absolutely positioned, <div> tags which get their style.display property set to "block" onmouseover (and it plays a small "animation" by moving the box a bit) , and "none" onmouseout.

They also use a setTimeout before running the code which removes the box so it takes a while before the box disappears.
Some code triggered by the box's onmouseover handler probably also clears the timeout so if the user moves away from the link and onto the popup itself, it won't disappear.

The box also has an onmouseut handler, running the same code as the link's onmouseout handler does so the box will disappear when the cursor moves away from it.

You could also use onmousemove to make the box move along slightly near the cursor position (you get that easily from the event object) while moving it above the link.

Hope I didn't confuse you too much with all those event handlers hehe.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.

Last edited by TwoD; 07-20-07 at 10:53 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pop up windows surendra Flash & ActionScript 2 04-23-06 01:40 AM
Count requesters from an apache log file ddolddolee82 Perl 1 03-17-06 03:08 AM
Web Hosting plan Reviews $ 55 Per Only Year megawebserver Website Reviews 0 09-05-05 01:10 PM
Programming Windows, Fifth Edition cyper General Advertisements 0 05-05-05 01:46 PM
Matrix Reseller - Windows 2003 and FreeBSD vortech General Advertisements 0 11-02-03 10:06 PM


All times are GMT -5. The time now is 11:27 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.