Commit 38e8525c by hank

nav toggle

parent 2cd6de55
......@@ -266,6 +266,13 @@
</body>
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
var mySwiper = new Swiper('.swiper-container', {
direction: 'horizontal' // 垂直切换选项
// loop: true, // 循环模式选项
......
......@@ -205,6 +205,13 @@
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
var input = $(".search input");
var button = $(".search .button");
var searchValue = ""
......
......@@ -223,6 +223,13 @@
</body>
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
ideal.getDetail().done(function (res) {
console.log(JSON.parse(res))
var result = JSON.parse(res).data
......
......@@ -398,6 +398,15 @@
</body>
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
// $('#nav-products .dropdown-menu').slideDown().show();
})
var sliceNum = 6; // 展示数量
var sliceNum2 = 4; // 展示数量
var active2 = $('.views-content .one');
......
......@@ -194,6 +194,13 @@
</body>
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
ideal.getDetail().done(function(res){
console.log(JSON.parse(res))
var result = JSON.parse(res).data
......
......@@ -426,7 +426,13 @@
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
$('.earth .left-btn').mouseenter(function () {
$('.earth .earth-bg').attr('src', '../img/earth1.png');
......
......@@ -263,6 +263,13 @@
</body>
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
$('.earth .left-btn').mouseenter(function () {
$('.earth .earth-bg').attr('src', '../img/earth5.png');
......
......@@ -348,7 +348,13 @@
</body>
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
var $container = $('#masonry');
// $container.masonry({
// itemSelector: '.detail',
......
......@@ -199,6 +199,13 @@
</body>
<script>
$(document).ready(function () {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0") {
function createSlider(swiper, data) {
......
......@@ -25,7 +25,15 @@ Date.prototype.Format = function(fmt) {
this.ideal = this.ideal || {};
(function(window) {
window.onload = function (param) {
$('#nav-products>a').click(function (e) {
e.preventDefault();
$('#nav-products .dropdown-menu').toggle(function() {
},
function() {
})
})
}
function GetRequest(key) {
var url = location.search; //获取url中"?"符后的字串
var theRequest = new Object();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment