http://cl.olay.com.cn/1024/main.html

来源:百度知道 编辑:UC知道 时间:2024/06/18 08:24:52
1。他旁边的那个flash(nwe.swf),是怎样让其跟滚动条动的滚动。
知道那段js代码怎么写吗?谢谢啦

制作一个Flash文件,命名为new.swf,放在网页的目录下
然后在网页中输入如下代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</script>
<script language="JavaScript">
<!--
float_init = 1;
function DHTML_Init(Object) {
if (navigator.userAgent.match(/Mozilla\/5\../) && float_init) {
SetObjectOffsetTop(Object, undefined);
} }
function All (ID) {
if (document.all) { return document.all[ID]; }
else if (document.documentElement){
return document.getElementById (ID); }
else if (document.layers) { return document.layers[ID]; }}
function GetWindowOffsetTop() {
if (window.innerHeight) { return window.pageYOffset; }
else if (document.body) { return document.body.s