Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
casa verde 2024

Intrerupator cu N - doza doar cu ...

Incalzire casa fara gaz/lemne

Incalzire in pardoseala etapizata
 Suprataxa card energie?!

Cum era nivelul de trai cam din a...

probleme cu ochelarii

Impozite pe proprietati de anul v...
 teava rezistenta panou apa calda

Acces in Curte din Drum National

Sub mobila de bucatarie si sub fr...

Rezultat RMN
 Numar circuite IPAT si prindere t...

Pareri brgimportchina.ro - teapa ...

Lucruri inaintea vremurilor lor

Discuții despre TVR Sport HD.
 

Mesaje in StatusBar

- - - - -
  • Please log in to reply
1 reply to this topic

#1
Courage

Courage

    Founder

  • Grup: Senior Members
  • Posts: 21,657
  • Înscris: 26.11.2001
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
Courage

Courage

    Founder

  • Grup: Senior Members
  • Posts: 21,657
  • Înscris: 26.11.2001
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="";  }
  else if (seed > 100) 
  {
	 seed--;
	 var cmd="infoscroll(" + seed + "," + looped + ")";
	 timerTwo=window.setTimeout(cmd,100);
  }
  else if (seed <= 100 && seed > 0) 
  {
	for (c=0 ; c < seed ; c++) 
	{  putout+=" ";  }
	putout+=msg.substring(0,100-seed);	
	seed--;
	var cmd="infoscroll(" + seed + "," + looped + ")";
	window.status=putout;
	timerTwo=window.setTimeout(cmd,100);
  }
  else if (seed <= 0) 
  {
	if (-seed < msg.length) 
	{
	  putout+=msg.substring(-seed,msg.length);
	  seed--;
	  var cmd="infoscroll(" + seed + "," + looped + ")";
	  window.status=putout;
	  timerTwo=window.setTimeout(cmd,100); // 100
	}
	else 
	{
	  window.status=" ";
	  looped += 1;
	  var cmd = "infoscroll(100," + looped + ")";
	  timerTwo=window.setTimeout(cmd,75); // 75
	}
  }
}
// -->



</script>

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

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate