3333

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dn_puzzle.aspx.cs" Inherits="design_dn_puzzle" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Design Text</title>
    <link href="../css/headerfooter.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/dn_tracker.css" rel="stylesheet" type="text/css" />
    <link href="../css/dn_puzzle.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="../flash/swfpuzzle.js"></script>
    <script type="text/javascript" language="javascript" >
   
 window.onload = function () {
     var o = eval(document.getElementById("hidd_pixel_info").value);
     if (o != null && o.length > 0) {
         var w = o[0].MinWidthPixel.replace(/[^\d]/, "");
         var h = o[0].MinHeightPixel.replace(/[^\d]/, "");
         if (w != "" && h != "") {
          new SWFPuzzle({
              FlashUrl: "../flash/swfpuzzle.swf",
              ImageUrl: "../AttachFiles/UserPhoto/temp/thumb/" + document.getElementById("hidd_image_info").value + "_2.jpg",  //"../AttachFiles/SampleImages/puzzle.jpg",
              PlaceHolderID: "divFlash",
              SceneWidth: parseInt(w),
              SceneHeight: parseInt(h),
              PuzzleRows: 15,
              PuzzleCols: 20
          });
      }
  }
 }
 
 function addToCart()
 {
        document.getElementById('btn_next_step').onclick();
 }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input id="hidd_pixel_info" type="hidden" runat="server"/>
    <input id="hidd_image_info" type="hidden" runat="server"/>
    <input id="btn_next_step" type="button" runat="server" style="position: absolute; left: -300px; top: -300px; width: 0px; height: 0px;" onserverclick="btn_next_step_ServerClick" />
    <div id="divPage" runat="server">
        <div id="div_header" runat="server"></div>
        <div id="div_content" runat="server">
            <div id="divContent">
                <div id="divStepBox" runat="server"></div>
                <div class="cframe">
                    <div id="divFlashBox">
                        <div id="divFlash"></div>
                    </div>
                    <div id="divNextStep">
                        <div class="btnBox">
                            <a class="linkbutton" href="javascript:addToCart();">
                                <span class="left"></span>
                                <span class="center">&nbsp;Add To Cart >&nbsp;</span>
                                <span class="right"></span>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="div_footer" runat="server"></div>
    </div>
    </form>
</body>
</html>

你可能感兴趣的:(JavaScript,html,css,XHTML,Flash)