Seven price
asked on
show and hide keep open through query string
with the example below I was wondering if I pass the id below to a querystring how can my javascript read it and keep open
/******************* html example *///////////////////////// /
<a href=javascript:showhide(' AIR_FRESHE NERS','AIR _FRESHENER S_Image',' ../images/ ');><img src='..\images\expand.gif' border=0 id='AIR_FRESHENERS_Image'> </a><a name='A'> AIR_F RESHENERS< /a></td>
</tr><tr id="AIR_FRESHENERS" style="display:none;">
/************ Javascript ************************** *****\
function showhide(which,img,imgsrc) {
location.pathname;
if(document.all && !document.getElementById) {
document.getElementById = function(id) {
return document.all[id];
}
}
if (document.getElementById){
oWhich = document.getElementById(wh ich).style ;
oImage = document.getElementById(im g);
} else {
if (document.layers) {
oWhich = document.layers[which];
oImage = document.layers[img];
}
}
/******************* html example */////////////////////////
<a href=javascript:showhide('
</tr><tr id="AIR_FRESHENERS" style="display:none;">
/************ Javascript **************************
function showhide(which,img,imgsrc)
location.pathname;
if(document.all && !document.getElementById) {
document.getElementById = function(id) {
return document.all[id];
}
}
if (document.getElementById){
oWhich = document.getElementById(wh
oImage = document.getElementById(im
} else {
if (document.layers) {
oWhich = document.layers[which];
oImage = document.layers[img];
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tks
ASKER