home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

how to do a link tooltip

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2421
Discussions: 200,941, Posts: 2,379,270, Members: 246,304
Old December 5th, 2004, 02:57 AM   Digg it!   #1 (permalink)
is 4 f00t secks
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Da Burgh
Posts: 4,587
Blog Entries: 3
how to do a link tooltip

how do you create a link that when you hover over it, a little description will show up. i can't find anything on google that is as simple as i think this should be.
__________________
Music (4/15/08) - Video (4/15/08) - blog - Legend of Six RPG
sixf00t4 is offline   Reply With Quote
Old December 5th, 2004, 02:59 AM     #2 (permalink)
is 4 f00t secks
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Da Burgh
Posts: 4,587
Blog Entries: 3
alt= , looked at the source here
sixf00t4 is offline   Reply With Quote
Old December 5th, 2004, 03:04 AM     #3 (permalink)
Member
 
Join Date: Dec 2004
Location: Hayden
Posts: 38
Send a message via MSN to Figgienfen
Use a WYSIWYG... <img src="yourimage.yourextention" alt="your tooltip"> easy as that.

Last edited by Figgienfen : December 5th, 2004 at 03:06 AM.
Figgienfen is offline   Reply With Quote
Old December 6th, 2004, 10:36 PM     #4 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Yes, that works for images as well as links. And links that are images.

Though if you really wanted to have fun, you could use some javascript... and make little boxes diferent colors and stuff come up!!!


Blaze
Blazer06 is offline   Reply With Quote
Old December 6th, 2004, 10:40 PM     #5 (permalink)
is 4 f00t secks
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Da Burgh
Posts: 4,587
Blog Entries: 3
Quote:
Originally Posted by sixf00t4
i can't find anything on google that is as simple as i think this should be.

yeah, i know blaze. you don't have a few links though, for me to graze on, or others to stop by this thread, do?
sixf00t4 is offline   Reply With Quote
Old December 6th, 2004, 11:04 PM     #6 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Code:
<html>
  <style>
    .ttip {
      border:1px solid black;
      font-size:12px;
      layer-background-color:lightyellow;
      background-color:lightyellow;
    }
  </STYLE>

<script>
  var tip=new Array
    tip[0]='Tip #1'
    tip[1]='Tip #2'
    tip[2]='Blaze Rocks'
    tip[3]='Jen Rocks Too'
           
  function showtip(current,e,num)
    {
      if (document.layers) // Netscape 4.0+
        {
          theString="<DIV CLASS='ttip'>"+tip[num]+"</DIV>"
          document.tooltip.document.write(theString)
          document.tooltip.document.close()
          document.tooltip.left=e.pageX+14
          document.tooltip.top=e.pageY+2
          document.tooltip.visibility="show"
         }
       else
         {
           if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
             {
               elm=document.getElementById("tooltip")
               elml=current
               elm.innerHTML=tip[num]
               elm.style.height=elml.style.height
               elm.style.top=parseInt(elml.offsetTop+elml.offsetHeight)
               elm.style.left=parseInt(elml.offsetLeft+elml.offsetWidth+10)
               elm.style.visibility = "visible"
             }
           }
         }

  function hidetip(){
    if (document.layers) // Netscape 4.0+
      {
        document.tooltip.visibility="hidden"
      }

    else
      {
       if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
         {
          elm.style.visibility="hidden"
         }
      } 
  }
</script>

<!-- CHANGE THE TIP STUFF HERE: -->
<div id="tooltip" style="position:absolute;visibility:hidden;border:1px solid black;font-size:20px;layer-background-color:lightyellow;background-color:blue;padding:1px"></div>

<a href="http://www.techimo.com" onMouseover="showtip(this,event,'0')" onMouseOut="hidetip()">Techimo</a>
<br>
<a href="http://www.blazeme.net" onMouseover="showtip(this,event,'1')" onMouseOut="hidetip()">BlazeMe</a>
<br>
<a href="http://www.700design.com" onMouseover="showtip(this,event,'2')" onMouseOut="hidetip()">700 Design</a>
<br>
<a href="http://www.resellerratings.com" onMouseover="showtip(this,event,'3')" onMouseOut="hidetip()">ResellerRatings</a>

</html>
Yip, I does.


Blaze
Blazer06 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
"techimo . com" banner spacing sixf00t4 Suggestion Box 20 May 28th, 2003 12:35 AM
Tooltips Dissapeared Cody General Tech Discussion 1 August 25th, 2002 12:48 PM
Shortcut names do not appear correctly in Quicklaunch toolbars Fingers Applications and Operating Systems 16 June 13th, 2002 10:16 AM
newbie question how_2 Webmastering and Programming 8 April 6th, 2002 08:24 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2914)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (8)
California Passes Anti-Flat-HDTV Le.. (43)
Regular Build (6)
Obama the Muslim (14)
Is the PSU I received dead? (11)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
screen resolution vs monitor size (0)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
Wireless Televisions. (8)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)


All times are GMT -4. The time now is 02:08 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28