Sari la conținut
  • Bun venit pe Resursele.ro!

    Bun venit pe Resursele.ro! Pentru a avea un acces total la forum și pentru a beneficia de:

    • Navigarea pe un forum bine pus la punct și fără nici un fel de întrerupere
    • Privilegiul de a-ți face noi prieteni si de a învăța lucruri noi
    • Șanșa de a face parte din staff și dintr-o comunitate sigură
    • Posibilitatea de a învăța tot ceea ce nu cunoști
    • Șanșa și sprijinul de a-ți dezvolta planurile în lumea internetului și mai mult.

    Te invităm să te Înregistrezi acum pe forumul nostru, să ne cunoaștem și să ne începem împreună aventura și colaborarea pe internet!

Oprea

Diferite script-uri HTML

Postări Recomandate

Folosind acest script, in locul unde il vei introduce va apare un buton. Prin apasarea lui va aparea o icoana pop cu mesajul pe care il doriti dumnevoastra sa-l transmiteti utilizatorilor

<form><input type="button" value="MESAJ PE BUTON" onClick="alert(' MESAJUL PE CARE DORITI SA-L TRANSMITETI '); return true"></form><!-- End of Message Alert -->

Anuleaza click dreapta pe imagini:

<script language="JavaScript1.2">


var clickmessage="Mesaj care vreti sa fie transmis daca cineva apasa click dreapta pe o imagine!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>

Dezactiveaza in totalitate click dreapta:

<script language=JavaScript>
<!--




var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 
</script>

Dezactiveaza selectare text (nu merge pe Opera si Mozilla Firefox)

<script type="text/javascript">


function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
   target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
   target.style.MozUserSelect="none"
else //All other route (ie: Opera)
   target.onmousedown=function(){return false}
target.style.cursor = "default"
}

//Sample usages
//disableSelection(document.body) //Disable text selection online entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection online element with id="mydiv"

</script>

Script pentru ninsoare pe tot continutul paginii:

<!--Simply copy and paste into <BODY> 
    Just above the </BODY> tag. -->

<script type="text/javascript">
/*
Snow Fall Java script
Visit http://rainbow.arch.scriptmania.com/scripts/
  for this script and many more
*/

//Pre-loads your image/s below
//Configure below - change URL path to the snow image

grphcs=new Array(6)
Image0=new Image();
Image0.src=grphcs[0]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif";
Image1=new Image();
Image1.src=grphcs[1]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"
Image2=new Image();
Image2.src=grphcs[2]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"
Image3=new Image();
Image3.src=grphcs[3]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"
Image4=new Image();
Image4.src=grphcs[4]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"
Image5=new Image();
Image5.src=grphcs[5]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"

//Smoothness depends online image file size,
//the smaller the size the more you can use!

// Configure below - change number of snow to render
Amount=40;

Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
ns6=(document.getElementById&&!document.all)?1:0;

if (ns){
    for (i = 0; i < Amount; i++){
        var P=Math.floor(Math.random()*grphcs.length);
        rndPic=grphcs[P];
        document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");
    }
}
else{
    document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < Amount; i++){
        var P=Math.floor(Math.random()*grphcs.length);
        rndPic=grphcs[P];
        document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');
    }
    document.write('</div></div>');
}
WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
for (i=0; i < Amount; i++){
    Ypos[i] = Math.round(Math.random()*WinHeight);
    Xpos[i] = Math.round(Math.random()*WinWidth);
    Speed[i]= Math.random()*5+3;
    Cstep[i]=0;
    Step[i]=Math.random()*0.1+0.05;
}
function fall(){
    var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
    var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
    var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;
    var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft;
    for (i=0; i < Amount; i++){
        sy = Speed[i]*Math.sin(90*Math.PI/180);
        sx = Speed[i]*Math.cos(Cstep[i]);
        Ypos[i]+=sy;
        Xpos[i]+=sx;
        if (Ypos[i] > WinHeight){
            Ypos[i]=-60;
            Xpos[i]=Math.round(Math.random()*WinWidth);
            Speed[i]=Math.random()*5+3;
        }
        if (ns){
            document.layers['sn'+i].left=Xpos[i];
            document.layers['sn'+i].top=Ypos[i]+hscrll;
        }
        else if (ns6){
            document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]);
            document.getElementById("si"+i).style.top=Ypos[i]+hscrll;
        }
        else{
            eval("document.all.si"+i).style.left=Xpos[i];
            eval("document.all.si"+i).style.top=Ypos[i]+hscrll;
        }
        Cstep[i]+=Step[i];
    }
    setTimeout('fall()',115);
}
window.onload=fall
//-->
</script>
<p><font face="arial" size="-2">

Afisarea IP-ului celui care navigheaza:

<script src="http://embed.ipcatch.com/ip/" type="text/javascript"></script>

Afisarea tarii de provenienta (sau provenienta IP-ului, providerului de internet):

<script src="http://embed.ipcatch.com/country/" type="text/javascript"></script><script src="http://embed.ipcatch.com/flag/" type="text/javascript"></script>

Afisarea browser-ului folosit:

<script src="http://embed.ipcatch.com/browser/" type="text/javascript"></script>

Defilare simpla a unei imagini, orizontal (&nbsp; <=> spatiu):

