At the end of the script:
Code:
if (window.addEventListener){
window.addEventListener('load', init, false);
document.addEventListener('mouseover', mouse, false);
document.addEventListener('mousemove', mouse, false);
if (/Apple/.test(navigator.vendor))
window.addEventListener('scroll', ascroll, false);
}
else if (window.attachEvent){
window.attachEvent('onload', init);
document.attachEvent('onmousemove', mouse);
};
})();
Make it like so:
Code:
if (window.addEventListener){
//window.addEventListener('load', init, false);
document.addEventListener('mouseover', mouse, false);
document.addEventListener('mousemove', mouse, false);
if (/Apple/.test(navigator.vendor)) // Safari only
window.addEventListener('scroll', ascroll, false);
}
else if (window.attachEvent){
//window.attachEvent('onload', init);
document.attachEvent('onmousemove', mouse);
};
window.initcircletext = init;
})();
Now it won't start onload and you may have a link to click to start the effect like so:
HTML Code:
<a href="#" onclick="initcircletext(); initcircletext = function(){}; return false;">Start It</a>
In fact, you can have as many of these as you like. However, only the first one clicked will do anything.
The text:
in the above may be replaced with any text of your choosing. You could even substitute an img tag there.
Bookmarks