diff --git a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/img-show.js b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/img-show.js index 98d50603f95e256d4a8ff1a525c923630acd3a2a..2413ed0f4c9db88a3cdad246ea34b15e964edc55 100644 --- a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/img-show.js +++ b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/img-show.js @@ -68,7 +68,6 @@ $(document).ready(function(){ $('.control').hover(function(){ clearInterval(clc); $('.control').show(); -// return false;允许传播 }); //向右边前进 $('.to-right').click(function(){ @@ -113,7 +112,6 @@ $(document).ready(function(){ } }); - clc = setInterval(moveImg, setTime); }); @@ -175,7 +173,6 @@ $(document).ready(function(){ $('.control1').hover(function(){ clearInterval(clc); $('.control1').show(); -// return false;允许传播 }); //向右边前进 @@ -283,7 +280,6 @@ $(document).ready(function(){ $('.control2').hover(function(){ clearInterval(clc); $('.control2').show(); -// return false;允许传播 }); //向右边前进 $('.to-right2').click(function(){ diff --git a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/main.js b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/main.js index 43903ab79c267e92d96f118e945f5e33b0d08b52..a7993e5b33d443e222f5686e7515a3ef157b9ea6 100644 --- a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/main.js +++ b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/main.js @@ -251,12 +251,14 @@ $(document).ready(function(){ }); } }); + /*点击回到顶部*/ $('#backToTop-up').click(function(){ $('html, body').animate({ scrollTop: 0 }, 500); }); + /*点击到底部*/ $('#backToTop-down').click(function(){ $('html, body').animate({ diff --git a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/tab_qiehuc.js b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/tab_qiehuc.js index 5c36893c9978b89e811df0d467f9f253e8d9695b..ba906445fe0a548edea8b0d765b93535a4d5e8df 100644 --- a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/tab_qiehuc.js +++ b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/js/tab_qiehuc.js @@ -16,7 +16,7 @@ function setTab(m,n){ var tli=document.getElementById("menu"+m).getElementsByTagName("li"); var mli=document.getElementById("main"+m).getElementsByTagName("ul"); - for(i=0;i= 0) { city.style.display = 'inline-block'; country.style.display = 'none'; @@ -1742,7 +1742,7 @@ } else { country.style.display = 'none'; } - current_city = val; + var current_city = val; if (val != null) { country.length = 1; if (province[current_prov]["city"][val]) { @@ -1762,7 +1762,7 @@ }; function selectCountry(obj) { - current_country = obj.options[obj.selectedIndex].value; + var current_country = obj.options[obj.selectedIndex].value; showAddr() }; function showAddr() { diff --git a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/test.html b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/test.html index 6e1d37d368fdeeb43c8961005aaf07c59a5659b8..cbab4e8ff275f52acb5ab6fa2bea9eafd0d0ae6c 100644 --- a/arkui/ace_ets_webView/entry/src/main/resources/rawfile/test.html +++ b/arkui/ace_ets_webView/entry/src/main/resources/rawfile/test.html @@ -198,7 +198,7 @@ function init() { var stars = document.getElementById("stars"); - windowWidth = window.innerWidth; + var windowWidth = window.innerWidth; stars.width = windowWidth / 2; stars.height = window.innerHeight / 4; context = stars.getContext("2d");