找回密码
 FreeOZ用户注册
查看: 1322|回复: 1
打印 上一主题 下一主题

[网络技术] 谁能帮我看看这个网页特效代码怎么不好用?

[复制链接]
跳转到指定楼层
1#
发表于 19-9-2009 09:42:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册

x
此网页你可以运行,但特效框出现,里面没有字。程序中已经提醒了特效代码开始,是我插的地方不对,还是需要修改代码?这个特效代码我是从网上下载的。

特效代码前我已用中文提醒。
<!-- Created by FreeSiteDesigner.com -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> www.kingstonmassage.com.au - Home </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" type="text/css" href="pb/index.css?3350" />
<meta name="GENERATOR" content="FreeSiteDesigner Website Creator">
</head>

<body class="page" marginwidth="0" marginheight="0">
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="800">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
    <td class="header"><table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td><img src="pb/images/gtext149624ab2290656962.jpg" width="299" height="35" /></td><td><img src="pb/images/top_bar.gif" width="501" height="35" alt=""></td></tr>
<tr><td colspan="2"><img src="pb/images/img39794ab2285fec17d.jpg" width="800" height="114" /></td></tr></table>

</td>
</tr>
</table>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" bgcolor="#dcdcdc" height="100%"><script type="text/javascript">
<!--

function LoadImage(img, windowWidth, windowHeight)
{        
        var ScrnSize = "UnCommon";
        var screenHeight = 0;
        var screenWidth = 0;
        
        if(navigator.appVersion.indexOf("4.") != -1 && navigator.appName.indexOf("Explorer") != -1)
        {        
                ScrnSize = screen.width + "x" + screen.height;
                screenWidth = screen.width;
                screenHeight = screen.height;
        }
        else
        {        
                ScrnSize = screen.width + "x" + (screen.height + 19);
                screenWidth = screen.width;
                screenHeight = (screen.height+19);
        }
        
    theImage = new Image();
    theImage.src = img;

        if ((screenWidth > windowWidth) && (screenHeight > windowHeight))
        {        windowSize = ",width="+windowWidth+",height="+windowHeight;
                zoomWin = window.open(img, "Zoom", "toolbar=no,status=no,resizable=yes"+windowSize);
        }
        else
        {        
                if (screenWidth < windowWidth)
                {        
                        windowWidth = screenWidth;                        
                }
                if (screenHeight < windowHeight)
                {        
                        windowHeight = (screenHeight-70);
                }
               
                        windowSize = ",width="+windowWidth+",height="+windowHeight;
                        zoomWin = window.open(img, "Zoom", "toolbar=no,status=no,resizable=yes,scrollbars=yes"+windowSize);
        }

    zoomWin.focus();
}


var activeBtnID = "";

function pb_menuBtnOver(btnID, btnLID, btnRID)
{
    btnObj  = document.getElementById(btnID);
    btnLObj = document.getElementById(btnLID);
    btnRObj = document.getElementById(btnRID);

    btnObj.className  = "menuButton_on";
    btnLObj.className = "menuleft_on";
    btnRObj.className = "menuright_on";
}

function pb_menuBtnOut(btnID, btnLID, btnRID)
{
    btnObj  = document.getElementById(btnID);
    btnLObj = document.getElementById(btnLID);
    btnRObj = document.getElementById(btnRID);

    if (btnID != activeBtnID)
    {
        btnObj.className  = "menuButton";
        btnLObj.className = "menuleft";
        btnRObj.className = "menuright";
    }
}

function pb_setActiveMenuBtn()
{
    fileRegExpr = /\/(\w+)\.html/;
    arrResult = fileRegExpr.exec(location.pathname);

    if ( arrResult == null || arrResult[1] == "index" )
    {
        activeBtnID = "btn_index";
    }
    else
    {
        activeBtnID = "btn_" + arrResult[1];
    }

    pb_menuBtnOver(activeBtnID, activeBtnID+"_L", activeBtnID+"_R");
}

window.onload = pb_setActiveMenuBtn;

