1
Web Oriented Coding / Jquery litle help
« on: September 18, 2014, 01:12:00 pm »
How i can add automatic array element after click function is end.
So after this click function image slide from left and then gone to right side. How to add new picture after click function is over (write a code for example) and sorry for my english :/
Code: [Select]
$(document).ready(function(){
$('.img').click(function(){
$('.img').hide();
var link = "img/" + myFunc(); //function get 1 random element from image name array
$(this).show("slide", { direction: "right" }, 300).attr("src","/slider/" + link);
});
So after this click function image slide from left and then gone to right side. How to add new picture after click function is over (write a code for example) and sorry for my english :/