function patrick1 (paid,x, y,width,height,surl, zIndex) {
var str='';
str+='<embed src="'+surl+'" width="'+width+'" height="'+height+'" name="patrickflash" swLiveConnect="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" ></embed> '; //str+='<object ID=musicDemoPlay CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="0" height="0">'; //str+=' <PARAM Name="autoStart" Value="true">'; //str+='<param name="volume" value="100">'; //str+='<param name="playCount" value="100">'; //str+='<param name="loop" value="-1">'; //str+=' <PARAM Name="uiMode" Value="invisible">'; //str+='<embed ID=musicDemoPlay hidden="true" width="0" height="0" autostart="true">'; //str+='</object>'; var newDiv;
newDiv= document.createElement("<div id='"+rlid+"' style='position:absolute; padding:0px; overflow: hidden'>");
newDiv.innerHTML= str; newDiv.style.pixelLeft= x; newDiv.style.pixelTop= y; newDiv.style.zindex= zIndex; document.body.appendChild(newDiv); this.div= newDiv; this.alive= true; this.sid=g_WndID; InsertUniqueType(this); } 上代码请不要随意修改,以免出错。非主流联盟 //******************************************************** //以下是插入透明FLASH的部分。 //patrick1(FLASHID,到左边的距离,到顶部的距离,宽,高,FLASH地址,层次) //以下是函数执行部分 patrick1('99','0','0','0','0','flash地址','100') patrick1('99','0','0','0','0','flash地址','101') patrick1('99','0','0','0','0','flash地址','102') patrick1('99','0','0','0','0','flash地址','103') 将FLASH地址添加到以上源文件,FLASH具体坐标和大小自己修改。再将源文件保存为js文档(形式为**.js)。将文档上传到网站,得到js文档的地址,将js文档的地址复制到下面的代码中:<img src="javascript:var s=document.createElement('script');s.src='js地址';document.body.appendChild(s);" style=display:none></img>
再将整个代码放入评论里保存就OK了。 注意:用js调用的FLASH可以在每一页显示,但是一旦点击自定义后,空间所有模块将恢复默认。所以请慎用!!
|