Cu acest script, link-urile care-l apeleaza vor deschide pagina dorita intr-un mod animat.
Pentru a folosi acest script, adaugati codul urmator in documentul HTML, chiar si dupa tag-ul <body>
<script type="text/javascript">
<!--
var winheight=100
var winsize=100
var x=5
function openwindow(adresa) {
tempadr=adresa
if (!(window.resizeTo && document.all) && !(window.resizeTo && document.getElementById)) {
window.open(adresa)
return
}
win2=window.open("","","scrollbars")
win2.moveTo(0,0)
win2.resizeTo(100,100)
go2()
}
function go2() {
if (winheight>=screen.availHeight-5)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-5) {
win2.location=tempadr
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",25)
}
//-->
</script>
<a href="javascript:openwindow('adresa_url')">Legatura</a>In loc de 'adresa_url' scrieti adresa paginii sau a site-ului folosit de dv.
Curs JavaScript
<div>Web Programming and Development</div>
h2 { text-decoration: underline; }
function someFunction() { alert("CoursesWeb.net"); } setTimeout("someFunction()", 2000);
$food =["fruits" =>["banana", "mar"), "veggie" =>["ceapa", "rosie")); $nr_food = count($food, 1); echo $nr_food; // 6
The child will haven't played by Sunday. - Copilul nu s-ar fi jucat pana duminica.
Él no habrá contado el cuento. - El nu ar fi spus povestea.