[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

Displaying information automatically

On this page http://www.suebeeglass.com/?gallery=handcraft there is an "I" icon that when you click it, it will display information about the particular photo. I would like it to display automatically and not need to be clicked. I tried a few options (see code below) but can't get it to work.  Any thoughts?
<script type="text/javascript">
jQuery("window").load(function(){
  jQuery(".galleria-info-link").trigger("click");
});
</script>
-----------------
<script type="text/javascript">
jQuery("window").load(function(){
  jQuery(".galleria-info-link").delay(800).trigger("click");
});
</script>

Open in new window


Sorry for the vague title.
0
catonthecouchproductions
Asked:
catonthecouchproductions
  • 3
1 Solution
 
Gurvinder Pal SinghCommented:
Does it give any error? or just that onlick event is not triggered?
1) try doing it on document ready
2) just call click method
http://api.jquery.com/click/
0
 
leakim971PluritechnicianCommented:
What about : jQuery(".galleria-info-text").delay(800).show();
0
 
catonthecouchproductionsAuthor Commented:
I tried this

<script>
$(document).ready(function() {
  $(".galleria-info-text").delay(800).show();
});</script>

on this page http://www.suebeeglass.com/?gallery=faux and it isn't working. thoughts?
0
 
leakim971PluritechnicianCommented:
Now you're using jQuery function before include jquery script

$document.ready(
///
);
< script type='text/javascript' src='http://www.suebeeglass.com/wp-includes/js/jquery/jquery.form.js?ver=2.02m' >< /script >

instead :


< script type='text/javascript' src='http://www.suebeeglass.com/wp-includes/js/jquery/jquery.form.js?ver=2.02m' >< /script >
$document.ready(
///
);
0
 
leakim971PluritechnicianCommented:
Thanks for the points!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now