引用 | 編輯
op888qo
2012-07-31 14:36 |
樓主
|
||
x0
想要問一下喔,要怎麼去撰寫程式可以把上面圖片選擇完畢後,可以送出運算出是幾A幾B呢??? 目前只想到怎麼把下方選擇圖片換上去而已 ... 有沒有高手可以幫幫忙的 !!!! 非常感恩 ~ <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>益起瘋狂 - 瘋狂數字1A2B</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> <style> .ui-content{ background: transparent; } .ui-btn-inner { padding-right: 1px; padding-left: 1px; padding-top: 1px; padding-bottom: 1px; } ul { -webkit-padding-start: 0px; } .style1 { font-size: 24px; font-weight: bold; } .ui-page#page4 { background: transparent url("image/background/3.png") no-repeat; } </style> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> <script src="js/1a2b.js"></script> <script type="text/javascript"> var secret; var cnt = 0; $(document).ready(function() { secret = createNumbers(8); }); function clickIcon(dd) { if (cnt > 3) return; $("#_a" + cnt).attr("src","image/Child64/" + dd + ".png"); cnt ++; } function clearInput() { $("#_a0").attr("src","image/blank.png"); $("#_a1").attr("src","image/blank.png"); $("#_a2").attr("src","image/blank.png"); $("#_a3").attr("src","image/blank.png"); cnt = 0; } </script> </head> <body> <div data-role="page" id="page4"> <div data-role="header" data-theme="a" data-position="fixed"> <a href="index.html" data-theme="c" data-icon="home" data-iconpos="notext" class="ui-btn-right">主畫面</a> <h1>簡易模式</h1> <a href="page1.html" data-theme="c" data-icon="back" data-iconpos="notext" class="ui-btn-left">單人模式</a> </div> <div data-role="content"> <div style="width:300px;height:100px;"> <tabl .. 訪客只能看到部份內容,免費 加入會員 x0
|