Posted By

qoli on 10/16/11


Tagged


Versions (?)

凡客图片 的 javascript 代碼


 / Published in: JavaScript
 

URL: http://star.vancl.com/

  1. $(function() {
  2. $('div[dtype="suit18"]').mouseover(
  3. function() {
  4. $(this).toggleClass("show_on");
  5. var piaofuContainer = $(this).find(".show_piaofu");
  6. $(piaofuContainer).width($(this).width());
  7. $(piaofuContainer).height($(this).height());
  8. $(piaofuContainer).show();
  9. });
  10. $('div[dtype="suit18"]').mouseout(
  11. function() {
  12. $(this).toggleClass("show_on");
  13. $(this).find(".show_piaofu").hide();
  14. });
  15. $('div[dtype="suit18"]').click(
  16. function() {
  17. var url = $(this).find("a[atype='imglink']").attr("href");
  18. window.open(url);
  19. // var form = $("<form action=\"" + url + "\" method=\"post\" target=\"_blank\"></form>");
  20. // $("body").append(form);
  21. // form.submit();
  22. // form.remove();
  23. });
  24. })

Report this snippet  

You need to login to post a comment.