LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2009, 05:38 PM   #1
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
javascript hover


hi, I'm not sure if its javascript that does it or any other language, but I being googling an cant find it.I am building a site and wanna create a "question sign" ? that when users hover over it , a dialogue box appears explaining what it is.I'm sure most of us have seen it on some site or the other.

Can I get some help or links to text on how to create one?

Thank you
 
Old 11-17-2009, 05:49 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
thats simple
i think you put it in with <image src=> tags and add onmouseover()
[code]
<image src="/images/question.gif" OnMouseOver="javascript:helptip()"></image>

[code]
but youcould probably do it in html only using the alt tag because most (all?) browsers show it when you mouse hover.
 
Old 11-17-2009, 06:07 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yep, I think smeeze's second suggestion is the right one: ALT text is what generally causes the hover-text.

PS: smeeze, you missed a slash in your closing [code] tag

Sasha
 
Old 11-17-2009, 07:00 PM   #4
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
what I am looking for is like http://www.alexa.com/siteinfo/linuxquestion.org where it says,"Alexa traffic rank" and you hover over the question sign.Thats exactly what I want.
 
Old 11-17-2009, 07:15 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hmm. Well, looking at the sourcecode of that page in my browser, I can see that the HTML involved in doing that popup is not too complicated, and that it appears to be just HTML and CSS (cascading style sheet).

The HTML source of the page is pretty self-explanatory if you understand basic HTML; as for the CSS, I never did get into that much so I can't make any suggestions about how to set up your CSS file(s) to get the desired appearance. Hopefully another member(s) can provide tips, but you can be sure there are loads of information and tutorials on CSS on the net.

Best of success,

Sasha
 
Old 11-17-2009, 07:50 PM   #6
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
thanks hopefully I do
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable the hover (menu) item in Gnome Kanon Linux - Newbie 2 02-22-2009 08:59 PM
hover summaries titanium_geek LQ Suggestions & Feedback 10 05-16-2006 10:04 AM
Konqueror - Hover over an icon to view metadata RoaCh Of DisCor Linux - Software 12 07-25-2005 10:54 AM
Hover over image. Yukimaruo Programming 17 06-09-2005 01:58 PM
Gaim hyperlink hover crash Pougan Linux - Software 0 12-01-2003 05:35 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration