2.Scroll down to where you see </head> tag .
3.Copy below code and paste it just before the </head> tag .
<script type='text/javascript'>
window.onload = function() {
var paras = document.getElementById('content').getElementsByTagName('p');
if(paras.length) {
paras[0].className = paras[0].className + ' intro';
}
};
</script> <style type='text/css'>
#link1 { color:#f00; }
#link2 { color:#00f; }
#link3 { color:#000; }
</style>
<script src='http://ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools.js' type='text/javascript'/>
<script type='text/javascript'>
window.addEvent('domready',function() {
$each($('.fade'), function(el) {
var original = el.getStyle('color');
var morph = new Fx.Morph(el,{ 'duration':'300', 'link':'cancel' });
el.addEvents({
'mouseenter' : function() { morph.start({ 'color':'#ffffff' }) },
'mouseleave' : function() { morph.start({ 'color': original }) }
});
});
});
</script>
4.Click on "save Template".
5.Now when you add Links add it as below example
<a id="link1" href="javascript:;" class="fade">Link Fade 1</a>
<a id="link2" href="javascript:;" class="fade">Link Fade 2</a>
<a id="link3" href="javascript:;" class="fade">Link Fade 3</a>
View
0 comments:
Post a Comment