Author Topic: Jquery litle help  (Read 438 times)

0 Members and 1 Guest are viewing this topic.

Offline Ethereal

  • Serf
  • *
  • Posts: 32
  • Cookies: 3
    • View Profile
Jquery litle help
« on: September 18, 2014, 01:12:00 pm »
How i can add automatic array element after click function is end.

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 :/
« Last Edit: September 18, 2014, 01:12:27 pm by Ethereal »
I am programmer and you are my source code