1) Describe Problem:
I have created a web site that has expand and collapse links. I would like to add a background image behind the expand/collapse link. Everything I do does not work. Any ideas? This could be a plus sign when it is collapsed or a minus sign when it is expanded. Anything to illustrate that this item is expandable or collapsible.
2) Here is the code:
<TITLE>Expand & Collapse 1</TITLE>
<script type="text/javascript">
function showHideMe(id){
if(document.getElementById(id).style.display=="none"){
document.getElementById(id).style.display="block"
}
else{
document.getElementById(id).style.display="none"
}
}
</script>
<style type="text/css">
.expands{
width:390px;
cursor:hand;
cursorointer;
}
</style>
<div class="expands" onclick="showHideMe('div1')"><b>Southampton History...</b></div>
<div id="div1" style="display:none;border:1px solid #5555AA;background-color:#AAF;width:460px">
Under Construction.<br />
<img border="0" src="images/underconstruction.gif" width="309" height="245"><br />
Coming Soon.
</div>
Anything would be much appreciated...
Thanks,
Brad



ointer;
Reply With Quote

Bookmarks