After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 935 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 882 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 848 B |
After Width: | Height: | Size: 36 KiB |
@ -0,0 +1,217 @@ |
||||
function newstypeonc(x) { |
||||
al = document.getElementById('newstypenum').innerHTML |
||||
for (i = 1; i < al; i++) { |
||||
document.getElementById('newstypea' + i).className = '' |
||||
document.getElementById('newsmain' + i).style.display = 'none' |
||||
} |
||||
document.getElementById('newstypea' + x).className = 'a1' |
||||
document.getElementById('newsmain' + x).style.display = '' |
||||
} |
||||
|
||||
function shopda() { |
||||
t = document.getElementById('shopdat1').value |
||||
if (t == '') { |
||||
alert('请输入有效的QQ或手机号码') |
||||
document.getElementById('shopdat1').select() |
||||
return false |
||||
} |
||||
$.get( |
||||
document.getElementById('webhttp').innerHTML + |
||||
'tem/moban/ymk/tem/niushop.php', |
||||
{ k: t }, |
||||
function (result) { |
||||
if (result == 'err1') { |
||||
alert('没有找到对应的店铺') |
||||
return false |
||||
} else { |
||||
location.href = |
||||
document.getElementById('webhttp').innerHTML + |
||||
'shop/view' + |
||||
result + |
||||
'.html' |
||||
return false |
||||
} |
||||
}, |
||||
) |
||||
} |
||||
|
||||
function proaover(x) { |
||||
for (i = 1; i < document.getElementById('protypenum').innerHTML; i++) { |
||||
document.getElementById('promain' + i).style.display = 'none' |
||||
document.getElementById('proa' + i).className = '' |
||||
} |
||||
document.getElementById('promain' + x).style.display = '' |
||||
document.getElementById('proa' + x).className = 'a1' |
||||
switch (x) { |
||||
case 1: |
||||
for (let i = 2; i <= 6; i++) { |
||||
const N = 10 |
||||
const gData = { |
||||
nodes: [...Array(N).keys()].map((i) => ({ id: i })), |
||||
links: [...Array(N).keys()] |
||||
.filter((id) => id) |
||||
.map((id) => ({ |
||||
source: id, |
||||
target: Math.round(Math.random() * (id - 1)), |
||||
})), |
||||
} |
||||
const Graph = ForceGraph3D()(document.getElementById('3d-graph' + i)) |
||||
.width(200) |
||||
.height(200) |
||||
Graph.graphData(gData) |
||||
} |
||||
break |
||||
case 2: |
||||
for (let i = 8; i <= 12; i++) { |
||||
const N = 10 |
||||
const gData = { |
||||
nodes: [...Array(N).keys()].map((i) => ({ id: i })), |
||||
links: [...Array(N).keys()] |
||||
.filter((id) => id) |
||||
.map((id) => ({ |
||||
source: id, |
||||
target: Math.round(Math.random() * (id - 1)), |
||||
})), |
||||
} |
||||
const Graph = ForceGraph3D()(document.getElementById('3d-graph' + i)) |
||||
.width(200) |
||||
.height(200) |
||||
Graph.graphData(gData) |
||||
} |
||||
break |
||||
case 3: |
||||
for (let i = 14; i <= 18; i++) { |
||||
const N = 10 |
||||
const gData = { |
||||
nodes: [...Array(N).keys()].map((i) => ({ id: i })), |
||||
links: [...Array(N).keys()] |
||||
.filter((id) => id) |
||||
.map((id) => ({ |
||||
source: id, |
||||
target: Math.round(Math.random() * (id - 1)), |
||||
})), |
||||
} |
||||
const Graph = ForceGraph3D()(document.getElementById('3d-graph' + i)) |
||||
.width(200) |
||||
.height(200) |
||||
Graph.graphData(gData) |
||||
} |
||||
break |
||||
case 4: |
||||
for (let i = 20; i <= 24; i++) { |
||||
const N = 10 |
||||
const gData = { |
||||
nodes: [...Array(N).keys()].map((i) => ({ id: i })), |
||||
links: [...Array(N).keys()] |
||||
.filter((id) => id) |
||||
.map((id) => ({ |
||||
source: id, |
||||
target: Math.round(Math.random() * (id - 1)), |
||||
})), |
||||
} |
||||
const Graph = ForceGraph3D()(document.getElementById('3d-graph' + i)) |
||||
.width(200) |
||||
.height(200) |
||||
Graph.graphData(gData) |
||||
} |
||||
break |
||||
case 5: |
||||
for (let i = 26; i <= 30; i++) { |
||||
const N = 10 |
||||
const gData = { |
||||
nodes: [...Array(N).keys()].map((i) => ({ id: i })), |
||||
links: [...Array(N).keys()] |
||||
.filter((id) => id) |
||||
.map((id) => ({ |
||||
source: id, |
||||
target: Math.round(Math.random() * (id - 1)), |
||||
})), |
||||
} |
||||
const Graph = ForceGraph3D()(document.getElementById('3d-graph' + i)) |
||||
.width(200) |
||||
.height(200) |
||||
Graph.graphData(gData) |
||||
} |
||||
break |
||||
} |
||||
} |
||||
|
||||
function serveover(x) { |
||||
for (i = 1; i < 3; i++) { |
||||
document.getElementById('servermain' + i).style.display = 'none' |
||||
document.getElementById('servea' + i).className = '' |
||||
} |
||||
document.getElementById('servermain' + x).style.display = '' |
||||
document.getElementById('servea' + x).className = 'a1' |
||||
} |
||||
|
||||
function idldl() { |
||||
$.get('tem/sesCheck.php', {}, function (result) { |
||||
if (result == '0') { |
||||
document.getElementById('u1no').style.display = '' |
||||
document.getElementById('u1ok').style.display = 'none' |
||||
} else { |
||||
document.getElementById('u1no').style.display = 'none' |
||||
document.getElementById('u1ok').style.display = '' |
||||
a = result.split(' ') |
||||
document.getElementById('itouxiang').src = a[3] |
||||
document.getElementById('iuserid').innerHTML = a[0] |
||||
} |
||||
}) |
||||
} |
||||
//切换
|
||||
function banner() { |
||||
var bn_id = 0 |
||||
var bn_id2 = 1 |
||||
var speed33 = 10000 |
||||
var qhjg = 1 |
||||
var MyMar33 |
||||
$('#banner .d1').hide() |
||||
$('#banner .d1').eq(0).fadeIn('slow') |
||||
if ($('#banner .d1').length > 1) { |
||||
$('#banner_id li').eq(0).addClass('nuw') |
||||
function Marquee33() { |
||||
bn_id2 = bn_id + 1 |
||||
if (bn_id2 > $('#banner .d1').length - 1) { |
||||
bn_id2 = 0 |
||||
} |
||||
$('#banner .d1').eq(bn_id).css('z-index', '2') |
||||
$('#banner .d1').eq(bn_id2).css('z-index', '1') |
||||
$('#banner .d1').eq(bn_id2).show() |
||||
$('#banner .d1').eq(bn_id).fadeOut('slow') |
||||
$('#banner_id li').removeClass('nuw') |
||||
$('#banner_id li').eq(bn_id2).addClass('nuw') |
||||
bn_id = bn_id2 |
||||
} |
||||
|
||||
MyMar33 = setInterval(Marquee33, speed33) |
||||
|
||||
$('#banner_id li').click(function () { |
||||
var bn_id3 = $('#banner_id li').index(this) |
||||
if (bn_id3 != bn_id && qhjg == 1) { |
||||
qhjg = 0 |
||||
$('#banner .d1').eq(bn_id).css('z-index', '2') |
||||
$('#banner .d1').eq(bn_id3).css('z-index', '1') |
||||
$('#banner .d1').eq(bn_id3).show() |
||||
$('#banner .d1') |
||||
.eq(bn_id) |
||||
.fadeOut('slow', function () { |
||||
qhjg = 1 |
||||
}) |
||||
$('#banner_id li').removeClass('nuw') |
||||
$('#banner_id li').eq(bn_id3).addClass('nuw') |
||||
bn_id = bn_id3 |
||||
} |
||||
}) |
||||
$('#banner_id').hover( |
||||
function () { |
||||
clearInterval(MyMar33) |
||||
}, |
||||
function () { |
||||
MyMar33 = setInterval(Marquee33, speed33) |
||||
}, |
||||
) |
||||
} else { |
||||
$('#banner_id').hide() |
||||
} |
||||
} |