Jump to content


Photo

Direção


  • Faça o login para participar
1 reply to this topic

#1 Terenight

Terenight

    Normal

  • Usuários
  • 82 posts
  • Sexo:Não informado
  • Localidade:Teresópolis
  • Interesses:PHP, ASP, MySQL, Dreamwearver MX 2004

Posted 26/05/2004, 11:27

Alguem poderia me ajudar a fazer este script em vez de rolar para cima ele rolar para esquerda ??, ou alguem teria algo já pronto ou poderia me ajudar a fazer um

__________________________________________________________________


<html>
<head>
<title>teste</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#AutoScrollContent {position:absolute; top:32; left:0; width:125; visibility:visible;}
<!-- Do NOT rename this class .style1 {color: #FF0000}-->
</style>
<script type="text/javascript" language="JavaScript">
<!--
// Global variable for Cross-browser AutoScroller
flevTimeoutID = null;

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flevDivPositionValue(sDivID, sPositionProperty) { // v1.0, Marja Ribbers-de Vroed
var sPositionValue;
// ***** W3C Compatible DOM (NN6, Mozilla 16, etc.) *****
if (document.getElementById && !document.all) { //W3C DOM compliant
var docObj = document.getElementById(sDivID);
if (document.defaultView != null) { // NS6+ alike
sPositionValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sPositionProperty);
}
else { // Opera 5 alike
if (sPositionProperty == "height") { sPositionValue = docObj.style.pixelHeight; }
else if (sPositionProperty == "width") { sPositionValue = docObj.style.pixelWidth; }
else { sPositionValue = eval("docObj.style." + sPositionProperty); }
}
sPositionValue = (sPositionValue == "") ? "0" : sPositionValue;
}
// ***** Netscape Navigator 4+ DOM *****
else if (document.layers) { //NS4+ DOM compliant
var docObj = eval("MM_findObj('" + sDivID + "')");
if ((sPositionProperty == "width") || (sPositionProperty == "height")) { sPositionValue = eval("docObj.clip." + sPositionProperty); }
else { sPositionValue = eval("docObj." + sPositionProperty); }
sPositionValue = (sPositionValue == "") ? "0" : sPositionValue;
}
// ***** Internet Explorer 4+ DOM *****
else if (document.all) { //IE4+ DOM compliant
if (sPositionProperty == "width") { sPositionValue = eval(sDivID + ".offsetWidth"); }
else if (sPositionProperty == "height") { sPositionValue = eval(sDivID + ".offsetHeight"); }
else if (sPositionProperty == "top") { sPositionValue = eval(sDivID + ".offsetTop"); }
else if (sPositionProperty == "left") { sPositionValue = eval(sDivID + ".offsetLeft"); }
sPositionValue = (sPositionValue == "") ? "0" : sPositionValue;
}
if (isNaN(sPositionValue)) { if (sPositionValue.indexOf('px') > 0) { sPositionValue = sPositionValue.substring(0,sPositionValue.indexOf('px')); } }
return parseInt(sPositionValue);
}

function flevMoveDiv(sDivID, sLeft, sTop){ // v1.0, Marja Ribbers-de Vroed
var docObj = eval("MM_findObj('" + sDivID + "')");
if (document.layers) { // NS4.x
eval("docObj.top = '" + sTop + "'");
eval("docObj.left = '" + sLeft + "'");
}
else { // all others
eval("docObj.style.top = '" + sTop + "'");
eval("docObj.style.left = '" + sLeft + "'");
}
}

function flevAutoScrollDivs() { // v1.0, Marja Ribbers-de Vroed
var iArgs = flevAutoScrollDivs.arguments.length;
var sContainerDivID = 'AutoScrollContainer';
var sContentDivID = 'AutoScrollContent';
var iStartScrolling = (iArgs > 0) ? parseInt(flevAutoScrollDivs.arguments[0]) : 1;
var iPixels = (iArgs > 1) ? parseInt(flevAutoScrollDivs.arguments[1]) : 1;
var iDelay = (iArgs > 2) ? parseInt(flevAutoScrollDivs.arguments[2]) : 900;
var iCurrentTop = flevDivPositionValue(sContentDivID, 'top');
var iScrollTop = (-1 * flevDivPositionValue(sContentDivID, 'height'));
var iScrollBottom = flevDivPositionValue(sContainerDivID, 'height');
var iCurrentLeft = flevDivPositionValue(sContentDivID, 'left');
if (iStartScrolling) {
if (iCurrentTop != iScrollTop) {flevMoveDiv(sContentDivID, String(iCurrentLeft), String(iCurrentTop-iPixels));} // Continue scrolling
else {flevMoveDiv(sContentDivID, String(iCurrentLeft), String(iScrollBottom));} // Re-position scrolling layer at bottom of containing layer
flevTimeoutID = setTimeout("flevAutoScrollDivs(" + iStartScrolling + "," + iPixels + "," + iDelay + ")", iDelay);
}
else if (flevTimeoutID != null) {clearTimeout(flevTimeoutID);}
}
//-->
</script>
<link href="dwonline.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="flevAutoScrollDivs(1,1,100)">

<!-- Start absolute positioned Cross-browser AutoScroller -->
<!-- Do NOT change these layer ID's -->
<div id="AutoScrollContainer" style="position:absolute; top:0; left:0; width:125; height:128; clip:rect(0,125,128,0); overflow:hidden; z-index:1; visibility:visible; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000">
<!-- Do NOT define (additional) styles for the following nested layer here. If required, modify the inline styles in the head section -->
<div id="AutoScrollContent">
<!-- EDITAR A PARTIR DAQUI -->
<div align="left">

<table width="37" border="0" cellspacing="15">
<tr>
<td width="2%"><img src="../imagens/alguns_prod/seta_esq.jpg" width="19" height="81"></td>
<td width="12%"><img src="../imagens/alguns_prod/pord_1.jpg" width="100" height="96"></td>
<td width="12%"><img src="../imagens/alguns_prod/pord_2.jpg" width="100" height="96"></td>
<td width="12%"><img src="../imagens/alguns_prod/pord_3.jpg" width="100" height="96"></td>
<td width="1%"><img src="../imagens/alguns_prod/pord_4.jpg" width="100" height="96"></td>
<td width="61%"><img src="../imagens/alguns_prod/seta_dir.jpg" width="19" height="81"></td>
</tr>
</table>
</div>
</div></div>
<!-- End absolute positioned Cross-browser AutoScroller -->
</body></html>
Atenciosamente
Anderson
Webmaster
TERENIGHT

#2 Info_Tec

Info_Tec

    Servo do DEUS VIVO!

  • Usuários
  • 398 posts
  • Sexo:Não informado
  • Localidade:Entre a cadeira e o teclado
  • Interesses:Jesus, minha esposa e filha.<br>ASP, Lógica de programação, Projeto de Estradas, $$$ que tô precisando!

Posted 26/05/2004, 13:06

Isso é JavaScript, por favor seja mais atento à descrição das Salas.
A cada minuto está mais perto.
Aceite JESUS como seu único e suficiente salvador!
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Fórum HOSANAS, venha conversar e se engrandecer com a palavra de DEUS.
Host: ASPECTO, Hospedagem ASP com qualidade e bom preço.




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq