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
Prima linie ...<br> Alta linie...
#id { letter-spacing: 2px; }
var elm = document.getElementById("theID"); var content = elm.innerHTML; alert(content);
echo "Adresa URL: http://CoursesWeb.net";
She does not paint that landscape. - Ea nu picteaza acel peisaj.
Ella no canta esa canciĆ³n. - Ea nu canta acel cantec.