💬Show Hide Javascript (I Didn’t come up with this JavaScript)

Last updated on November 23rd, 2015 at 12:01 am

<!– add #.css and +.css –>
<
link rel=”stylesheet” type=”text/css” expr:href=”#” href=”kylecblanchard.net/wordpress/#.css” />

 

<h3/> The blogspoy blog toggle expand/collapse javascript onclick snippet decoded</h3>

javascript elements

  • html elementsHere shows language snippet by annie.

    task also involved html href=”javascript:onClick action

    ***
    <script type=’text/Javascript’>

    function togglecomments (postid) {

    var whichpost = document.getElementById(postid);

    if (whichpost.className==&quot;commentshown&quot;) { whichpost.className=&quot;commenthidden&quot;; } else { whichpost.className=&quot;commentshown&quot;; }

    } </script>

  • Credit bloggeruniversity.blogspot.com as of 01 . 15 . 2015

 

//Post Permalink Shortcode Uri
//
//
//<< Previous post] \
//
//\
//\ Network
//\
//\
\
\

//\span
> < a href=”#”>[Next post]

Earlier Show and hide javascript

💬Show \ Hide Javascript (No credit for creation)

Last updated on November 23rd, 2015 at 12:01 am

 

<!– add #.css and +.css –>
<
link rel=”stylesheet” type=”text/css” expr:href=”#” href=”kylecblanchard.net/wordpress/#.css” />

 

 

 

 

<script type=’text/Javascript’>

function togglecomments (postid) {

var whichpost = document.getElementById(postid);

if (whichpost.className==&quot;commentshown&quot;) { whichpost.className=&quot;commenthidden&quot;; } else { whichpost.className=&quot;commentshown&quot;; }

} </script>

Credit bloggeruniversity.blogspot.com as of 01 . 15 . 2015