I want to trigger mouse hover on a hyperlink once the page has been loaded completely.I don't want to use active and visited for this.(Because of some programming reasons).
I mean to say after page loading the hyperlink should be in the having on hover color.
I am trying this code but not getting any success.
<html>
<head>
<style type="text/css">
a:hover {
color: #00a000;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#myLink").trigger('mousehover');
});
</script>
</head>
<body>
<a id="myLink" href="www.google.com">google</a>
</body>
</html>