Javascript/HTML의 "more info"스크립트에 대한 도움이 조금 있습니다.더 많은 정보 - expand div
현재 코드 :
<div id="information">
Content
<div id="more_information" style="display:none;">
More content
</div>
<a href="#" onclick="showhide('more_information');">More information</a>
</div>
자바 스크립트 :
function showhide(layer_ref) {
if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) {
eval("document.all." + layer_ref + ".style.display = state");
}
if (document.layers) {
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
info = document.getElementById(layer_ref);
info.style.display = state;
}
}
건배
질문은 무엇입니까? –