凡客图片 的 javascript 代碼


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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. })

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.