//-->
</script>
<table border="0" cellpadding="0" cellspacing="0" width="245" height="100%">
<tr><td class="menu_h_space"></td></tr>
<tr><td class="menu" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td id="btn_index_L" class="menuleft" onMouseOver="pb_menuBtnOver('btn_index', 'btn_index_L', 'btn_index_R')" onMouseOut="pb_menuBtnOut('btn_index', 'btn_index_L', 'btn_index_R')" onClick="window.location='index.html?'+Math.random()"></td>
<td id="btn_index" class="menuButton" onMouseOver="pb_menuBtnOver('btn_index', 'btn_index_L', 'btn_index_R')" onMouseOut="pb_menuBtnOut('btn_index', 'btn_index_L', 'btn_index_R')" onClick="window.location='index.html?'+Math.random()"><a href="index.html" onClick="window.location='index.html?'+Math.random(); return false">Home</a></td>
<td id="btn_index_R" class="menuright" onMouseOver="pb_menuBtnOver('btn_index', 'btn_index_L', 'btn_index_R')" onMouseOut="pb_menuBtnOut('btn_index', 'btn_index_L', 'btn_index_R')" onClick="window.location='index.html?'+Math.random()"></td>
</tr>
<tr><td colspan="3" class="menu_h_space"></td></tr>
<tr>
<td id="btn_wp_a0489b0c_L" class="menuleft" onMouseOver="pb_menuBtnOver('btn_wp_a0489b0c', 'btn_wp_a0489b0c_L', 'btn_wp_a0489b0c_R')" onMouseOut="pb_menuBtnOut('btn_wp_a0489b0c', 'btn_wp_a0489b0c_L', 'btn_wp_a0489b0c_R')" onClick="window.location='pb/wp_a0489b0c.html?'+Math.random()"></td>
<td id="btn_wp_a0489b0c" class="menuButton" onMouseOver="pb_menuBtnOver('btn_wp_a0489b0c', 'btn_wp_a0489b0c_L', 'btn_wp_a0489b0c_R')" onMouseOut="pb_menuBtnOut('btn_wp_a0489b0c', 'btn_wp_a0489b0c_L', 'btn_wp_a0489b0c_R')" onClick="window.location='pb/wp_a0489b0c.html?'+Math.random()"><a href="pb/wp_a0489b0c.html" onClick="window.location='pb/wp_a0489b0c.html?'+Math.random(); return false">Services</a></td>
<td id="btn_wp_a0489b0c_R" class="menuright" onMouseOver="pb_menuBtnOver('btn_wp_a0489b0c', 'btn_wp_a0489b0c_L', 'btn_wp_a0489b0c_R')" onMouseOut="pb_menuBtnOut('btn_wp_a0489b0c', 'btn_wp_a0489b0c_L', 'btn_wp_a0489b0c_R')" onClick="window.location='pb/wp_a0489b0c.html?'+Math.random()"></td>
</tr>
<tr><td colspan="3" class="menu_h_space"></td></tr>
<tr>
<td id="btn_wp_e7a9da98_L" class="menuleft" onMouseOver="pb_menuBtnOver('btn_wp_e7a9da98', 'btn_wp_e7a9da98_L', 'btn_wp_e7a9da98_R')" onMouseOut="pb_menuBtnOut('btn_wp_e7a9da98', 'btn_wp_e7a9da98_L', 'btn_wp_e7a9da98_R')" onClick="window.location='pb/wp_e7a9da98.html?'+Math.random()"></td>
<td id="btn_wp_e7a9da98" class="menuButton" onMouseOver="pb_menuBtnOver('btn_wp_e7a9da98', 'btn_wp_e7a9da98_L', 'btn_wp_e7a9da98_R')" onMouseOut="pb_menuBtnOut('btn_wp_e7a9da98', 'btn_wp_e7a9da98_L', 'btn_wp_e7a9da98_R')" onClick="window.location='pb/wp_e7a9da98.html?'+Math.random()"><a href="pb/wp_e7a9da98.html" onClick="window.location='pb/wp_e7a9da98.html?'+Math.random(); return false">About Us</a></td>
<td id="btn_wp_e7a9da98_R" class="menuright" onMouseOver="pb_menuBtnOver('btn_wp_e7a9da98', 'btn_wp_e7a9da98_L', 'btn_wp_e7a9da98_R')" onMouseOut="pb_menuBtnOut('btn_wp_e7a9da98', 'btn_wp_e7a9da98_L', 'btn_wp_e7a9da98_R')" onClick="window.location='pb/wp_e7a9da98.html?'+Math.random()"></td>
</tr>
<tr><td colspan="3" class="menu_h_space"></td></tr>
<tr>
<td id="btn_wp_406fec5a_L" class="menuleft" onMouseOver="pb_menuBtnOver('btn_wp_406fec5a', 'btn_wp_406fec5a_L', 'btn_wp_406fec5a_R')" onMouseOut="pb_menuBtnOut('btn_wp_406fec5a', 'btn_wp_406fec5a_L', 'btn_wp_406fec5a_R')" onClick="window.location='pb/wp_406fec5a.html?'+Math.random()"></td>
<td id="btn_wp_406fec5a" class="menuButton" onMouseOver="pb_menuBtnOver('btn_wp_406fec5a', 'btn_wp_406fec5a_L', 'btn_wp_406fec5a_R')" onMouseOut="pb_menuBtnOut('btn_wp_406fec5a', 'btn_wp_406fec5a_L', 'btn_wp_406fec5a_R')" onClick="window.location='pb/wp_406fec5a.html?'+Math.random()"><a href="pb/wp_406fec5a.html" onClick="window.location='pb/wp_406fec5a.html?'+Math.random(); return false">Contact Us</a></td>
<td id="btn_wp_406fec5a_R" class="menuright" onMouseOver="pb_menuBtnOver('btn_wp_406fec5a', 'btn_wp_406fec5a_L', 'btn_wp_406fec5a_R')" onMouseOut="pb_menuBtnOut('btn_wp_406fec5a', 'btn_wp_406fec5a_L', 'btn_wp_406fec5a_R')" onClick="window.location='pb/wp_406fec5a.html?'+Math.random()"></td>
</tr>
<tr><td colspan="3" class="menu_h_space"></td></tr>
<tr>
<td id="btn_wp_7b7dbe58_L" class="menuleft" onMouseOver="pb_menuBtnOver('btn_wp_7b7dbe58', 'btn_wp_7b7dbe58_L', 'btn_wp_7b7dbe58_R')" onMouseOut="pb_menuBtnOut('btn_wp_7b7dbe58', 'btn_wp_7b7dbe58_L', 'btn_wp_7b7dbe58_R')" onClick="window.location='pb/wp_7b7dbe58.html?'+Math.random()"></td>
<td id="btn_wp_7b7dbe58" class="menuButton" onMouseOver="pb_menuBtnOver('btn_wp_7b7dbe58', 'btn_wp_7b7dbe58_L', 'btn_wp_7b7dbe58_R')" onMouseOut="pb_menuBtnOut('btn_wp_7b7dbe58', 'btn_wp_7b7dbe58_L', 'btn_wp_7b7dbe58_R')" onClick="window.location='pb/wp_7b7dbe58.html?'+Math.random()"><a href="pb/wp_7b7dbe58.html" onClick="window.location='pb/wp_7b7dbe58.html?'+Math.random(); return false">Products</a></td>
<td id="btn_wp_7b7dbe58_R" class="menuright" onMouseOver="pb_menuBtnOver('btn_wp_7b7dbe58', 'btn_wp_7b7dbe58_L', 'btn_wp_7b7dbe58_R')" onMouseOut="pb_menuBtnOut('btn_wp_7b7dbe58', 'btn_wp_7b7dbe58_L', 'btn_wp_7b7dbe58_R')" onClick="window.location='pb/wp_7b7dbe58.html?'+Math.random()"></td>
</tr>
<tr><td colspan="3" class="menu_h_space"></td></tr>
<tr>
<td id="btn_wp_21487637_L" class="menuleft" onMouseOver="pb_menuBtnOver('btn_wp_21487637', 'btn_wp_21487637_L', 'btn_wp_21487637_R')" onMouseOut="pb_menuBtnOut('btn_wp_21487637', 'btn_wp_21487637_L', 'btn_wp_21487637_R')" onClick="window.location='pb/wp_21487637.html?'+Math.random()"></td>
<td id="btn_wp_21487637" class="menuButton" onMouseOver="pb_menuBtnOver('btn_wp_21487637', 'btn_wp_21487637_L', 'btn_wp_21487637_R')" onMouseOut="pb_menuBtnOut('btn_wp_21487637', 'btn_wp_21487637_L', 'btn_wp_21487637_R')" onClick="window.location='pb/wp_21487637.html?'+Math.random()"><a href="pb/wp_21487637.html" onClick="window.location='pb/wp_21487637.html?'+Math.random(); return false">FAQ</a></td>
<td id="btn_wp_21487637_R" class="menuright" onMouseOver="pb_menuBtnOver('btn_wp_21487637', 'btn_wp_21487637_L', 'btn_wp_21487637_R')" onMouseOut="pb_menuBtnOut('btn_wp_21487637', 'btn_wp_21487637_L', 'btn_wp_21487637_R')" onClick="window.location='pb/wp_21487637.html?'+Math.random()"></td>
</tr>
<tr><td colspan="3" class="menu_h_space"></td></tr>
</table></td></tr>
</table></td>
<td valign="top" class="body" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td valign="top"><table border="0" cellspacing="10" cellpadding="0" width="100%">
<tr>
<td valign="top" width="100%" class="body_text"><b><font size="4">Home</font></b>
<p> </p>
<p>Welcome to Kingston Therapeutic Massage – Indulge Yourself</p>
<p> </p>
<p>Kingston Therapeutic Massage  is your first choice for all of your remedial and relaxation needs.  We offer a full range of muscular treatments and services for the hard working people. </p>
<p>Our staff are licensed professionals committed to providing you with the most pleasant and relaxing experience, effective treatment at Kingston Therapeutic Massage .</p>
<p> </p>
<p>We make professional quality products to kill the muscle pain instantly as the best home-made massage oil.</p></td>
<td valign="top"><img src="pb/images/Spa_11.jpg" width="120" height="120" /></td>
<tr><td colspan="2" align="center"></td></tr>
</tr>
</table></td></tr></table></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td bgcolor="#ffffff"><img src="pb/images/blank.gif" width="1" height="1" alt=""></td></tr>
</table>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td align="right" class="footer"><table border="0" cellspacing="0" cellpadding="0" width="">
<tr><td>&copy;2009 Kingstonmassage.com.au</td></tr>
</table></td>
</tr>
</table><div align="right" style="font-family: arial; font-size: 7pt;"><br /><br ><a href="http://www.FreeSiteDesigner.com/" title="FreeSiteDesigner.com" target="_blank"><img border="0" src="http://www.freesitedesigner.com/banner.gif" alt="FreeSiteDesigner.com" /></a></div>
</td>
</tr>
</table>
</body>

