Query string error
select * from pc1 where enable = '1' order by od
Table 'blog.pc1' doesn't exist
Query string error
select * from pc2 where enable = '1' order by od
Table 'blog.pc2' doesn't exist
var isDOM = document.getElementById ? true : false
var isIE = (document.all && !isDOM) ? true : false
var isNS = document.layers ? true : false
var timer , loop;
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE) return document.all[id];
if (isNS) return document.layers[id];
}
function showMenu(tg, id){
obj = tg;
x = 0;
y = 0;
x += tg.offsetLeft + tg.offsetWidth;
y += tg.offsetTop;
obj = tg;
while(obj = obj.offsetParent)
{
x += obj.offsetLeft;
y += obj.offsetTop;
}
tgMenu = getRef(id);
var windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
//if (id == 'M1' || id =='M2'){
if (y + tgMenu.offsetHeight > windowHeight){
y = y - tgMenu.offsetHeight+100;
}
tgMenu.style.left = x + "px";
tgMenu.style.top = y + "px";
tgMenu.style.visibility = 'inherit';
}
function hideMenu(id){
obj = getRef(id);
obj.style.visibility = "hidden";
}
function item(str)
{
this.title = str.split("|")[0];
this.url = str.split("|")[1];
this.id = str.split("|")[2];
this.sub = new Array()
}
function startup(id)
{
loop = true;
divup(id);
}
function startdown(id)
{
loop = true;
divdown(id);
}
function divup(id)
{
tg = getRef(id);
var y=0;
y = tg.offsetTop;
if(y < 0)
{
if((y+1) < 0)
{
y = y+1;
}else
{
y=0;
}
tg.style.top=y+ "px";
}
if (loop) timer=setTimeout("divup('"+id+"')",10);
}
function divdown(id)
{
tg = getRef(id);
var y=0;
y = tg.offsetTop;
if(y>(240-tg.offsetHeight))
{
if((y-1)>(240-tg.offsetHeight))
{
y=y-1;
}else
{
y=240-tg.offsetHeight;
}
tg.style.top=y+ "px";
}
if (loop) timer=setTimeout("divdown('"+id+"')",10);
}
function noScroll(){
loop = false;
if (timer) clearTimeout(timer);
}
function makeMenu1()
{
var str = '';
for (var i=0; i < Menu.length; i++){
level2Id = "M" + i;
str += "
\n";
str += "\n";
if (typeof(selectedMenuId) == "number" && selectedMenuId == Menu[i].id){
str += "| \n";
}else{
str += " | \n";
}
str += "";
str += Menu[i].title;
str += "\n";
str += " | ";
str += "";
if (Menu[i].sub.length > 7)
{
str += "\n";
}else
{
str += " \n";
}
if (Menu[i].sub.length){
if (Menu[i].sub.length > 7)
{
str += " \n";
str += " \n";
str += " | \n";
str += " \n";
str += " \n";
str += " \n";
str += " \n";
}
str += " \n";
str += ""
str += "\n";
str += "\n";
str += "\n";
str += " | \n";
str += " \n";
str += " \n";
for (j=0; j | \n";
}
str += " | \n";
str += "
\n";
str += "
\n";
if (Menu[i].sub.length > 7)
{
str += "\n";
str += "\n";
str += "\n";
str += "
\n";
str += " |
\n";
str += "
\n";
str += "
\n";
}
}
str += "\n";
str += "";
str += "";
str += "";
str += " | ";
str += "
";
str += "\n";
}
document.write(str);
}
function makeMenu2()
{
var str = '';
for (var i=0; i\n";
str += "\n";
if (typeof(selectedMenuId2) == "number" && selectedMenuId2 == Menu2[i].id){
str += "| \n";
}else{
str += " | \n";
}
str += "";
str += Menu2[i].title;
str += "\n";
str += " | ";
str += "";
str += "\n";
if (Menu2[i].sub.length){
str += " \n";
str += ""
str += "\n";
str += "\n";
str += "\n";
str += " | \n";
str += " \n";
str += " \n";
for (j=0; j < Menu2[i].sub.length; j++)
{
str += "\n";
}
str += " | \n";
str += " \n";
str += " \n"
}
str += " \n"
str += " | ";
str += "
";
str += "";
str += " | ";
str += "
";
str += "\n";
}
document.write(str);
}
function makeMenu3(cateMenuId)
{
var str = '';
var selectedcateMenuId = 0;
if(cateMenuId=="vga")
{
selectedcateMenuId = 0;
}
if(cateMenuId=="mb")
{
selectedcateMenuId = 1;
}
for (var i=0; i < Menu3.length; i++){
level2Id = "M" + i;
str += "\n"
}
str += "\n"
str += "";
str += "";
str += "";
str += " | ";
str += "
";
str += "\n";
}
document.write(str);
}
//絕對路徑(記得最後+ "/");
var absoluteUrl = "";
/*
mainItem的格式:名稱|圖檔|連結
名稱-無作用,僅供確認
圖檔-位於images
連結-接在絕對路徑後的路徑
item的格式:名稱|路徑(接在絕對路徑後)
*/
var Menu = new Array();
var Menu2 = new Array();
var Menu3 = new Array();
Menu3[0] = new item("显卡|productvga.php?act=category");
//Menu3[0].sub[
Notice: Undefined variable: k in /opt/web/js/pro-menu.js.php on line 411
] = new item("
Notice: Undefined variable: v in /opt/web/js/pro-menu.js.php on line 411
|productvga.php?act=list&pc1_id=
Notice: Undefined variable: v in /opt/web/js/pro-menu.js.php on line 411
|
Notice: Undefined variable: v in /opt/web/js/pro-menu.js.php on line 411
");
function popup(id, w, h){
obj = document.getElementById(id);
width = document.body.clientWidth;
height = document.body.clientHeight;
w = (width * 0.9 >= w) ? w : parseInt(width * 0.9);
h = (height * 0.9 >= h) ? h : parseInt(height * 0.9);
left = parseInt((width - w)/2)
var top = 0;
if (document.documentElement && document.documentElement.scrollTop){
top = document.documentElement.scrollTop;
}else{
top = document.body.scrollTop;
}
obj.style.top = top + parseInt((height - h)/2) + "px";
obj.style.left = left + "px";
obj.style.display = "block";
window.onscroll = function(){
if (document.documentElement && document.documentElement.scrollTop){
top = document.documentElement.scrollTop;
}else if (document.body){
top = document.body.scrollTop;
}
document.getElementById(id).style.top = top + "px";
}
step = 1000;
currentW = 0;
currentH = 0;
layerW = w;
layerH = h;
deltaW = parseInt(w/10);
deltaH = parseInt(h/10);
doId = setInterval("doGo()", 50);
}
function jsClear(id){
document.getElementById(id).style.display = "none";
window.onscroll = null;
}
function doGo()
{
obj.style.width = currentW + "px";
obj.style.height = currentH + "px";
currentW += deltaW;
currentH += deltaH;
if (currentW > layerW)
doStop();
}
function doStop()
{
clearInterval(doId);
}
function photoEnlarge(w, h){
w += 20
h += 20
obj = document.getElementById("photoEnlarge");
width = Utils.getWindowSize().width;
height = Utils.getWindowSize().height;
w = (width * 0.9 >= w) ? w : parseInt(width * 0.9);
h = (height * 0.9 >= h) ? h : parseInt(height * 0.9);
left = parseInt((width - w)/2)
var top = 0;
if (document.documentElement && document.documentElement.scrollTop){
top = document.documentElement.scrollTop;
}else{
top = document.body.scrollTop;
}
//obj.style.top = top + parseInt((height - h)/2) + "px";
obj.style.top = (Utils.getScrollPos()).top + 100 + "px";
obj.style.left = left + "px";
obj.style.display = "block";
window.onscroll = function(){
if (document.documentElement && document.documentElement.scrollTop){
top = document.documentElement.scrollTop;
}else if (document.body){
top = document.body.scrollTop;
}
document.getElementById("photoEnlarge").style.top = top + 100 + "px";
}
step = 1000;
currentW = 0;
currentH = 0;
layerW = w;
layerH = h;
deltaW = parseInt(w/10);
deltaH = parseInt(h/10);
doId = setInterval("doGo()", 50);
}
function photoClose(){
document.getElementById("photoEnlarge").style.display = "none";
window.onscroll = null;
}
selectedMenuId = 0;
selectedMenuId2 = 0;