Нужен скрипт

Статус
В этой теме нельзя размещать новые ответы.
А если:
Код:
<MARQUEE id=marquee1 onmouseover=marquee1.stop(); style="HEIGHT: 150px" 
onmouseout=marquee1.start() scrollAmount=1 direction=up bgColor=#ffffff> ..........</MARQUEE>
Что-то вроде.
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Крутится-вертится коллаж на первой странице</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY bottomMargin=0 leftMargin=0 topMargin=0
onload="loadVisibleDiv(); startScroll();" rightMargin=0 marginwidth="0"
marginheight="0">
<DIV id=divSC0
style="background-position: 9999.gif) 50%; Z-INDEX: 20; LEFT: 0px; VISIBILITY: visible; WIDTH: 800px; POSITION: absolute; TOP: 0px; HEIGHT: 134px; moz-background-clip: initial; moz-background-origin: initial; moz-background-inline-policy: initial; background-color:image(image; background-repeat:repeat; background-attachment:scroll">
<IMG
onmouseover=stopScroll(); onmouseout=startScroll(); height=95
src="image/9999.gif" width=979 border=0></DIV>
<DIV id=divSC1
style="background-position: 0% 50%; Z-INDEX: 21; LEFT: 979px; VISIBILITY: visible; WIDTH: 800px; POSITION: absolute; TOP: 0px; HEIGHT: 134px; moz-background-clip: initial; moz-background-origin: initial; moz-background-inline-policy: initial; background-color:rgb(255,255,255); background-repeat:repeat; background-attachment:scroll">
<IMG
onmouseover=stopScroll(); onmouseout=startScroll(); height=95
src="image/9999.gif" width=979 border=0></DIV>
<SCRIPT language=JavaScript>
var iLeft = 0;
var iLeader = 0;
var oVisDiv0;
var oVisDiv1;
var oVisDiv2;
var oVisDiv3;
var oVisDiv4;
var oVisDiv5;
var TimeOutID
var m_ImageWidth = 1;
var m_iSeq = m_ImageWidth;
var iNumberOfImages = 2;

function startScroll() {
var agent = navigator.userAgent.toLowerCase();
var isMac = (agent.indexOf("mac")!=-1);
var isBadIE = (agent.indexOf("5.10")!=-1) ||
(agent.indexOf("5.11")!=-1) ||
(agent.indexOf("5.12")!=-1) ||
(agent.indexOf("5.13")!=-1) ||
(agent.indexOf("5.14")!=-1) ||
(agent.indexOf("5.15")!=-1)

if (!(isMac && isBadIE))
TimeOutID = window.setInterval('doIt();',20);
}
function stopScroll() {
clearInterval(TimeOutID);
}
function loadVisibleDiv() {
if (document.layers) {
for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
eval("oVisDiv" + iCnt + " = document.layers['divSC" + iCnt + "']")
}
}
else if (document.all) {
for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
eval("oVisDiv" + iCnt + " = document.all['divSC" + iCnt + "'].style")
}
}
else if (document.getElementById) {
for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
eval("oVisDiv" + iCnt + " = document.getElementById('divSC" + iCnt + "').style")
}
}
}
function doIt() {
var iLa;
var iLb;
var iLc;
var iLd;
var iAddIncr
var iLocal
var i
iLocal=iLeader
iAddIncr=0;

for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
eval("oVisDiv" + iLocal + ".left=" + (iLeft + iAddIncr));
iAddIncr += MediaData[iLocal].Width // + 1 is the spacer
iLocal+=1
if (iLocal>m_ImageWidth) {
iLocal=0
}
}

if (iLeft<=-(MediaData[iLeader].Width+1)) {
iLeft=0;
m_iSeq+=1;
if (m_iSeq > iNumberOfImages-1) {
m_iSeq=0;
}
iLeader+=1;
if (iLeader > m_ImageWidth) {
iLeader=0;
}
}
iLeft-=1
}
var MediaData = new Array();
function makeData(CorbisID, Width, Height) {
this.CorbisID = CorbisID;
this.Width = Width;
this.Height = Height;
return true;
}
MediaData[0] = new makeData('OUT957972',979,0)
MediaData[1] = new makeData('OUT961857',979,0)
MediaData[2] = new makeData('OUT926724',979,0)
MediaData[3] = new makeData('OUT945905',979,0)
MediaData[4] = new makeData('OUT947079',979,0)
MediaData[5] = new makeData('OUT955102',979,0)
var ns4 = (document.layers)? true:false ;
var ie4 = (document.all)? true:false ;
var numImages = iNumberOfImages;

function MoveScrollerDown()
{
if (ns4)
{
for (var count = 0;count < numImages; count++)
{
eval("document.layers['divSC" + count + "'].top = 400");
}
document.mainBody.top = 725;
}
else
if (ie4)
{
for (var count = 0;count < numImages; count++)
{
eval("document.all['divSC" + count + "'].style.top = 400");
}
document.all.mainBody.style.top = 675;
}
}
function MoveScrollerUp()
{
if (ns4)
{
for (var count = 0;count < numImages; count++)
{
eval("document.layers['divSC" + count + "'].top = 200");
}
document.mainBody.top = 725;
}
else
if (ie4)
{
for (var count = 0;count < numImages; count++)
{
eval("document.all['divSC" + count + "'].style.top = 200");
}
document.all.mainBody.style.top = 475;
}
}
</SCRIPT>
</BODY></HTML>
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху