如何做网页中两边插入的flash格式的图片啊?
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:4;
}
-->
</style>
<div id='divMenu' style='position: absolute;visibility:visible;top:300px; z-index:3;'>
</div>
<script language="javascript">
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
function getSty(id) {
x = getRef(id);
return (isNS4 ? getRef(id) : getRef(id).style);
}
var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;
function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
if (isNS4) {
yMenuFrom = divMenuTop.top;
yMenuTo = windows.pageYOffset + 211;
} else if (isDOM) {
yMenuFrom = parseInt (divMenuTop.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) + 211;
}
timeoutNextCheck = 40;
divMenu.style.top="124px";
if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
if (yMenuTo < yMenuFrom)
yOffset = -yOffset;
if (isNS4)
divMenuTop.top += yOffset;
else if (isDOM)
divMenuTop.style.top = parseInt (divMenuTop.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
if(document.body.clientWidth <= 700){
divMenu.style.left = "700px";
divMenuTop.style.left = "700px";
} else {
divMenu.style.left = 700+((document.body.clientWidth - 700)/2) + "px";
divMenuTop.style.left = 700+((document.body.clientWidth - 700)/2) + "px";
}
//alert("test : " + document.body.clientWidth);
setTimeout ("moveRightEdge()", timeoutNextCheck);
}
var m_img_url = m_img_url = "jsimg/3yuan.gif";
site_posi="<div id='divMenuTop' style='position: absolute;visibility:visible;top:350px; z-index:1;'>这里有个FLASH <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='142' height='135'><param name='movie' value='../other/MyFlash/dongyan.swf' /><param name='quality' value='high' /><embed src='../other/MyFlash/dongyan.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='142' height='135'></embed></object></div>";
document.write(site_posi);
if (isNS4) {
var divMenu = document["divMenu"];
var divMenuTop = document["divMenuTop"];
divMenu.top = top.pageYOffset;
divMenuTop.top = top.pageYOffset;
moveRightEdge();
} else if (isDOM) {
var divMenu = getRef('divMenu');
var divMenuTop = getRef('divMenuTop');
divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 150;
divMenuTop.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 150;
moveRightEdge();
}
//}
</script>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
[此贴子已经被作者于2006-1-20 11:17:09编辑过]