Mesaje in StatusBar
Last Updated: Mar 07 2002 23:21, Started by
Courage
, Mar 07 2002 15:02
·
0
#1
Posted 07 March 2002 - 15:02
Exista foarte multe variante de a scrie mesaje in status bar, cu diferite efecte, iar acest post va fi innoit treptat!
Varianta 1: - cea mai simpla varianta. Textul este Static. Vezi http://www.softnews.ro Adaugati handler-ul onmouseover="MM_displayStatusMsg('Visit More often SoftNews !!!');return document.MM_returnValue" la tag-ul BODY (puteti schimba mesajul). Vedeti exemplul de mai jos ! <body onmouseover="MM_displayStatusMsg('Visit More often SoftNews !!!');return document.MM_returnValue"> Varianta 2: - ofera posibilitatea de a avea in statusbar ora si data computerului. Copiati urmatorul script in tag-ul ... <script LANGUAGE="javascript"> //visit [url="http://www.softnews.ro/forum"]http://www.softnews.ro/forum[/url] - WebDesign Area to find more JS Goodies </script> Varianta 3: (doar pt. IE) se deosebeste de celelalte prin faptul ca NU dispare (pt. putin timp) cand dati cu mouse-ul pe deasupra unui link ! Adaugati in in tag-ul BODY urmatorul handler: onmouseover="window.status='This message will stay the same!';return true;" ca in exemplul de mai jos: <body onmouseover="window.status='This message will stay the same!';return true;"> |
#2
Posted 07 March 2002 - 23:21
Varianta 4: - mesajul va clipi intemitent in StatusBar Puteti modifica viteza cu care clipeste.
Pasul 1: adaugati acest cod intre ... <script> //get more JS Goodies from [url="http://www.softnews.ro/forum"]http://www.softnews.ro/forum[/url] - WEB Design Area var yourwords = "SoftNews.ro Rocks !"; var speed = 300; var control = 1; function flash() { if (control == 1) { window.status=yourwords; control=0; } else { window.status=""; control=1; } setTimeout("flash()",speed); } </script> Pasul 2: introduceti handler-ul <body onload="flash()"> in tag-ul BODY, ca in exemplul: <body onload="flash()"> Varianta 5 : - va realiza un scroll al textului in StatusBar Copiati acest cod intre ... <script LANGUAGE="javascript"> //get more JS Goodies from [url="http://www.softnews.ro/forum"]http://www.softnews.ro/forum[/url] - WEB Design Area function infoscroll(seed,looped) { var text1 = " [url="http://www.softnews.ro"]http://www.softnews.ro[/url] "; var text2 = " the best place for IT News "; var msg=text1+text2; var putout = " "; var c = 1; if (looped > 10) { window.status=" Varianta 6: alt script de afisare a orei in StatusBar (in format digital) Pasul 1: adaugati codul de mai jos intre ... <script Language="javascript"> var timerID = null; var timerRunning = false; function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false; } function showtime () { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds() var timeValue = "" + ((hours >12) ? hours -12 :hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 12) ? " P.M." : " A.M." window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true; } function coffeeclock () { stopclock(); showtime(); } </script> Pasul 2: adaugati handler-ul onload="coffeeclock()" la tag-ul <body> ca in exemplul de mai jos: <body onload="coffeeclock()"> Pasul 3: dupa <body> adaugati codul: |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users