<marquee><img src="http://URL_image1"></img> <img src="http://URL_image2"></img> <img src="http://URL_imageN"></img></marquee>

Defilare simpla a unei imagini, vertical (<br> <=> cu o linie mai jos):

<marquee direction="up"><img src="http://URL_image1"></img><br><img src="http://URL_image2"></img><br><img src="http://URL_imageN"></img></marquee>

Ninsoare cu inimioare:

<marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:110px; top:150px; width:16px; height:483px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="2" style="position:absolute; left:169px; top:170px; width:16px; height:411px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:213px; top:190px; width:16px; height:346px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="1" style="position:absolute; left:279px; top:180px; width:16px; height:512px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="7" style="position:absolute; left:310px; top:160px; width:16px; height:428px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="5" style="position:absolute; left:250px; top:190px; width:16px; height:206px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="7" style="position:absolute; left:148px; top:150px; width:16px; height:287px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="6" style="position:absolute; left:297px; top:170px; width:16px; height:239px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="7" style="position:absolute; left:110px; top:230px; width:16px; height:254px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:369px; top:190px; width:16px; height:420px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:385px; top:150px; width:16px; height:520px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="4" style="position:absolute; left:441px; top:170px; width:16px; height:381px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="7" style="position:absolute; left:477px; top:200px; width:16px; height:392px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="6" style="position:absolute; left:569px; top:170px; width:16px; height:485px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:599px; top:200px; width:16px; height:386px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="1" style="position:absolute; left:530px; top:170px; width:16px; height:383px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="1" style="position:absolute; left:608px; top:200px; width:16px; height:347px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="7" style="position:absolute; left:642px; top:250px; width:16px; height:435px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:681px; top:290px; width:16px; height:499px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="7" style="position:absolute; left:659px; top:180px; width:16px; height:222px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="4" style="position:absolute; left:698px; top:160px; width:16px; height:250px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="1" style="position:absolute; left:726px; top:200px; width:16px; height:382px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="1" style="position:absolute; left:754px; top:150px; width:16px; height:542px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>
<marquee behavior="scroll" direction="down" scrollamount="2" style="position:absolute; left:780px; top:180px; width:16px; height:437px; z-index:1;"><span class="falling2"><img src="http://i87.photobucket.com/albums/k139/hi5love/heart2.gif"></span></marquee>

Mesaj la Intrare pe o pagina:

<script language="Javascript">
<!--
alert('Welcome to Nume forum');
-->
</script>

Ce face acest script ?
Este un script java care va ajuta sa prezentati anumite stiri / events intr-un mod mai placut !

<form name="news">
<textarea name="news2" cols=40 rows=4 wrap=virtual></textarea>
</form>

<script language=JavaScript>

var newsText = new Array();
newsText[0] = "Acesta este un script conceput de echipa...";
newsText[1] = "El contine stiri intr-un text box ";
newsText[2] = "Trebuie sa inlocuiti aceste lini de text";
newsText[3] = "Programmed Copyright (c) 2011";
newsText[4] = "Succes"

var ttloop = 1;    // Repeat forever? (1 = True; 0 = False)
var tspeed = 50;   // Typing speed in milliseconds (larger number = slower)
var tdelay = 1000; // Time delay between newsTexts in milliseconds

// ------------- NO EDITING AFTER THIS LINE ------------- \\
var dwAText, cnews=0, eline=0, cchar=0, mxText;

function doNews() {
  mxText = newsText.length - 1;
  dwAText = newsText[cnews];
  setTimeout("addChar()",1000)
}
function addNews() {
  cnews += 1;
  if (cnews <= mxText) {
    dwAText = newsText[cnews];
    if (dwAText.length != 0) {
      document.news.news2.value = "";
      eline = 0;
      setTimeout("addChar()",tspeed)
    }
  }
}
function addChar() {
  if (eline!=1) {
    if (cchar != dwAText.length) {
      nmttxt = ""; for (var k=0; k<=cchar;k++) nmttxt += dwAText.charAt(k);
      document.news.news2.value = nmttxt;
      cchar += 1;
      if (cchar != dwAText.length) document.news.news2.value += "_";
    } else {
      cchar = 0;
      eline = 1;
    }
    if (mxText==cnews && eline!=0 && ttloop!=0) {
      cnews = 0; setTimeout("addNews()",tdelay);
    } else setTimeout("addChar()",tspeed);
  } else {
    setTimeout("addNews()",tdelay)
  }
}

doNews()
</script>

<p><font face="arial" size="1">Acesta este un script gratuit oferit de</font><br>
<a href="http://arenatech.ro"><font face="arial,helvetica" size="1">ArenaTech.ro</font></a></p>

Sursa:

Conținut ascuns

    Trebuie să te loghezi sau să te înregistrezi pentru a vedea link-urile și imaginile externe.

Partajează acest post


Link spre post
Distribuie pe alte site-uri
Vizitator
Răspunde la acest topic...

×   Alipit ca text avansat.   Alipește ca text simplu

  Doar 75 emoji sunt permise.

×   Linkul tău a fost încorporat automat.   Afișează ca link în schimb

×   Conținutul tău precedent a fost resetat.   Curăță editor

×   Nu poți lipi imagini direct. Încarcă sau inserează imagini din URL.


×
×
  • Creează nouă...