- Fórum WMO
- → diego1986's Content
diego1986's Content
There have been 14 items by diego1986 (Search limited from 28/04/2023)
#732246 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 20/04/2006, 10:04 in HTML, CSS e Metodologias
vlws brother ... qdo eu terminar de fazer te mando o end pra vc ver se ficou bom
abs
tive aqui pensando .. esse script da certo se ao inves de eu usar imagem usar paginas HTML ..
ex .. se a resolucao for 800 * 600 eu uso a page index1 e assim por diante ..
sera que funfa ??
vlws
#732223 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 13:57 in HTML, CSS e Metodologias
#732206 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 13:35 in HTML, CSS e Metodologias
mesmo assim continuo naum aparecendo ... o codigo ficou assim ...
<script language="javascript"> if (screen.width=="800") { fundo = "800600.jpg"; }else if (screen.width=="1024") { fundo = "1024768.jpg"; }else{ fundo = "12801024.jpg";} </script>
e para mostrar a imagem .. assim
<script language="javascript">document.write("<img src="+fundo+" />");</script>
ta certo ??
deu certinho manow ... agora ta firmeza ...
obrigadao ....
#732162 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 11:54 in HTML, CSS e Metodologias
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>titulo</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <script language="javascript"> if (screen.width="800") { fundo = "800600.jpg"; }else if (screen.width="1024") { fundo = "1024768.jpg"; }else{ fundo = "12801024.jpg";} </script> <body> <script language="javascript">document.write("<img src="+fundo+" />");</script> </body> </html>
meu codigo ficou assim .. mas num ta aparecendo ...
tem que modificar mais alguma coisa ???
#732149 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 11:37 in HTML, CSS e Metodologias
digo dentro <body bckground="+fundo+">
e naum entre ...
tem jeito de fazer isso ??
#732131 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 11:12 in HTML, CSS e Metodologias
como eu mostro na tela a imgagem que o codigo vai selecionar ??
tenho que mostrar com script ??
#732106 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 10:46 in HTML, CSS e Metodologias
<script language="javascript">
if (screen.width="800") {
fundo = "800600.jpg";
}
if (screen.width="1024") {
fundo = "1024768.jpg";
}
if (screen.width<>"800"<>"1024") {
fundo = "12801024.jpg";
}
</script>
esse codigo eh valido ???
#732095 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 10:20 in HTML, CSS e Metodologias
antes de postar eu ja havia buscado, é que não tem nenhum post mesmo.
se alguém puder me ajudar.
#732084 Imagens Diferentes Para Resoluções Diferentes
Posted by diego1986 on 18/04/2006, 09:49 in HTML, CSS e Metodologias
Exemplo:
se resolucao="800x600" entao
imagem.fundo="800600.jpg"
senao se resolucao="1024x768" entao
imagem.fundo="1024768.jpg"
senao
imagem.fundo="12801024.jpg"
fim se
a logica seria essa ... agora so preciso dela em java script.
alguem pode me ajudar ??
#651472 Problemas No Div ! Todos Estão Na Esquerda !
Posted by diego1986 on 17/10/2005, 07:54 in CSS & Semântica (Tableless)
abs ...
diego1986
#650639 Problemas No Div ! Todos Estão Na Esquerda !
Posted by diego1986 on 14/10/2005, 08:06 in CSS & Semântica (Tableless)
O que eu colokar dentro da tag <div id="topo"> nao tem que ficar em cima na pagina ....
O que eu colokar dentro da tag <div id="menu"> fica todo a esquerda respeitando margens e tudo mais
E o que eu colokar dentro da tag <div id="blog"> sera o conteudo do site ..
Não eh isso ???
#650563 Problemas No Div ! Todos Estão Na Esquerda !
Posted by diego1986 on 13/10/2005, 21:22 in CSS & Semântica (Tableless)
Diego1986
Este é o CSS
body { background-image: url('imgs/fundo.gif') } .titulo { font-family: "arial"; font-size: 30pt; font-weight: bold; color: #FFFFFF; } .subtitulo { font-family: "arial"; font-size: 10 pt; color: rgb(115,186,37); } .texto { font-family: "arial"; font-size: 8pt; color: #000000; } .menu { font-family: "arial"; font-size: 8pt; font-weight: bold; color: rgb (255,255,255); text-decoration: none; margin-left: 10px; a:link {color: #FFFFFF} a:visited {color: #FFFFFF} a:hover {color: #000000} a:active {color: #FFFFFF} } .link { font-family: "arial"; font-size: 8pt; font-weight: bold; color: rgb (0,0,0); text-decoration: unferline; a:link {color: #000000} a:visited {color: #000000} a:hover {color: #FF6600} a:active {color: #000000} } img { border: 0px; } /** DIV INDEX - INICIO **/ #index { width:780px; margin-left:0px auto; text-align:left; position:relative; } html>body #index { background:#F1F1F1; } /** DIV INDEX - FIM **/ /** DIV TOPO - INICIO **/ #topo { width:780px; height:150px; text-align:center position:relative; } html>body #topo { background:#A3D26F; } /** DIV TOPO - FIM **/ /** DIV MENU - INICIO **/ #menu { width:280px; margin-left:5px auto; text-alig:left; position:relative; } html>body #index { background:#F1F1F1; } /** DIV MENU - FIM **/ /** DIV BLOG - INICIO **/ #blog { width:500px; margin-left:5px auto; text-align:left; position:relative; } html>body #index { background:#F1F1F1; } /** DIV BLOG - FIM **/E este é o HTML
<html> <head> <meta http-equiv="refresh" content="180; url=index.php"> <meta http-equiv="keywords" content="palavras chaves"> <title>diego1986</title> </head> <link rel="stylesheet" type="text/css" href="blog.css"/> <div id="index"> <div id="topo"> </div> <div id="menu"> </div> <div id="blog"> <p class="texto">DATA<br> <p class="titulo">TITULO</p><br> <p class="subtitulo">SUBTITULO</p><br> <span class="texto" style="width:600px;word-wrap:break-word;">NOTICIAS</span><br> <img src="img.jpg" width="300" height="200"><br> <hr> <br> </div> </div> </body> </html>
#644396 Php Casa Bem Com Css ?
Posted by diego1986 on 27/09/2005, 15:19 in PHP
Axo que rola, mas como sempre eh bom ter a opiniao/dicas e sugestoes de muita gente ... publiquei aqui um pergunta ....
O site vai ter area restrita ... sistema de login .... mas queria mesmo saber se rola fazer a parte grafica em CSS ...
Obrigado pela atenção
Diego
- Fórum WMO
- → diego1986's Content
- Privacy Policy
- Regras ·