No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

operation.js 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. // JavaScript Document
  2. // クッキー保存 setCookie(クッキー名, クッキーの値, クッキーの有効日数); //
  3. function setCookie(c_name, value, expiredays) {
  4. // pathの指定
  5. var cnt = 0;
  6. /*var path = location.pathname;
  7. // pathをフォルダ毎に指定する場合のIE対策
  8. var paths = new Array();
  9. paths = path.split("/");
  10. if(paths[paths.length-1] != ""){
  11. paths[paths.length-1] = "";
  12. path = paths.join("/");
  13. }*/
  14. // 有効期限の日付
  15. var extime = new Date().getTime();
  16. var cltime = new Date(extime + (60 * 60 * 24 * 1000 * expiredays));
  17. var exdate = cltime.toUTCString();
  18. // クッキーに保存する文字列を生成
  19. var s = "";
  20. s += c_name + "=" + escape(value);// 値はエンコードしておく
  21. s += "; path=/"/*+ path*/;
  22. if (expiredays) {
  23. s += "; expires=" + exdate + "; ";
  24. } else {
  25. s += "; ";
  26. }
  27. // クッキーに保存
  28. document.cookie = s;
  29. }
  30. // クッキーの値を取得 getCookie(クッキー名); //
  31. function getCookie(c_name) {
  32. var st = "";
  33. var ed = "";
  34. if (document.cookie.length > 0) {
  35. // クッキーの値を取り出す
  36. st = document.cookie.indexOf(c_name + "=");
  37. if (st != -1) {
  38. st = st + c_name.length + 1;
  39. ed = document.cookie.indexOf(";", st);
  40. if (ed == -1) ed = document.cookie.length;
  41. // 値をデコードして返す
  42. return unescape(document.cookie.substring(st, ed));
  43. }
  44. }
  45. return "";
  46. }
  47. // クッキーの値をアラートで表示
  48. function checkCookie() {
  49. if (getCookie('backnumber')) {
  50. var setName = getCookie('backnumber');
  51. alert(setName);
  52. }
  53. if (getCookie('mobile_backnumber')) {
  54. var setName = getCookie('mobile_backnumber');
  55. alert(setName);
  56. }
  57. }
  58. /*function GetCookie( name )
  59. {
  60. var result = null;
  61. var cookieName = name + '=';
  62. var allcookies = document.cookie;
  63. var position = allcookies.indexOf( cookieName );
  64. if( position != -1 )
  65. {
  66. var startIndex = position + cookieName.length;
  67. var endIndex = allcookies.indexOf( ';', startIndex );
  68. if( endIndex == -1 )
  69. {
  70. endIndex = allcookies.length;
  71. }
  72. result = decodeURIComponent(
  73. allcookies.substring( startIndex, endIndex ) );
  74. }
  75. return result;
  76. }
  77. */
  78. //直下
  79. function getBackgNumber() {
  80. if (screen.width < 769) {
  81. // checkCookie();
  82. var num = getCookie("mobile_backnumber");
  83. if (num == "") {
  84. num = 2;
  85. }
  86. setBackground(num);
  87. } else {
  88. var num = getCookie("backnumber");
  89. setBackground(num);
  90. }
  91. }
  92. //second
  93. function getBackgNumber2() {
  94. if (screen.width < 769) {
  95. // checkCookie();
  96. var num = getCookie("mobile_backnumber");
  97. if (num == "") {
  98. num = 2;
  99. }
  100. setBackground2(num);
  101. } else {
  102. var num = getCookie("backnumber");
  103. setBackground2(num);
  104. }
  105. }
  106. //third/folder
  107. function getBackgNumber3() {
  108. if (screen.width < 769) {
  109. // checkCookie();
  110. var num = getCookie("mobile_backnumber");
  111. if (num == "") {
  112. num = 2;
  113. }
  114. setBackground3(num);
  115. } else {
  116. var num = getCookie("backnumber");
  117. setBackground3(num);
  118. }
  119. }
  120. //third/folder/folder
  121. function getBackgNumber3_2() {
  122. if (screen.width < 769) {
  123. // checkCookie();
  124. var num = getCookie("mobile_backnumber");
  125. if (num == "") {
  126. num = 2;
  127. }
  128. setBackground3_2(num);
  129. } else {
  130. var num = getCookie("backnumber");
  131. setBackground3_2(num);
  132. }
  133. }
  134. //直下
  135. function setBackground(num) {
  136. if (screen.width < 768) {
  137. if (num < 2) {
  138. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  139. body.style.backgroundImage = "../css/img/background1.png";*/
  140. document.getElementById("html-back").style.backgroundImage = "url(css/img/backgroundm1.png)";
  141. document.getElementById("back").style.backgroundImage = "url(css/img/backgroundm1.png)";
  142. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  143. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  144. setCookie('mobile_backnumber', 1, 7);
  145. } else if (num < 3) {
  146. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  147. body.style.backgroundImage = "../css/img/background2.png";*/
  148. document.getElementById("html-back").style.backgroundImage = "url(css/img/backgroundm2.png)";
  149. document.getElementById("back").style.backgroundImage = "url(css/img/backgroundm2.png)";
  150. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  151. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  152. setCookie('mobile_backnumber', 2, 7);
  153. } else {
  154. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  155. body.style.backgroundImage = "../css/img/background3.png";*/
  156. document.getElementById("html-back").style.backgroundImage = "url(css/img/backgroundm3.png)";
  157. document.getElementById("back").style.backgroundImage = "url(css/img/backgroundm3.png)";
  158. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  159. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  160. setCookie('mobile_backnumber', 3, 7);
  161. }
  162. return;
  163. }
  164. if (num < 2) {
  165. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  166. body.style.backgroundImage = "../css/img/background1.png";*/
  167. document.getElementById("html-back").style.backgroundImage = "url(css/img/background1.png)";
  168. document.getElementById("back").style.backgroundImage = "url(css/img/background1.png)";
  169. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  170. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  171. document.getElementById("button1").style.backgroundImage = "url(css/img/1_backcircle_red.png)";
  172. document.getElementById("button2").style.backgroundImage = "url(css/img/2_backcircle_gray.png)";
  173. document.getElementById("button3").style.backgroundImage = "url(css/img/3_backcircle_gray.png)";
  174. document.getElementById("button1").src = "css/img/1_backcircle_red.png";
  175. document.getElementById("button2").src = "css/img/2_backcircle_gray.png";
  176. document.getElementById("button3").src = "css/img/3_backcircle_gray.png";
  177. setCookie('backnumber', 1, 7);
  178. } else if (num < 3) {
  179. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  180. body.style.backgroundImage = "../css/img/background2.png";*/
  181. document.getElementById("html-back").style.backgroundImage = "url(css/img/background2.png)";
  182. document.getElementById("back").style.backgroundImage = "url(css/img/background2.png)";
  183. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  184. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  185. document.getElementById("button1").style.backgroundImage = "url(css/img/1_backcircle_gray.png)";
  186. document.getElementById("button2").style.backgroundImage = "url(css/img/2_backcircle_red.png)";
  187. document.getElementById("button3").style.backgroundImage = "url(css/img/3_backcircle_gray.png)";
  188. document.getElementById("button1").src = "css/img/1_backcircle_gray.png";
  189. document.getElementById("button2").src = "css/img/2_backcircle_red.png";
  190. document.getElementById("button3").src = "css/img/3_backcircle_gray.png";
  191. setCookie('backnumber', 2, 7);
  192. } else {
  193. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  194. body.style.backgroundImage = "../css/img/background3.png";*/
  195. document.getElementById("html-back").style.backgroundImage = "url(css/img/background3.png)";
  196. document.getElementById("back").style.backgroundImage = "url(css/img/background3.png)";
  197. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  198. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  199. document.getElementById("button1").style.backgroundImage = "url(css/img/1_backcircle_gray.png)";
  200. document.getElementById("button2").style.backgroundImage = "url(css/img/2_backcircle_gray.png)";
  201. document.getElementById("button3").style.backgroundImage = "url(css/img/3_backcircle_red.png)";
  202. document.getElementById("button1").src = "css/img/1_backcircle_gray.png";
  203. document.getElementById("button2").src = "css/img/2_backcircle_gray.png";
  204. document.getElementById("button3").src = "css/img/3_backcircle_red.png";
  205. setCookie('backnumber', 3, 7);
  206. }
  207. }
  208. //third/folder/folder
  209. function setBackground3_2(num) {
  210. if (screen.width < 768) {
  211. if (num < 2) {
  212. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  213. body.style.backgroundImage = "../css/img/background1.png";*/
  214. document.getElementById("html-back").style.backgroundImage = "url(../../../css/img/backgroundm1.png)";
  215. document.getElementById("back").style.backgroundImage = "url(../../../css/img/backgroundm1.png)";
  216. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  217. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  218. setCookie('mobile_backnumber', 1, 7);
  219. } else if (num < 3) {
  220. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  221. body.style.backgroundImage = "../css/img/background2.png";*/
  222. document.getElementById("html-back").style.backgroundImage = "url(../../../css/img/backgroundm2.png)";
  223. document.getElementById("back").style.backgroundImage = "url(../../../css/img/backgroundm2.png)";
  224. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  225. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  226. setCookie('mobile_backnumber', 2, 7);
  227. } else {
  228. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  229. body.style.backgroundImage = "../css/img/background3.png";*/
  230. document.getElementById("html-back").style.backgroundImage = "url(../../../css/img/backgroundm3.png)";
  231. document.getElementById("back").style.backgroundImage = "url(../../../css/img/backgroundm3.png)";
  232. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  233. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  234. setCookie('mobile_backnumber', 3, 7);
  235. }
  236. return;
  237. }
  238. if (num < 2) {
  239. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  240. body.style.backgroundImage = "../css/img/background1.png";*/
  241. document.getElementById("html-back").style.backgroundImage = "url(../../../css/img/background1.png)";
  242. document.getElementById("back").style.backgroundImage = "url(../../../css/img/background1.png)";
  243. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  244. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  245. document.getElementById("button1").style.backgroundImage = "url(../../../css/img/1_backcircle_red.png)";
  246. document.getElementById("button2").style.backgroundImage = "url(../../../css/img/2_backcircle_gray.png)";
  247. document.getElementById("button3").style.backgroundImage = "url(../../../css/img/3_backcircle_gray.png)";
  248. document.getElementById("button1").src = "../../../css/img/1_backcircle_red.png";
  249. document.getElementById("button2").src = "../../../css/img/2_backcircle_gray.png";
  250. document.getElementById("button3").src = "../../../css/img/3_backcircle_gray.png";
  251. setCookie('backnumber', 1, 7);
  252. } else if (num < 3) {
  253. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  254. body.style.backgroundImage = "../css/img/background2.png";*/
  255. document.getElementById("html-back").style.backgroundImage = "url(../../../css/img/background2.png)";
  256. document.getElementById("back").style.backgroundImage = "url(../../../css/img/background2.png)";
  257. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  258. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  259. document.getElementById("button1").style.backgroundImage = "url(../../../css/img/1_backcircle_gray.png)";
  260. document.getElementById("button2").style.backgroundImage = "url(../../../css/img/2_backcircle_red.png)";
  261. document.getElementById("button3").style.backgroundImage = "url(../../../css/img/3_backcircle_gray.png)";
  262. document.getElementById("button1").src = "../../../css/img/1_backcircle_gray.png";
  263. document.getElementById("button2").src = "../../../css/img/2_backcircle_red.png";
  264. document.getElementById("button3").src = "../../../css/img/3_backcircle_gray.png";
  265. setCookie('backnumber', 2, 7);
  266. } else {
  267. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  268. body.style.backgroundImage = "../css/img/background3.png";*/
  269. document.getElementById("html-back").style.backgroundImage = "url(../../../css/img/background3.png)";
  270. document.getElementById("back").style.backgroundImage = "url(../../../css/img/background3.png)";
  271. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  272. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  273. document.getElementById("button1").style.backgroundImage = "url(../../../css/img/1_backcircle_gray.png)";
  274. document.getElementById("button2").style.backgroundImage = "url(../../../css/img/2_backcircle_gray.png)";
  275. document.getElementById("button3").style.backgroundImage = "url(../../../css/img/3_backcircle_red.png)";
  276. document.getElementById("button1").src = "../../../css/img/1_backcircle_gray.png";
  277. document.getElementById("button2").src = "../../../css/img/2_backcircle_gray.png";
  278. document.getElementById("button3").src = "../../../css/img/3_backcircle_red.png";
  279. setCookie('backnumber', 3, 7);
  280. }
  281. }
  282. //second
  283. function setBackground2(num) {
  284. if (screen.width < 768) {
  285. if (num < 2) {
  286. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  287. body.style.backgroundImage = "../css/img/background1.png";*/
  288. document.getElementById("html-back").style.backgroundImage = "url(../css/img/backgroundm1.png)";
  289. document.getElementById("back").style.backgroundImage = "url(../css/img/backgroundm1.png)";
  290. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  291. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  292. setCookie('mobile_backnumber', 1, 7);
  293. } else if (num < 3) {
  294. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  295. body.style.backgroundImage = "../css/img/background2.png";*/
  296. document.getElementById("html-back").style.backgroundImage = "url(../css/img/backgroundm2.png)";
  297. document.getElementById("back").style.backgroundImage = "url(../css/img/backgroundm2.png)";
  298. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  299. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  300. setCookie('mobile_backnumber', 2, 7);
  301. } else {
  302. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  303. body.style.backgroundImage = "../css/img/background3.png";*/
  304. document.getElementById("html-back").style.backgroundImage = "url(../css/img/backgroundm3.png)";
  305. document.getElementById("back").style.backgroundImage = "url(../css/img/backgroundm3.png)";
  306. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  307. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  308. setCookie('mobile_backnumber', 3, 7);
  309. }
  310. return;
  311. }
  312. if (num < 2) {
  313. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  314. body.style.backgroundImage = "../css/img/background1.png";*/
  315. document.getElementById("html-back").style.backgroundImage = "url(../css/img/background1.png)";
  316. document.getElementById("back").style.backgroundImage = "url(../css/img/background1.png)";
  317. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  318. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  319. document.getElementById("button1").style.backgroundImage = "url(../css/img/1_backcircle_red.png)";
  320. document.getElementById("button2").style.backgroundImage = "url(../css/img/2_backcircle_gray.png)";
  321. document.getElementById("button3").style.backgroundImage = "url(../css/img/3_backcircle_gray.png)";
  322. document.getElementById("button1").src = "../css/img/1_backcircle_red.png";
  323. document.getElementById("button2").src = "../css/img/2_backcircle_gray.png";
  324. document.getElementById("button3").src = "../css/img/3_backcircle_gray.png";
  325. setCookie('backnumber', 1, 7);
  326. } else if (num < 3) {
  327. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  328. body.style.backgroundImage = "../css/img/background2.png";*/
  329. document.getElementById("html-back").style.backgroundImage = "url(../css/img/background2.png)";
  330. document.getElementById("back").style.backgroundImage = "url(../css/img/background2.png)";
  331. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  332. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  333. document.getElementById("button1").style.backgroundImage = "url(../css/img/1_backcircle_gray.png)";
  334. document.getElementById("button2").style.backgroundImage = "url(../css/img/2_backcircle_red.png)";
  335. document.getElementById("button3").style.backgroundImage = "url(../css/img/3_backcircle_gray.png)";
  336. document.getElementById("button1").src = "../css/img/1_backcircle_gray.png";
  337. document.getElementById("button2").src = "../css/img/2_backcircle_red.png";
  338. document.getElementById("button3").src = "../css/img/3_backcircle_gray.png";
  339. setCookie('backnumber', 2, 7);
  340. } else {
  341. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  342. body.style.backgroundImage = "../css/img/background3.png";*/
  343. document.getElementById("html-back").style.backgroundImage = "url(../css/img/background3.png)";
  344. document.getElementById("back").style.backgroundImage = "url(../css/img/background3.png)";
  345. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  346. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  347. document.getElementById("button1").style.backgroundImage = "url(../css/img/1_backcircle_gray.png)";
  348. document.getElementById("button2").style.backgroundImage = "url(../css/img/2_backcircle_gray.png)";
  349. document.getElementById("button3").style.backgroundImage = "url(../css/img/3_backcircle_red.png)";
  350. document.getElementById("button1").src = "../css/img/1_backcircle_gray.png";
  351. document.getElementById("button2").src = "../css/img/2_backcircle_gray.png";
  352. document.getElementById("button3").src = "../css/img/3_backcircle_red.png";
  353. setCookie('backnumber', 3, 7);
  354. }
  355. }
  356. //third/folder
  357. function setBackground3(num) {
  358. if (screen.width < 768) {
  359. if (num < 2) {
  360. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  361. body.style.backgroundImage = "../css/img/background1.png";*/
  362. document.getElementById("html-back").style.backgroundImage = "url(../../css/img/backgroundm1.png)";
  363. document.getElementById("back").style.backgroundImage = "url(../../css/img/backgroundm1.png)";
  364. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  365. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  366. setCookie('mobile_backnumber', 1, 7);
  367. } else if (num < 3) {
  368. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  369. body.style.backgroundImage = "../css/img/background2.png";*/
  370. document.getElementById("html-back").style.backgroundImage = "url(../../css/img/backgroundm2.png)";
  371. document.getElementById("back").style.backgroundImage = "url(../../css/img/backgroundm2.png)";
  372. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  373. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  374. setCookie('mobile_backnumber', 2, 7);
  375. } else {
  376. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  377. body.style.backgroundImage = "../css/img/background3.png";*/
  378. document.getElementById("html-back").style.backgroundImage = "url(../../css/img/backgroundm3.png)";
  379. document.getElementById("back").style.backgroundImage = "url(../../css/img/backgroundm3.png)";
  380. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  381. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  382. setCookie('mobile_backnumber', 3, 7);
  383. }
  384. return;
  385. }
  386. if (num < 2) {
  387. /*body.style.backgroundImage = "url(../css/img/background1.png)";
  388. body.style.backgroundImage = "../css/img/background1.png";*/
  389. document.getElementById("html-back").style.backgroundImage = "url(../../css/img/background1.png)";
  390. document.getElementById("back").style.backgroundImage = "url(../../css/img/background1.png)";
  391. document.getElementById("html-back").style.backgroundColor = "#D6D6D6";
  392. document.getElementById("back").style.backgroundColor = "#D6D6D6";
  393. document.getElementById("button1").style.backgroundImage = "url(../../css/img/1_backcircle_red.png)";
  394. document.getElementById("button2").style.backgroundImage = "url(../../css/img/2_backcircle_gray.png)";
  395. document.getElementById("button3").style.backgroundImage = "url(../../css/img/3_backcircle_gray.png)";
  396. document.getElementById("button1").src = "../../css/img/1_backcircle_red.png";
  397. document.getElementById("button2").src = "../../css/img/2_backcircle_gray.png";
  398. document.getElementById("button3").src = "../../css/img/3_backcircle_gray.png";
  399. setCookie('backnumber', 1, 7);
  400. } else if (num < 3) {
  401. /*body.style.backgroundImage = "url(../css/img/background2.png)";
  402. body.style.backgroundImage = "../css/img/background2.png";*/
  403. document.getElementById("html-back").style.backgroundImage = "url(../../css/img/background2.png)";
  404. document.getElementById("back").style.backgroundImage = "url(../../css/img/background2.png)";
  405. document.getElementById("html-back").style.backgroundColor = "#F7F3BC";
  406. document.getElementById("back").style.backgroundColor = "#F7F3BC";
  407. document.getElementById("button1").style.backgroundImage = "url(../../css/img/1_backcircle_gray.png)";
  408. document.getElementById("button2").style.backgroundImage = "url(../../css/img/2_backcircle_red.png)";
  409. document.getElementById("button3").style.backgroundImage = "url(../../css/img/3_backcircle_gray.png)";
  410. document.getElementById("button1").src = "../../css/img/1_backcircle_gray.png";
  411. document.getElementById("button2").src = "../../css/img/2_backcircle_red.png";
  412. document.getElementById("button3").src = "../../css/img/3_backcircle_gray.png";
  413. setCookie('backnumber', 2, 7);
  414. } else {
  415. /*body.style.backgroundImage = "url(../css/img/background3.png)";
  416. body.style.backgroundImage = "../css/img/background3.png";*/
  417. document.getElementById("html-back").style.backgroundImage = "url(../../css/img/background3.png)";
  418. document.getElementById("back").style.backgroundImage = "url(../../css/img/background3.png)";
  419. document.getElementById("html-back").style.backgroundColor = "#DAEDD0";
  420. document.getElementById("back").style.backgroundColor = "#DAEDD0";
  421. document.getElementById("button1").style.backgroundImage = "url(../../css/img/1_backcircle_gray.png)";
  422. document.getElementById("button2").style.backgroundImage = "url(../../css/img/2_backcircle_gray.png)";
  423. document.getElementById("button3").style.backgroundImage = "url(../../css/img/3_backcircle_red.png)";
  424. document.getElementById("button1").src = "../../css/img/1_backcircle_gray.png";
  425. document.getElementById("button2").src = "../../css/img/2_backcircle_gray.png";
  426. document.getElementById("button3").src = "../../css/img/3_backcircle_red.png";
  427. setCookie('backnumber', 3, 7);
  428. }
  429. }