aboutsummaryrefslogtreecommitdiff
path: root/dst/js
diff options
context:
space:
mode:
Diffstat (limited to 'dst/js')
-rw-r--r--dst/js/showhide.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/dst/js/showhide.js b/dst/js/showhide.js
new file mode 100644
index 0000000..afc9c06
--- /dev/null
+++ b/dst/js/showhide.js
@@ -0,0 +1,27 @@
+/*
+http://www.tutorialhelpdesk.com/tutorials/web-development/javascript/how-to-show-hide-a-dhtml-div-using-onclick()-event.html
+*/
+
+function ShowHide(elementId)
+{
+ var element = document.getElementById(elementId);
+ if(element.style.display != "block")
+ {
+ element.style.display = "block";
+ }
+ else
+ {
+ element.style.display = "none";
+ }
+}
+function UpdateText(element)
+{
+ if(element.innerHTML.indexOf("Hide") == -1)
+ {
+ element.innerHTML = "Hide Abstract";
+ }
+ else
+ {
+ element.innerHTML = "Abstract";
+ }
+}