PDA

View Full Version : Link Description script



femfrog
04-25-2007, 12:32 PM
I would like to know how to change the font size for the link description code.

Here is the code that I used:

//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]=""
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(thetext, whichdiv){
if (ie) eval("document.all."+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}

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

</script></font></p>

<p style="margin-left: 20px; margin-bottom: 25px">
<a href="" onMouseover="show_text(0,'div1')" onMouseout="resetit('div1')">
<font size="2">Stroke Program</font></a><font size="2"> |
<a href="" onMouseover="show_text(1,'div1')" onMouseout="resetit('div1')">Telestroke</a> |
</font>
<a href="" onMouseover="show_text(2,'div1')" onMouseout="resetit('div1')">
<font size="2">Stroke secondary prevention clinic</font></a><br>
<span id="div1"> </span>

jscheuer1
04-25-2007, 12:42 PM
<span id="div1" style="font-size:90&#37;;"> </span>

ddadmin
04-26-2007, 04:16 AM
Femfrog, Warning: please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.