javascript - adding clickable image links to jquery code -


i show images simple script shown below. how can make images clickable?

thank you!

$(function() {     $('.fadein img:gt(0)').hide();          setinterval(function() {         $('.fadein :first-child').fadeout().next('img').fadein().end().appendto('.fadein');     }, 4000); }); 

$(function() {     $('.fadein img:gt(0)').hide();     $('.fadein img:gt(0)').click(function() {       window.location.href = 'http://www.google.com';     });     setinterval(function() {         $('.fadein :first-child').fadeout().next('img').fadein().end().appendto('.fadein');     }, 4000); }); 

Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -