document.write (" | <a href = 'myhomepage.asp ?
view=mhp&ac tion=save&p b=");
document.write (document.phone .style.display. value);
document.write ("'>save view</a>");
};
creates an error at this (>) line.
function showhide (item) {
var objid = document.getEle mentById(item);
var imgid = document.getEle mentById(item+' i');
var imgidMinusSrc = '/images/furniture/minus.gif';
var imgidPlusSrc = '/images/furniture/plus2.gif';
if (objid.style.di splay == 'inline') {
objid.style.dis play = 'none';
imgid.src = imgidPlusSrc;
if (item == 'hpleftcolhl') {
objid.style.wid th = '4px';
document.getEle mentById('hplef tcol').style.wi dth = '6px';
document.getEle mentById('showt ime').style.dis play =
'none';
}
}
else {
objid.style.dis play = 'inline';
imgid.src = imgidMinusSrc;
if (item == 'hpleftcolhl') {
objid.style.wid th = '160px';
document.getEle mentById('hplef tcol').style.wi dth =
'160px';
document.getEle mentById('showt ime').style.dis play =
'inline';
}
}
};
this one however works fine, and both use the same object?
I've tried using document.getEle mentById('phone ').style.displa y
but with same result.
now, the saveState function is simply some inline script to build an <a
href> , whereas the showhide one is triggered from an onclick.