With this script it's actually very easy to get it to work multiple times on the same page. Simply replace the default change_text() function inside the code of Step 1 with the below instead:
Code:
function changetext(whichcontent, targetdiv){
if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById(targetdiv):document.all.targetdiv
cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
}
}
Then, for each of the onMouseover code embedded inside your links, modify them to the following new structure (changes in red), ie:
Code:
<a href="index.html" onMouseover="changetext(content[1], 'descriptions')"></a>
In essence, you're now explicitly passing in the ID of the DIV the description should be shown in (in this case, "descriptions") inside each changetext() function call.
For your second instance of the script on the page then, you'd first define the desired description array, ie:
Code:
var contenty=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
contenty[0]='<br><big><b>Menus and navigation systems</b></big><br>Click here for DHTML scripts that help enhance your site\'s navigability, such as collapsible menus, sliding menu bars etc.'
contenty[1]='<br><big><b>Special document effects</b></big><br>With the advent of DHTML, webpages are one step closer to its cousin, TV, in terms of special effects...'
contenty[2]='<br><big><b>Scrollers</b></big><br>Up until now, adding a scroller or tickertape to your website usually meant using a slow Java applet. Not anymore. Click here for DHTML scrollers that accomplish the same task with minimal download time.'
contenty[3]='<br><big><b>Image effects</b></big><br>Add lightweight effects to your existing images using these scripts. Make them fly, light up, turn static, all without paying the cost of slow downloading time.'
contenty[4]='<br><big><b>Links and buttons</b></big><br>Add tooltips to your text links, rollover effects to your form buttons, keyboard features to your document, and more.'
Then, create a blank DIV with a unique ID that will house these descriptions, ie:
Code:
<div id="descriptions2"></div>
Then finally, inside the links that will show these descriptions onMouseover, do something like:
Code:
<a href="index.html" onMouseover="changetext(contenty[1], 'descriptions2')"></a>
Bookmarks