Русский
<!--把下列代码放到body区域内--> <script Language=javascript> leftformat=""; правыйформат=""; liumeitiformat="слева"; liumeiti="/images/banner1.swf";//flash文件路径 liumeititime="5000"; </script> <SCRIPT Language=javascript> //больше JavaScript с http://www.downcodes.com document.write('<SCRIPT LANGUAGE=VBScript> n'); document.write('при ошибке продолжить работу дальше n'); document.write('Sub liumeiti_FSCommand(команда ByVal, аргументы ByVal)n'); document.write(' call liumeiti_DoFSCommand(command, args)n'); document.write('конец субn'); document.write('</SCRIPT> n'); window.screen.width>800?leftsuspentl=30:leftsuspentl=145; window.screen.width>800?rightsuspentl=900:rightsuspentl=570; function liumeiticode(liumeitiurl,liumeitiformat){ suspendcode="<div id=liumeitidiv style='ПОЛОЖЕНИЕ: абсолютное; СЛЕВА: 300 пикселей; ВЕРХУ: 200 пикселей; ВИДИМОСТЬ: видимый;'>"; suspendcode=suspendcode + "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5 ,0,0,0' width='208' height='250'>"; suspendcode=suspendcode + "<имя параметра=значение фильма='" + liumeitiurl + "'>"; suspendcode=suspendcode + "<имя параметра=значение качества=высокое>"; suspendcode=suspendcode + "<embed src='" + liumeitiurl + "' id=liumeitiquality=highpluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type=' application/x-shockwave-flash' width='208' height='227'>"; suspendcode=suspendcode + "</embed></object></div>"; nsuspentcode="<layer id=liumeitidiv left=300 top=200>"; nsuspentcode=nsuspentcode + "<EMBED src='" + liumeitiurl + "' id=liumeitiquality=high TYPE='application/x-shockwave-flash' wmode='transparent' width='208' height='227'>< /EMBED></layer>"; если (document.all) { document.write (suspendcode); } if(document.layers) { document.write(nsuspentcode); } if(liumeitiformat=="right" && rightformat !="" ){ if(document.all){ rightsuspent.style.visibility="hidden"; } else{ document.rightsuspent.visibility="hide"; } } else if(liumeitiformat=="left" && leftformat !=""){ if(document.all){ leftsuspent.style.visibility="hidden"; } Еще { document.leftsuspent.visibility = "hide"; } } else{} } if(liumeitiformat =="left" || liumeitiformat =="right"){ liumeiticode(liumeiti,liumeitiformat) } function liumeiti_DoFSCommand() { if(document.all){ liumeitidiv.style.visibility=" скрытый";} else{ document.liumeitidiv.visibility="hide"; } if(liumeitiformat=="right" && rightformat !=""){ if(document.all){ rightsuspent.style.visibility="visible"; } Еще { document.rightsuspent.visibility = "показать"; } } else if(liumeitiformat=="left" && leftformat !=""){ if(document.all){ leftsuspent.style.visibility="visible"; } Еще { document.leftsuspent.visibility = "показать"; } } else{ } } if(liumeititime==""){liumeititime=10000;} if(liumeitiformat =="left" || liumeitiformat =="right"){ setTimeout("liumeiti_DoFSCommand()",liumeititime); } LastScrollX = 0; последнийScrollY = 0; функция heartBeat() { if(document.all) { diffY = document.body.scrollTop+150; diffYr = document.body.scrollTop+170; diffX = document.body.scrollLeft; } if(document.layers) { diffY = self.pageYOffset+170; diffX = self.pageXOffset; } if(diffY !=lastScrollY) { if(document.all){ if(leftformat !=""){ document.all.leftsuspent.style.pixelTop = diffY; } if(rightformat !=""){ document.all.rightsuspent.style.pixelTop = diffYr; } } if(document.layers){ if(leftformat !=""){ document.leftsuspent.top = diffY; } if(rightformat !=""){ document.rightsuspent.top = diffY; } } } if(diffX !=lastScrollX) { if(document.all){ if(leftformat !=""){ document.all.leftsuspent.style.pixelLeft = diffX; } if(rightformat !=""){ document.all.rightsuspent.style.pixelLeft = diffX; } } if(document.layers){ if(leftformat !=""){ document.leftsuspent.left = diffX; } if(rightformat !=""){ document.rightsuspent.left = diffX; } } } } action = window.setInterval("heartBeat()",1); </СКРИПТ>