Jump to content

eswoboda

Members
  • Posts

    1
  • Joined

  • Last visited

eswoboda's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. On my website I have some hide/show java script (below). It is used commonly in FAQs where you see a list of questions and when rolling over the question it changes color and clicking on it opens text. I would like the cursor to change to a "finger pointer" ( the usual shape of when something is linked) when rolling over the text. Does anyone know how to do that? What should be added to the coding below? The words MY TEXT represent the various text I put in specific to my site. Thank you! (I'm extremely new to all of this ) <a onclick="javascript:ShowHide('item')"> MY TEXT </a> <div class="mid" id="item" style="display: none;"><p> MY TEXT </p></div> <br> <script type="text/javascript">// <![CDATA[ function ShowHide(divId) { if(document.getElementById(divId).style.display == 'none') { document.getElementById(divId).style.display='block'; } else { document.getElementById(divId).style.display = 'none'; } } // ]]></script>
×
×
  • Create New...