Applying jQuery font Effect Plugin

Hello everyone,

I don’t know what I’m doing wrong to not obtain any of these 4 Font Effects I found on the web for jQuery. I followed the instructions as closely as I could from FontEffect jQuery plugin. Here is the code I put in.

The Script in the HTML:


<script href="http://code.jquery.com/jquery-1.6.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery-fonteffect-1.0.0.js"></script>
<script type="text/javascript">
$('#realmaturesingles').FontEffect({
		gradient:true,
		mirror:true,
		mirrorColor:"#298d79"
 })
</script>

I applied it to an element of HTML:


<a href="http://www.atlantareviewgroup.com/dating/realmaturesinglesreview1.php" id="realmaturesingles">Real Mature Singles</a>

Then I styled it in css:


#realmaturesingles{
	text-decoration:none;
	font-family:Impact;
	font-size:3em;
	color:#CF0;
}

I don’t seem to know what the problem is.

If your script is in the head, the body won’t exist at the time the script is run, so the effect won’t take place.

Put the script and the end of the body, just before the </body> tag. That is also one of the best-practice pieces of advice for speeding up your web site.

Great Post!