← UI & UX Design

Criar página web com fundo dinamico (Vegas)

Lida 3156 vezes

Offline

HilarYo 
Membro
Mensagens 188 Gostos 2
Troféus totais: 20
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Boas,
Estou a tentar criar uma pagina web, de forma a que o fundo (background) seja dinâmico, ou melhor dizendo uma especie de slideshow.
Encontrei um plugin Jquery (Vegas) - http://vegas.jaysalvat.com/
Segui a documentação (http://vegas.jaysalv...entation/setup/)
tenho o seguinte código:

Código: (html) [Seleccione]
<!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=UTF-8" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"> </script>
<script type="text/javascript" src="vegas/jquery.vegas.js"> </script>
<link rel="stylesheet" type="text/css" href="/vegas/jquery.vegas.css" />
<script>
$(function() {
$.vegas({
src:'/images/background.jpg'
});
$.vegas('overlay', {
src:'/vegas/overlays/13.png'
});
});
</script>

<title>PaginaTeste</title>
</head>

<body>

</body>
</html>
com este código seria possível apresentar a imagem de fundo background.jpg
alguém me pode ajudar?
Obrigado
Cumprimentos
Offline

HilarYo 
Membro
Mensagens 188 Gostos 2
Troféus totais: 20
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Problema Solucionado:
Código: [Seleccione]
$(function() {
  $.vegas({
    src:'./images/background.jpg'
  });
  $.vegas('overlay', {
    src:'./vegas/overlays/13.png'
  });
});
Faltava o . :
em vez de
Código: [Seleccione]
src:'/images/background.jpg'era:
Código: [Seleccione]
src:'./images/background.jpg'