zjParty.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title></title>
  7. <link href="../../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  8. <link href="../../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  9. <script>document.write("<link rel='stylesheet' href='../../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "'>");</script>
  10. </head>
  11. <body>
  12. <div class="sp-page sp-bg-white sp-text-center">
  13. <img src="zjParty.png" width="1366" height="300" usemap="#test" id="bd">
  14. <map name="test">
  15. <area shape="rect" alt="" href="#" onclick="javascript: window.top.sp.addTabNav('fwjyhx', '房屋交易','tpl/zmzj/fwjy/page.html')">
  16. </map>
  17. <div id="border" style="display:none; position:absolute;border:2px solid #FF0000; "></div>
  18. </div>
  19. </body>
  20. </html>
  21. <script src="../../../AFrontEnd/js/jquery/jquery-1.8.3.min.js"></script>
  22. <script>document.write('<scri' + 'pt src="../../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  23. <script>
  24. function getOffset(obj) {
  25. var x = obj.offsetLeft, y = obj.offsetTop;
  26. while (obj.offsetParent) {
  27. obj = obj.offsetParent;
  28. x += obj.offsetLeft;
  29. y += obj.offsetTop;
  30. }
  31. return { x: x, y: y };
  32. };
  33. $(function () {
  34. //原尺寸
  35. //var naturalWidth = document.getElementById("bd").naturalWidth;
  36. //var naturalHeight = document.getElementById("bd").naturalHeight;
  37. var img = document.getElementById("bd");
  38. var div = document.getElementById("border");
  39. $("area").attr("coords", document.getElementById("bd").width * 0.955 + ",15," + document.getElementById("bd").width * 0.99 + ",37");
  40. })
  41. </script>