home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 August
/
Chip_2004-08_cd2.bin
/
avid_dvfree
/
info
/
XpressFree.chm
/
forpages.js
< prev
next >
Wrap
Text File
|
2003-09-29
|
2KB
|
72 lines
//showhide() carries out the actions associated with the show more info and show less info buttons
//called onMouseUp from any instance of those buttons
//when button is in more info state:
//runs through all div tags, checks whether their ids include "more"
//if they do, displays them, switches the button status stuff to the less info state,
function showhide() {
var alldivs = document.getElementsByTagName("div");
if (document.images.moreintopic) {
for (i=0; i<alldivs.length; i++) {
var obj = alldivs[i];
if (obj.id.indexOf("more")!= -1) {
obj = obj.style;
obj["display"] = "block";
}
}
document.images.moreintopic.src = hide["nm"];
document.images.moreintopic.title = "Hide additional information in the topic.";
document.images.moreintopic.id = "lessintopic";
}
else {
for (i=0; i<alldivs.length; i++) {
var obj = alldivs[i];
if (obj.id.indexOf("more")!= -1) {
obj = obj.style;
obj["display"] = "none";
}
}
document.images.lessintopic.src = show["nm"];
document.images.lessintopic.title = "Display additional information in the topic.";
document.images.lessintopic.id = "moreintopic";
}
}
function morebuttondown() {
if (document.images.moreintopic) {
document.images.moreintopic.src=show["dn"];
}
else {
document.images.lessintopic.src=hide["dn"];
}
}
function morebuttonroll() {
if (document.images.moreintopic) {
document.images.moreintopic.src=show["rl"];
}
else {
document.images.lessintopic.src=hide["rl"];
}
}
function morebuttonorig() {
if (document.images.moreintopic) {
document.images.moreintopic.src=show["nm"];
}
else {
document.images.lessintopic.src=hide["nm"];
}
}