Jump to content


lukas_lka

Member Since 12/09/2011
Offline Last Active 08/07/2014, 21:52
-----

Topics I've Started

Preciso De Ajuda Em Galeria De Fotos

23/12/2011, 16:25

Olá, tenho o seguinte código

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>moo.rd - Fx.Cycles</title>
<style type="text/css">
	body {
		font-family:Verdana, Arial, Helvetica, sans-serif;
	}

	div#myElement {
		width:432px;
		height:332px;
		overflow:hidden;
	}
	
	div#myElement img {
		background-color:#EEEEEE;
		border:1px solid #999999;
		display:block;
		height:300px;
		margin:auto;
		padding:15px;
		width:400px;
	}
	
	div#thumbs img {
		border:2px solid #999999;
		margin-right:10px;
		float:left;
	}
	
	div#thumbs img.active {
		border:2px solid #FF6600;
		margin-right:10px;
		float:left;
	}
</style>
<script src="moo.rd_1.3.1_mootools_1.2.js" type="text/javascript"></script>
<script type="text/javascript">
	window.addEvent('domready', function() {
		var imgs = $$('#thumbs img');
	
		var fx = new Fx.Cycles.fadeZoom('myElement', {
			autostart: true,
			duration:2000,
			steps: 6000,
			onAnimeIn: function(curr, next) {
				imgs.each(function(img, i) {
					if(i != this.count) img.removeClass('active');
					else img.addClass('active');
				}, this);
			}
		});
		
['1', '2', '3', '4'].each(function(el, i) {
            $('img'+el).addEvent('click', function() {
                if(fx.autostart) {
                    fx.autostart = $clear(fx.autostart);
                    fx.autostart = fx.next.periodical(fx.options.steps, fx);
                }
                fx.goTo(i);
            });
        });
	});
</script>
</head>

<body>
	<div style="width:600px; margin:auto;">

	<h2><a style="color:#0099FF;" href="http://www.moord.it/">moo.rd</a> Fx.Cycles Demo - by RD</h2>

	<div id="myElement">
		<img src="img/1.jpg" alt="1" />
		<img src="img/2.jpg" alt="2" />
		<img src="img/3.jpg" alt="3" />
		<img src="img/4.jpg" alt="4" />
	</div>
	
	<div id="thumbs">
		<img id="img1" class="active" src="img/1_little.jpg" alt="1" />
		<img id="img2" src="img/2_little.jpg" alt="2" />
		<img id="img3" src="img/3_little.jpg" alt="3" />
		<img id="img4" src="img/4_little.jpg" alt="4" />
	</div>
	
	</div>
</body>
</html>


Preciso incluir um texto em cada imagem, sendo que cada imagem tem um texto correspondente , que vem do banco de dados. Como faço para incluir esse texto ao lado da imagem ? esse codigo peguei de um site, está perfeito só
falta inserir o texto.

Select + Update Asp E Access

30/09/2011, 11:49

Olá, preciso consultar e atualizar um banco em Access e não estou conseguindo, segue o código abaixo:

<code>
EmpId = request.Querystring("EmpId")
strSQL = "SELECT * FROM TabelaEmp where EmpId = " & (EmpId) & ""
Set rs = connect.Execute(strSQL)
NumEmp = rs("EmpId")
EmpCont = rs("EmpContador")

strContador = "Update TabelaEmp Set EmpContador = (EmpCont + 1) where EmpId = '&(NumEmp)&' "
Set rsContador = connect.Execute(strContador)

Onde EmpId é o ID autonumerado

O Erro que aparece é

Tipo de erro:
Microsoft JET Database Engine (0x80040E10)
Nenhum valor foi fornecido para um ou mais parâmetros necessários.
Na linha do Update.

Duvidas Na Select

13/09/2011, 17:54

Olá, estou há algum tempo sem utilizar ASP, por isso estou encontrando dificuldades am algumas rotinas, por exemplo:

EmpCidade = request.Querystring("CidadeSelecionada")

If request.form("2dm") = "on" and request.form("1vg") = "on" and request.form("70m") = "on" then
strSQL = "SELECT * FROM TabelaEmp where EmpCidade = "& (EmpCidade) & " and (EmpDorm = 2 and EmpGaragem = 1) order by EmpCategoria, Empnome "
end if
If request.form("2dm") = "on" and request.form("2vg") = "on" and request.form("70m") = "on" then
strSQL = "SELECT * FROM TabelaEmp where EmpCidade = '"&(EmpCidade)&"' order by EmpCategoria, Empnome "
end if


Set rs = connect.Execute(strSQL)

If not rs.EOF then
CidadeCorreta = rs("EmpCidade")

strCidade = "SELECT * FROM TabelaCidades where CidadeId = " & (CidadeCorreta) & ""
Set rsCidade = connect.Execute(strCidade)
End If
%>

Está dando erros nesta rotina, eu não entendo bem quando tenho que dividir linhas em um comando, nem quando tenho que colocar "&" , '", nas select, talvez seja isso que provoque os erros. Utilizo também o quick weber link, não sei se tenho que mudar alguma configuração. Gostaria de maiores informações e dicas para resolver esse problema, tenho utilizado mais PHP e javascript, mas como o site que estou mantenendo está todo em ASP preciso de ajuda. Obrigado

Ninguém !!!!!

IPB Skin By Virteq