Hello There, Guest! RegisterLogin with Facebook
Login with Facebook

New Anna University Nov / Dec 2016 Examination Important Questions
New Anna University (UG / PG) Nov/Dec 2016 and Jan 2017 Theory , Practical Exam Timetable
>>> Anna University Sixth Semester Question Bank Collection (R2013) ECE,MECH,CSE,IT,EEE,CIVIL,EIE
>>> Anna University November/December 2015 Examination Question Papers
>>> Anna University Study Materials for all Departments
>>> Anna University Question Papers : April May June 2015 Question Papers | Nov Dec 2014 and Jan 2015 Question Papers

Register or Login to Submit Study Materials , Shoutbox and also to access Many Features !!

Vidyarthiplus Shop :: Handwritten Premium Lecture Notes
Share your Study Materials with us
Share your Study Materials with us : Click Here

Java: Click to show Text !!
#1


This is a simple Java Script, tat Displays the Text on click on the Link, can be used along with Html, n php, etc...

Here is the Java code :

Code:
<script type="text/javascript">
function Menu()
{
var div = document.getElementById('Result');
div.style.display = (div.style.display == 'none') ? '' : 'none';
div.innerHTML = 'The text you want to insert';
}
</script>


<a onclick="Menu(); return false;">Click</a>

<div id="Result" style="display:none"></div>


Note :
Edit 'The text you want to insert' with the text you u want to display on click on the link.

New Share your Study Materials with us : Click Here


Reply
#2

is it on click img trick

[Image: An9XX.gif]


Reply
#3


Nope.. It will show Text, on clicking...

New Share your Study Materials with us : Click Here


Reply

Subscribe


Recommend on Google