Saturday, 15 January 2011

javascript - image will be clicked automatically one time -



javascript - image will be clicked automatically one time -

i have image in site:

<img src = "bird.jpg" class="main_mark">

i want while user enters site, image clicked 1 time automatically.

how can that? maybe should define in javascript code?

you should able trigger popup 1 click using:

$(document).ready(function(){ $('.main_mark').click(function(){ youtubepopup({ idattribute: 'id', 'modal': true }); }); });

javascript

No comments:

Post a Comment