弹出代码
<a href="#" target="_self" onClick="MM_openBrWindow
('windows01.htm','','width=550,height=380')" width="550" height="380" border="0">图片或文字
onkeypress="window.event.returnValue=false"onkeydown="window.event.returnValue=false"
onkeyup="window.event.returnValue=false"
ondragstart="window.event.returnValue=false"
onselectstart="event.returnValue=false">
<Script Language="JavaScript">image = new Array(4); //定义image为图片数量的数组
image [0] = 'tu0.gif' //背景图象的路径
image [1] = 'tu1.gif'
image [2] = 'tu2.gif'
image [3] = 'tu3.gif'
image [4] = 'tu4.gif'
number = Math.floor(Math.random() * image.length);
document.write("");
</Script> 趣源社区 趣源社区 趣源社区