下面开始是特效代码<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body onload=startmot()>

<STYLE>
.let {
        COLOR: white; FILTER: Shadow (Color="#ff0000", Direction="135")wave(Add="0", Phase="4", Freq="9", LightStrength="20", Strength="1"); FONT-FAMILY: Verdana; FONT-WEIGHT: bold; WIDTH: 500px
}
</STYLE>
<SCRIPT language=JavaScript>
var regel = 20;                        //row to start with
var size = 20;                        //size of font
var delay = 1200;                 //Delay between messages in msecs
var speed = 20;                        //Hmmmmmm
var step = 10;                        //Size of each step


var sent = new Array()
{
sent[0] = "sfnvr ";
sent[1] = "jfkkfkf  flfl ";
sent[2] = "jdkl dldl dldl ";
sent[3] = "jkjdldl o d dldl ";
sent[4] = "kdkdkkdkddk";
sent[5] = "hjedkdk dkdkk d dkdakks!!!";
}

sent[sent.length] = sent[0];var veran = 0;var num = 0;var x = 0;//Don't change
function moto(){output = "";for(letter = 0;letter<sent[regel+1].length;letter++){
if(veran == letter){if(x==0){num=num+step;}else{num=num-step;}gr = size-num;
if(gr < 1){x=1;gr=1;}if(gr>size)gr=size;
output += "<font style='font-size:"+gr +"pt'>"+sent[regel+x].substring(letter, letter+1)+"</font>";
if(num < 0 && x==1){veran++;x=0;}}else{if(veran > letter){
output += "<font style='font-size:"+size +"pt'>"+sent[regel+1].substring(letter, letter+1)+"</font>";
}else{output += "<font style='font-size:"+size +"pt'>"+sent[regel].substring(letter, letter+1)+"</font>";}}}
return output;}function startmot(){if(regel==sent.length-1)regel=0;balk.innerHTML = moto();
if(veran==sent[regel+1].length){regel++;veran = 0;setTimeout("startmot()", delay);}else{
setTimeout("startmot()", speed);}}

</SCRIPT>

<TABLE align=center bgColor=#008000 height=60 id=tafel
onclick='location="http://linkweb.cn/js"' style="CURSOR: hand"
  width=500><TBODY>
  <TR>
    <TD bgColor=#ff6666>
      <DIV align=center class=let id=balk></DIV></TD></TR></TBODY></TABLE>

</body>
</html>
回复  

使用道具 举报

2#
发表于 19-9-2009 21:25:47 | 只看该作者
你的特效代码开始的地方是在</body>下面,也就是<body>结束之后,结果你又开始有<head></head><body></body>,显然是有问题的吧。
回复  

使用道具 举报

您需要登录后才可以回帖 登录 | FreeOZ用户注册

本版积分规则

小黑屋|手机版|Archiver|FreeOZ论坛

GMT+11, 2-11-2024 02:31 , Processed in 0.030304 second(s), 18 queries , Gzip On, Redis On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表