elleryq
9/18/2017 - 1:21 PM

jQuery 1.3 click and show hint

jQuery 1.3 click and show hint

<html>
<head>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
	// Load jQuery
	google.load("jquery", "1.3");
</script>
<script type="text/javascript">
	function doHide() {
		//$("#hint").hide();
		$("#hint").fadeOut("slow");
	}
	google.setOnLoadCallback(function() {
		$(".hide").hide();
		$(".reddot").click( function() {
			//$("#hint").show();
			$("#hint").fadeIn( "slow" );
			setTimeout( "doHide();", 5000);
		} );
	} );
</script>
</style>
</head>
<body>
	<p><span class="reddot">*</span><span class="reddot">姓名</span><input type="text" name="txt" value="1"/><span id="hint" class="hide">Help me!!</span></p>
</body>
</html>