Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-05-2004, 06:48 AM   #1
Member (3 bit)
 
Join Date: Jun 2004
Posts: 5
Link Descriptions

I was wondering if anybody could tell me the html code that allows a description of the link to be in a certain place when the user places the cursor over it. I don't mean the alt tag i mean where there is a set place for the description to be.

I hope people understand that and any replies are graetly appreciated.
pliskin is offline   Reply With Quote
Old 07-05-2004, 10:24 AM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
There is an href attribute called title. Use would be like so:
<a href ="somelink" title="some text"> Some older browsers don't support it too well. I think maybe Netscape 4 but all current ones should.
mairving is offline   Reply With Quote
Old 07-16-2004, 05:54 AM   #3
Member (3 bit)
 
Join Date: Jun 2004
Posts: 5
no its not that one. Thats like the alt tag.

Thanks for the reply anyway.
pliskin is offline   Reply With Quote
Old 07-16-2004, 06:54 AM   #4
PCMech: Saving Lives
 
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
Is the link text what you mean?
Thats:
Code:
<a href="somelink">Description (What you want to appear)</a>
That will make a link that points to somelink and the user will see "Description (What you want to appear)".

HTH
__________________
WhatsThisBoxFor? is offline   Reply With Quote
Old 07-16-2004, 07:08 AM   #5
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
This?

PHP Code:
<a href="http:///" title="tool tip text">link text</a
link text


Or this?

PHP Code:
<img src="http://forum.pcmech.com/images/usf261.gif" alt="This is a Flag" width="68" height="50"
This is a Flag


__
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.

Last edited by Force Flow; 07-16-2004 at 07:11 AM.
Force Flow is offline   Reply With Quote
Old 07-16-2004, 01:39 PM   #6
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Do you mean this? I found this at Dynamic Drive - it's JavaScript:
PHP Code:
<script>

//Link Description script- © Dynamic Drive (www.dynamicdrive.com)
//For full source code and TOS, visit http://www.dynamicdrive.com

//change link descriptions to your own. Extend as needed
var linktext=new Array()
linktext[0]="Visit Dynamic Drive for some great DHTML scripts!"
linktext[1]="JavaScript Kit, the JavaScript technology center"
linktext[2]="Direct link to hundreds of free java applets online"
linktext[3]="Research information, get homework help, chat with educators"
linktext[4]="The virtual encyclopedia"
linktext[5]="Your online dictionary"

var ns6=document.getElementById&&!document.all
var ie=document.all

function show_text(thetextwhichdiv){
if (
ie) eval("document.all."+whichdiv).innerHTML=linktext[thetext]
else if (
ns6document.getElementById(whichdiv).innerHTML=linktext[thetext]
}

function 
resetit(whichdiv){
if (
ie) eval("document.all."+whichdiv).innerHTML=' '
else if (ns6document.getElementById(whichdiv).innerHTML=' '
}

</script>

<!-- show_text(index# of linktext[] to show, ID of div to write to) -->

<p>
<a href="http://www.dynamicdrive.com" onMouseover="show_text(0,'div1')" 
onMouseout="resetit('div1')">Dynamic Drive</a> | 
<a href="http://www.javascriptkit.com" onMouseover="show_text(1,'div1')" 
onMouseout="resetit('div1')">JavaScript Kit</a> | 
<a href="http://www.freewarejava.com" onMouseover="show_text(2,'div1')" 
onMouseout="resetit('div1')">Freewarejava</a> 

<span id="div1"> </span>

<p>
<a href="http://encarta.msn.com/" onMouseover="show_text(3,'div2')" onMouseout="resetit('div2')">Encarta</a> | 
<a href="http://britannica.com/" onMouseover="show_text(4,'div2')" onMouseout="resetit('div2')">Britannica</a> | 
<a href="http://www.dictionary.com" onMouseover="show_text(5,'div2')" onMouseout="resetit('div2')">Dictionary.com</a> 

<i><span id="div2"> </span></i> 
The first part assigns all the link description texts to an array - variable "linktext". Then, the links do an "onMouseOver" script, literally recalling the array defined before. Then, onMouseOut, it resets.


Hope that helps,
kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman
kram 2.0 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:49 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2