Tuesday, 15 April 2014

javascript - how to play only one popup onclick link on jsp page -



javascript - how to play only one popup onclick link on jsp page -

javascript file

<script type="text/javascript"> function voddisplay(a,b) { `document.getelementbyid(b).innerhtml="<embed type='application/x`-`shockwave-flash' src='flash/player.swf' width='500' height='400' allowscriptaccess='always'` allowfullscreen='true' `flashvars='file="+a+"&image=preview.jpg&autostart=true'/>";` } </script>

my jsp page

<% arr_pubitr = arr_public.iterator(); int myvaluep=0; while(arr_pubitr.hasnext()){ pb = arr_pubitr.next(); string url = "http://ar.fun2shoot.com/"+pb.getcontent_id()+".flv"; myvaluep++; %> <div class="rightdata"> <a href="javascript:void(0);" style="text-decoration: none;" `onclick="return hs.htmlexpand(this , { width: 510, objectwidth: 510, objectheight:` `465,height: 465}),voddisplay('<%=url%>', 'abc<%=myvaluep%>')" class="playbtn">preview </a>` <div class="highslide-maincontent"> <div id="abc<%=myvaluep%>" class="buyme"></div>loading please... wait</div> <div> <img src="<%=pb.getpreview() %>" title ="<%=pb.gettitle() %>"/>`enter code here` <input style="margin-top: 5px;" type="checkbox" name="video_cont" value="<%=pb.getcontent_id() %>"/> <%=pb.getview_count() %> views </div> </div>

need 1 popup different different link play

javascript jsp

No comments:

Post a Comment