Current location: Hot Scripts Forums » General Web Coding » JavaScript » Whats this script?


Whats this script?

Reply
  #1 (permalink)  
Old 01-02-08, 06:01 AM
LeeStorey LeeStorey is offline
New Member
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Whats this script?

Hi,

I'm looking for a similar JavaScript to the one used on Java's homepage (http://www.java.com/en/).

Down at the very bottom there is a floating "feedback" icon, and when hovered over it produces an additional box.

Unfortunately I haven't got a clue what this type of feature would be called so I'm struggling to track one down to be used on my own website.

Thanks in advance.

Last edited by Nico; 01-02-08 at 06:17 AM.
Reply With Quote
  #2 (permalink)  
Old 01-02-08, 07:34 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Try searching "hovering menu javascript"
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #3 (permalink)  
Old 01-03-08, 12:15 PM
dkx dkx is offline
Newbie Coder
 
Join Date: Dec 2007
Location: Chicago
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
it's most likely a <div> with initial display value of none (display:none) that switches to (display:block) when the plus sign is moused over.

there are other js that go with this, possibly
- a script that places the "+" sign in a fixed place
- one that places the pop box relatively to the mouse position
- one that defines the clickable/acrtive area

anyway, at its core it's probably something like this:

HTML Code:
<div id="popbox" style="display:none;">Blah, Blah Blah... </div>

<a href="#" onmouseover="popit('popbox');">Feedback</a>

<script>
  function popit(div) {
    var e=document.getElementById(div);
    if (e.style.display === "none"){     // if its hidden
      e.style.display = "block";             // show it
    }
  }
</script>
conversely, you'd need something on mouseout that does the opposite...
__________________
a complex system that does not work most likely have evolved form a simpler system that worked just fine...
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
Gallery script good/bad idea? joshg678 PHP 2 12-22-08 08:41 AM
Looking for a good review management script griz_fan Script Requests 10 07-29-07 05:08 AM
Login Script v1.9 Problem SuavyDoodle JavaScript 8 09-28-06 09:13 PM
Help me with this script !!! phpfreek Job Offers & Assistance 0 04-12-06 05:19 PM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM


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