Current location: Hot Scripts Forums » General Web Coding » JavaScript » glorified disjointed rollovers with javascript


glorified disjointed rollovers with javascript

Reply
  #1 (permalink)  
Old 09-01-09, 10:50 PM
asinausk asinausk is offline
New Member
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow glorified disjointed rollovers with javascript

Hi everyone, this is my first post on this forum and is also my first attempt to use javascript. When it comes to javascript I am a complete noob, but before you push the back button I just thought I'd let you know I just spent a few hours in some javascript tuts so I could *at least* have some idea of what you and I are talking about.

Ok, here's my question: How can I make a disjointed div become and remain visible when I hover over it's parent div? The Only time I want that div to go back to being invisible is when I hover over another parent div causing it's child div to become visible.

Here's the example (only tested in FF 3.5.2) :

e|uphoria.com

I used :hover in css to show the disjointed div (the red box) that I want to become visible via javascript.

I managed to achieve this effect with css, but when the user moves the mouse out of the browser window the div disappears because the hover is no longer activated. This is why I need javascript, so the user can do anything he or she wants outside of the browser window and the "hover" will still be activated revealing the content of the div.

Here's the example of the css only version (again, only tested in FF 3.5.2) :

e|uphoria.com

I messed around with some onmouseover and onmouseoff within the html and realized I could achieve the desired effect with some really messy and inefficient code. I would prefer to have the javascript in an external file and not looking like it was written by an idiot.

If anybody could help me out with this that would be awesomely awesome. Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
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
Add javascript after load? <?Wille?> JavaScript 14 03-31-06 05:52 AM
javascript /forms /checkboxes /arrays ski_woman JavaScript 1 11-16-04 05:08 AM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 04:01 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 12:58 PM


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