make text non-display unless requested by the site viewer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to "hide" detail calendar event activity from the site viewer and only
display the specifics when the viewer performs some action on the screen.
The calendar data is stored in multiple table layers across the 12 months.
Is there a way to allow the text to "drop-down" when the screen viewer clicks
on something? How?
 
Hi Cathy,

Stick this on a page and play with it
<script type="text/javascript">
function toggleIt(i){
if(!document.getElementById)return;
var d=document, a=d.getElementById(i).style.display=='none';
d.getElementById(i + 'Link').innerHTML=(a==true)?'Click to hide the text':
'Click to show the text';
d.getElementById(i).style.display=(!a)?'none': 'block';}
</script>
<a id="showHideLink" href="javascript:;" onclick="toggleIt('showHide');
return false;">Click to show text</a>
<div id="showHide" style="display:none">
this is the text to show or hide .....
</div>
<hr>
<a id="showHide1Link" href="javascript:;" onclick="toggleIt('showHide1');
return false;">Click to show text</a>
<div id="showHide1" style="display:none">
this is more text to show or hide .....
</div>
 
I've played with it and this appears to be what I need. Here is the site
link, if you have the time to view it:
http://pvspython.home.comcast.net/2005_calendar.htm. Do you think I will be
able to "hide" the parts of the table that describe the activity for the
given date? I would want to just show all 12 months of the calendar, but be
able to "click", as you described, on the calendar that I wanted to see the
detail activity. Thanks so much for your suggestion.
 
Back
Top