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

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -