Jump to content


MARQUESMARCIO

Member Since 10/05/2004
Offline Last Active 27/08/2011, 10:42
-----

Topics I've Started

Correr Um Lista Para Cima E Para Baixo

04/09/2008, 16:38

Olá a todos, tenho este codigo para permitir ao clicar em 2 botoes um de up e outro de down para correr a lista para cima e para baixo.
O que acontece é que só o down funciona, o up não funciona.
O que estará errado no codigo ?

<script type="text/javascript">
	var last_new_count = 17;

	function scroller_count(mode){
		var max_count = document.getElementById("max_count");
		var error = document.getElementById("error");
		var count = 0;
		var new_count = 0;
		var current_row = "";
		var first = true;
		error.innerHTML="";
		if(mode == 'down'){
			for(count = 1; count <= parseInt(max_count.value); count++){
				current_row = document.getElementById("marker"+count);
				
				
				if(last_new_count >= 17){
					if(current_row.style.display==""){
						if(first==true){
							first=false;
						}				
					}
					
					if(first==false){
						new_count++;	
					}	
					
					if(new_count<=1){
						current_row.style.display="none";
					}
					else{
						if(new_count<=17 && new_count>=1){
							current_row.style.display="";						
						}
						else{
							current_row.style.display="none";						
						}
					}
				
				
				
				}
				/*
				if(current_row.style.display==""){
					error.innerHTML+="visible " + count + " nw=[" + new_count + "] <br />";
				}
				else{
					error.innerHTML+="not	 " + count + " nw=[" + new_count + "] <br />";
				}
				*/
			}
			last_new_count = new_count;
		}
		if(mode == 'up'){
			for(count = parseInt(max_count.value); count >= 1; count++){
				current_row = document.getElementById("marker"+count);
				
				
				if(count >= 1){
					if(current_row.style.display==""){
						if(first==true){
							first=false;
						}				
					}
					
					if(first==false){
						new_count--;	
					}	
					
					if(new_count<=1){
						current_row.style.display="none";
					}
					else{
						if(new_count<=28 && new_count>=1){
							current_row.style.display="";						
						}
						else{
							current_row.style.display="none";						
						}
					}
				
				
				
				}
				/*
				if(current_row.style.display==""){
					error.innerHTML+="visible " + count + " nw=[" + new_count + "] <br />";
				}
				else{
					error.innerHTML+="not	 " + count + " nw=[" + new_count + "] <br />";
				}
				*/
			}
			last_new_count_up = new_count;
		}
	}
</script>

<a style="" href="java script:scroller_count('up');"></a>
<a style="" href="java script:scroller_count('down');"></a>

Mostra Imagem Sem Redimensionar

22/07/2008, 08:14

Boas a todos,


Tenho o seguinte problema, numa pagina tenho de mostrar varias imagens em 100px x 100px , as elas na pasta do servidor estão em 200 px x 200 px, o que queria era mostrar essas imagens 100px x 100px sem redimensionar, mostrar apenas o centro delas(100x100).
É possivel fazer isso automaticamente quando se está a mostrar a imagem ?

Wmp Play On Click

09/07/2008, 22:02

Boas,

The um código windows media player embed já com o filename definido que é carregado com autostart false.
O que pretendia é que ao clicar numa imagem o player desse play. É possivel em javascript ?

obrigado pela ajuda.

Problema Em Remover O Texto

08/07/2008, 07:04

Estou com problemas para remover uma parte do texto de uma variavel.

$texto="Bem-vindo/a à área ! Nesta área encontra recursos que apoiarão a aprendizagem de português nas suas várias competências: falar, ouvir, ler e, brevemente, escrever. Explore também a secção brincar, onde disponibilizamos jogos para aprender português de forma lúdica. Os recursos estão organizados em três níveis de dificuldade.



{yootooltip title=[] width=[300] mode=[cursor]}
Aprender/Learning

Welcome to the Learning area!
In this area you will find
resources to support you in acquiring the various skills in the Portuguese language: speaking, listening, reading and soon writing. Take full advantage of our play section, where we provide a number of games to assist you in learning Portuguese in a fun way. The resources are organised into three levels
of difficulty.
{/yootooltip}";


Pretendia remover o texto que está em inglês que está sempre entre:
{yootooltip title=[] width=[300] mode=[cursor]} {/yootooltip}

Qual a melhor ER para resolver este problema.

Retirar Tudo Em {} {}

09/06/2008, 06:35

Qual a melhor função para tirar o conteudo em :

{yootooltip title=[] width=[250] mode=[cursor]}conteudo {/yootooltip}

Queria tirar todo o conteudo inclusive o que está entre as chavetas e as mesmas.
Qual a melhor função.

IPB Skin By Virteq