Jump to content

Recommended Posts

Posted

Boas, eu tou a fazer uma pagina em php, e tenho rollovers, esses rollovers têm preloading que é em JavaScript a cena é, eu a meio da pagina quero implantar um relogio, e tava a pensar fazer em pascal, mas não me aparece nada :S e o relogio tá direito, acabei de postar aqui... :\ o java so pode ser usado dentro do <head> </head> ?? e depois s eu kiser usar a meio da pag? :\ cumps [glow=red,2,300]Joninho[/glow]

Posted

Se explorares bem dentro do código do teu relógio vais ver como é que ele faz o load dentro da página 👍 Basicamente ele muda o valor do div "txt" 🙂

Podes fazer de diversas maneiras... Normalmente faço uma funçao na head e depois invoco a função no body.

Por exemplo:

<head>
<script>
function lol() {
document.write("LOL");
}
</script>
</head>
<body>
<script>lol();</script>
</body>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.