erezes Posted April 23, 2013 Share Posted April 23, 2013 $("figure").html('<img src="'+trg.src+'"'+jg_gallery_init("#gallery")+' />'); function jg_gallery_init (jg_s){ //creating structure$(jg_s).html('<div class="jg_controls"><div class="jg_c_stop"></div><div class="jg_c_play"></div><div class="jg_c_prev"></div><div class="jg_c_next"></div></div><div class="jg_image"></div><div class="jg_text"></div></div></div>');//showing text info $(jg_s).css("margin-left","auto"); $(jg_s).css("margin-right","auto"); getwdth = confDoc.getElementsByTagName("maxBannerWidth")[0].childNodes[0].nodeValue;getheight = confDoc.getElementsByTagName("maxBannerHeight")[0].childNodes[0].nodeValue$(jg_s+" .jg_image").width(getwdth);$(jg_s+" .jg_image" ).height(getheight); tgetwdth = confDoc.getElementsByTagName("thumbsScrollViewAreaWidth")[0].childNodes[0].nodeValue;tgetheight = confDoc.getElementsByTagName("thumbsScrollViewAreaHeight")[0].childNodes[0].nodeValue;$(jg_s).width(tgetwdth);$(jg_s).height(tgetheight); $("figure").mouseover(function(){ $(jg_s+" div.txt"+window[jg_s+ "_current_slide"]).fadeIn("slow")}); I tried many ways to combine the "figure" and jg_s like $("figure"+jg_s).mouseover(function(){So that will both together .mouseover , it does not go together :-( idea. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 23, 2013 Share Posted April 23, 2013 I'm not sure what jg_s contains, but you may need to specify the event handler twice. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now