Scripturi pentru forum
Pagina 1 din 6 • Impartiti •
Pagina 1 din 6 • 1, 2, 3, 4, 5, 6 
Scripturi pentru forum
Codul este urmatorul pentru cautarea cu google, puteti sal bagati unde doriti, ex: portal, anunt pe prima pagina, HTML page, etc...
- Cod:
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT TYPE=hidden name=hl value="en">
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
Re: Scripturi pentru forum
Invitatii prieteni
unde e ADRESA SITEULUI TAU pui adresa forumului
- Cod:
<table width="700" border="0" align="center">
<tr>
<td><a href="ymsgr:im?+&msg=ADRESA SITEULUI TAU"> Recomanda acest site prietenilor de pe Yahoo! Messenger </a></td>
</tr>
</table>
</div>
<br>
<div align='center'>
<table width='700' border=0 cellpadding=0>
unde e ADRESA SITEULUI TAU pui adresa forumului
Scripturi pentru forum
Prima litera mai mare
Folosind urmatorul script puteti face prima litera a textului sa fie mai mare si de alta culoare.

Folosind urmatorul script puteti face prima litera a textului sa fie mai mare si de alta culoare.

- Cod:
<style type="text/css">
.myparagraph:first-letter {
font-size:200%;
float:left;
color:orange;
}
</style>
<p class="myparagraph">Bine ai venit pe forum !<p>
Re: Scripturi pentru forum
Script form

* script preluat

- Cod:
<form name="form1" method="POST">
Select a page to visit:
<select name="dd1" size=1>
<option value="URL spre selectia 1">
Selectia 1
</option>
<option value="URL spre selectia 2">
Selectia 2
</option>
<option value="URL spre selectia 3">
Selectia 3
</option>
</select>
<input type="button"
onClick=
"location =
document.form1.dd1.options
[document.form1.dd1.selectedIndex].value;"
value="GO">
</form>
* script preluat
Re: Scripturi pentru forum
Icoana suprapusa peste forum
In portal ... intr-un modul
P.A. => Modul => Portal si calendar => Gestiunea paginilor portalului => Structura => Creati un modul personalizat

In portal ... intr-un modul
P.A. => Modul => Portal si calendar => Gestiunea paginilor portalului => Structura => Creati un modul personalizat

- Cod:
<html>
<head>
<script type="text/javascript">
function detectBrowser()
{
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
if ((browser=="Netscape"||browser=="Microsoft Internet Explorer") && (version>=4))
{
alert("MESAJUL TAU AICI");
}
}
</script>
</head>
<body onload="detectBrowser()">
</body>
</html>
Tabel
Am vazut ca multi nu stiti sa faceti tabele pentru o lista de servere de cs sau alt joc...
Urmariti acest cod...
Sper sa va fie de ajutor....,acest cod se poate folosi si la alte lucruri...
Urmariti acest cod...
- Cod:
<b><center><br><br><table border="2">
<tr>
<th> Nr </th>
<th> Adresa </th>
<th> Port </th>
<th> Mod </th>
<th> Players </th>
<th> Tara </th>
</tr>
<tr>
<td>1.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
</tr>
<tr>
<td>2.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>3.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>4.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>5.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>6.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>7.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>8.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>9.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>10.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>11.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>12.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>13.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>14.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>15.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>16.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>17.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>18.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>19.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>20.</td>
<td> </td> <!!!Adresa!!!!>
<td> </td> <!!!Portul!!!>
<td> </td> <!!!Modul!!!>
<td> </td> <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
</table>
Sper sa va fie de ajutor....,acest cod se poate folosi si la alte lucruri...
Re: Scripturi pentru forum
TExt in derulare ...

sageata arata sensul de defilare a textului
inlocuiti la:
var neonbasecolor="yellow"
var neontextcolor="Red"
var neontextcolor2="green" cu ce culori doriti voi
am luat un referat la intamplare de pe net ... ~ 1500 de cuvinte ... da ruleaza tot textul ... dar la textul meu mi s-a blocat explorerul si si-a revenit la vre-o 2-3 minute dupa ...
la 200-300 de cuvinte o sa creeze probleme
FOLOSITI MAXIM 40-50 cuvinte ca sa se incarce bine scriptul

sageata arata sensul de defilare a textului
- Cod:
</script>
<table border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody><tr><td class="content" align="center"><font size="3">
<span style="font-weight: bold;"><script language="JavaScript1.2">
/Flashing Neon /
var message="TEXTUL TAU"
var neonbasecolor="yellow"
var neontextcolor="Red"
var neontextcolor2="green"
var flashspeed=50 // speed of flashing in milliseconds
var flashingletters=1 // number of letters flashing in neontextcolor
var flashingletters2=0 // number of letters flashing in neontextcolor2 (0 to disable)
var flashpause=0 // the pause between flash-cycles in milliseconds
///No need to edit below this line/////
var n=0
if (document.all||document.getElementById){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)
function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}
function neon(){
//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
crossref(m).style.color=neonbasecolor
}
//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor
if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2
if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor
if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",flashpause)
return
}
}
function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()
</script>
inlocuiti la:
var neonbasecolor="yellow"
var neontextcolor="Red"
var neontextcolor2="green" cu ce culori doriti voi
am luat un referat la intamplare de pe net ... ~ 1500 de cuvinte ... da ruleaza tot textul ... dar la textul meu mi s-a blocat explorerul si si-a revenit la vre-o 2-3 minute dupa ...
la 200-300 de cuvinte o sa creeze probleme
FOLOSITI MAXIM 40-50 cuvinte ca sa se incarce bine scriptul
Re: Scripturi pentru forum
Inca mai caut un script cu buton de redirectionare ... vezi daca esti multumit de acesta:

Edit: pentru pagini html

- Cod:
<head>
<script type="text/javascript">
var contor=5
var timp
function functie()
{
document.getElementById('afisare').value=contor
if (contor == 0) { parent.location.href="ADRESA SITE/FORUM" }
contor=contor-1
timp=setTimeout("functie()",1000)
}
</script>
</head>
<body onLoad="functie()">
Vei fi redirectionat in <input type="text" id="afisare"> secunde
</body>
</html>
Edit: pentru pagini html
Ultima editare efectuata de catre ezlidor in Mar 23 Sept 2008, 12:52 pm, editata de 1 ori
Re: Scripturi pentru forum
- Cod:
<form><input type="button" value="MESAJ PE BUTON" onClick="alert(' MESAJUL PE CARE DORITI SA-L TRANSMITETI '); return true"></form><!-- End of Message Alert -->
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
Re: Scripturi pentru forum
Acest script va ajuta sa puneti ca aici cand intri pe pagina forumului:REGULAMENT FORUM.
Ei cu asta va ajuta urmatorul script si mai puteti inlocui textul daca doriti.
O zi placuta in continuare!
Ei cu asta va ajuta urmatorul script si mai puteti inlocui textul daca doriti.
- Cod:
<b><font size="4"><center><img src="http://i29.servimg.com/u/f29/11/60/75/36/a1110.gif"><a href="LINK-UL AICI">TEXTUL TAU AICI</a> <img src="http://i29.servimg.com/u/f29/11/60/75/36/a1110.gif"></center></font></b>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
O zi placuta in continuare!

Lizzard- Veteran Forumgratuit

- Numarul mesajelor: 10191
Varsta: 21
Localizare: Pitesti
Data de inscriere: 22/05/2008

Re: Scripturi pentru forum
Imi cer scuze daca voi crea dublu, triplu post ... dar scripturile sunt prea lungi pentru a incapea intr-un singur mesaj
SCRIS DE ELLA:
Imaginea:
SCRIS DE ELLA:
- Cod:
<a href="http://smg.photobucket.com/albums/v280/katnapper/Backgrounds/?action=view¤t=bk252Dsnowanibg5.gif" target="_blank"><img src="http://img.photobucket.com/albums/v280/katnapper/Backgrounds/bk252Dsnowanibg5.gif" border="0" alt="animated snow"></a>
Imaginea:

Ultima editare efectuata de catre ezlidor in Joi 18 Sept 2008, 1:01 am, editata de 1 ori
Re: Scripturi pentru forum
SCRIS DE LUCKY13
FULGI DE ZAPADA
FULGI DE ZAPADA
- Cod:
<script>
// seteaza numarul de fulgi (nu se recomanda mai mult de 30-40)
var snowmax=25
// seteaza culorile fulgilor.Puteti adauga cate culori vreti
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")
// seteaza fonturile pentru fulgi. Si aici puteti adauga si alte fonturi daca vreti
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")
// seteaza caracterul pentru fulgi (recomandat: *)
var snowletter="*"
// seteaza viteza de cadere a fulgilor (valori recomandate: intre 0.3 to 2)
var sinkspeed=0.12
// seteaza dimensiunea maxima a fulgilor
var snowmaxsize=50
// seteaza dimensiunea minima a fulgilor
var snowminsize=20
// seteaza zona de cadere a fulgilor
// 1 pentru cadere peste tot, 2 pentru stanga a ecranului
// 3 pentru centru, 4 pentru dreapta ecranului
var snowingzone=1
///////////////////////////////////////////////////////////////////////////
// AICI SE TERMINA PARTEA DE CONFIGURARE
///////////////////////////////////////////////////////////////////////////
// NU EDITATI ACESTE VALORI DE MAI JOS
var snow=new Array()
var marginbottom
var marginright
var timer
var i_snow=0
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)
var browserok=ie5||ns6||opera
function randommaker(range) {
rand=Math.floor(range*Math.random())
return rand
}
function initsnow() {
if (ie5 || opera) {
marginbottom = document.body.clientHeight
marginright = document.body.clientWidth
}
else if (ns6) {
marginbottom = window.innerHeight
marginright = window.innerWidth
}
var snowsizerange=snowmaxsize-snowminsize
for (i=0;i<=snowmax;i++) {
crds[i] = 0;
lftrght[i] = Math.random()*15;
x_mv[i] = 0.03 + Math.random()/10;
snow[i]=document.getElementById("s"+i)
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
snow[i].size=randommaker(snowsizerange)+snowminsize
snow[i].style.fontSize=snow[i].size
snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
snow[i].sink=sinkspeed*snow[i].size/5
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
snow[i].style.left=snow[i].posx
snow[i].style.top=snow[i].posy
}
movesnow()
}
function movesnow() {
for (i=0;i<=snowmax;i++) {
crds[i] += x_mv[i];
snow[i].posy+=snow[i].sink
snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
snow[i].style.top=snow[i].posy
if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
snow[i].posy=0
}
}
var timer=setTimeout("movesnow()",50)
}
for (i=0;i<=snowmax;i++) {
document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
window.onload=initsnow
}
</script>
Re: Scripturi pentru forum
SCRIPT PENTRU POSTURI TV (postat de Zombi)
- Cod:
<br /><form action="http://www.bum-files.com" method="post" target="_new"><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.bum-files.com/internetradio/stations/rock1.asx" align="middle" width=310 height=45 autostart="True" loop="False" volume="100" showstatusbar=false></embed><input type="submit" value="Internet Radio At bum-files.com" /><br /></form><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/Jmx*PTEyMDEyNzAxNDAwOTMmcHQ9MTIwMTI3MDE*ODY3MSZwPTU2MzUxJmQ9Jm49.jpg" />
Re: Scripturi pentru forum
Câteva scripturi Css.
Pe acestea le puneti in:
P.A=>Afișare=>Imagini si culori=>Culori=>Foaie de stil CSS:

1.Ascunderea Butonului Căutare:
2.O imagine ca fundal pentru meniul de Navigare:
3.Pentru Schimbarea Fundalului Căsuței de Postare:
Înlocuiți URL IMAGINE cu linkul imaginei dumneavoastră.
4.Mărirea/Micșorarea Titlurilor Unei Categorii:
Înlocuiți 0.90 cu dimensiunile pe care le doriți.
5.Mărirea link-urilor la deplasarea cursorului pe ele:
6.Mărire/Schimbare culoare Contur Forum:
Pentru Mărire modificați cifra din Fața lui PX(pixeli)/pentru schimabre culoare Modificați #FFFFFF.
7.Pentru Micșorarea Linkurilor de la ForumGratuit(Cele de jos)
8.Culoarea Codului/Spoilerului
9.Ascundere Ultimele Mesaje(in partea stângă,unde este afisat data ultimului mesaj și autorul):
10.Culoarea Zonelor De selectat:
11.Widget-uri doar pe pagina de start:
Pe acestea le puneti in:
P.A=>Afișare=>Imagini si culori=>Culori=>Foaie de stil CSS:

1.Ascunderea Butonului Căutare:
- Cod:
#search{
display:none;
}
2.O imagine ca fundal pentru meniul de Navigare:
- Cod:
.navbar{background-image: url(URL IMAGINE);}
3.Pentru Schimbarea Fundalului Căsuței de Postare:
- Cod:
.ak_msgform_subject_right_td input, .ak_msgform_message_right_td textarea, textarea{
background-image:url(URL IMAGINE);
}
Înlocuiți URL IMAGINE cu linkul imaginei dumneavoastră.
4.Mărirea/Micșorarea Titlurilor Unei Categorii:
- Cod:
.table-title h2{font-size:0.90em;}
Înlocuiți 0.90 cu dimensiunile pe care le doriți.
5.Mărirea link-urilor la deplasarea cursorului pe ele:
- Cod:
A:hover{text-transform:uppercase;}
6.Mărire/Schimbare culoare Contur Forum:
- Cod:
#wrap{border: 1px solid #FFFFFF;}
Pentru Mărire modificați cifra din Fața lui PX(pixeli)/pentru schimabre culoare Modificați #FFFFFF.
7.Pentru Micșorarea Linkurilor de la ForumGratuit(Cele de jos)
- Cod:
.copyright{
font-size: 10px;
font-family: Verdana,Arial,Helvetica,sans-serif;
letter-spacing: -1px;
}
8.Culoarea Codului/Spoilerului
- Cod:
dl.codebox {
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #C9D2D8;
font-size: 1em;
}
9.Ascundere Ultimele Mesaje(in partea stângă,unde este afisat data ultimului mesaj și autorul):
- Cod:
.lastpost {
display:none !important;
}
10.Culoarea Zonelor De selectat:
- Cod:
select{color:#ffffff;}
11.Widget-uri doar pe pagina de start:
darkspectre a scris:Pentru widget-urile de pe partea dreapta:
Pune codul de mai jos in P.A=>Afisare=>Imagini si culori=>Culori=>Foaie de stil CSS:
- Cod:
#content-container div#left, #content-container div#right{display:none;}
#content-container div#content{margin-right:0px;}
Acum pune urmatorul cod în:
P.A=>Afișare=>Pagina de start=>Generalitati=>Mesaj pe pagina de start=>Continutul mesajului:
- Cod:
<style type="text/css"><!--#content-container div#left, #content-container div#right{display:inline;}#content-container div#content{margin-right:183px;}--></style>
Pentru widget-urile de pe partea stanga:
Pentru widget-urile de pe partea stanga fa la fel,dar pune acest cod in P.A=>Afișare=>Pagina de start=>Generalitati=>Mesaj pe pagina de start=>Continutul mesajului:
- Cod:
<style type="text/css"><!--#content-container div#left, #content-container div#right{display:inline;}#content-container div#content{margin-left:183px;}--></style>
!Atentie: Trebuie sa inlocuiesti marimea din margin-left:183px; cu lungimea setata in P.A. pentru widget-uri plus 3(acesta diferenta reprezinta spatiul dintre widget-uri si forum,deci spre exemplu daca lungimea widget-urilor tale din P.A. este setata 200px atunci pune 203px).
Ultima editare efectuata de catre darkspectre in Dum 27 Sept 2009, 10:47 am, editata de 2 ori
Re: Scripturi pentru forum
Anuleaza Click dreapta pe Imagine:
Dezactiveaza in totalitate click dreapta:
Adauga site-ul ca prima pagina:
EDIT 1960 - Fiti foarte atenti ce faceti cu acest script, userul care l-a postat nu spune despre ce prima pagina este vorba.
Daca in explorer aveti ca homepage Google, (sau ce aveti voi in browser ca pagina implicita) daca puneti acest cod in forum, va veti trezi ca nu mai puteti accesa pagina implicita ( google) ci pagina pe care ati pus-o in loc de ADRESA.
Il anunt aici pe Zeratul, ca daca mai va pune inca o data linkul forumului personal in vreun script, va fi direct banat.
In scriptul de mai jos, la ADRESA era trecut linkul forumului lui. Greseala sau intentionat ? Cred ca a facut-o intentionat
Pentru IE anuleaza 'image tool':
Script ce pune site-ul la bookmark:
- Cod:
<script language="JavaScript1.2">
var clickmessage="Right click disabled on images!"
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:
- Cod:
<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>
Adauga site-ul ca prima pagina:
EDIT 1960 - Fiti foarte atenti ce faceti cu acest script, userul care l-a postat nu spune despre ce prima pagina este vorba.
Daca in explorer aveti ca homepage Google, (sau ce aveti voi in browser ca pagina implicita) daca puneti acest cod in forum, va veti trezi ca nu mai puteti accesa pagina implicita ( google) ci pagina pe care ati pus-o in loc de ADRESA.
Il anunt aici pe Zeratul, ca daca mai va pune inca o data linkul forumului personal in vreun script, va fi direct banat.
In scriptul de mai jos, la ADRESA era trecut linkul forumului lui. Greseala sau intentionat ? Cred ca a facut-o intentionat
- Cod:
<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('ADRESA');">Click here to make mywebsite your default homepage</a>
Pentru IE anuleaza 'image tool':
- Cod:
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
Script ce pune site-ul la bookmark:
- Cod:
<script type="text/javascript">
/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}
</script>
Re: Scripturi pentru forum
Atentie mare cei ce folositi scripturile puse de Zeratul.
O faceti pe raspunderea voastra.

O faceti pe raspunderea voastra.


Vizitato- Vizitator
Re: Scripturi pentru forum
Floating Menu:
- Cod:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--EDIT BELOW CODE TO YOUR OWN MENU-->
<table border="1" width="130" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" bgcolor="#FFFFCC">
<p align="center"><b><font size="4">Menu</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#000000">
INTRODU AICI SCRIPT / TEXT / IMAGINE </td>
</tr>
</table>
<!--END OF EDIT-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != 1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
Re: Scripturi pentru forum
ezlidor a scris:Floating Menu:
- Cod:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--EDIT BELOW CODE TO YOUR OWN MENU-->
<table border="1" width="130" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" bgcolor="#FFFFCC">
<p align="center"><b><font size="4">Menu</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#000000">
INTRODU AICI SCRIPT / TEXT / IMAGINE </td>
</tr>
</table>
<!--END OF EDIT-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != 1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
este primul script Floating Menu pe care l-am avut si a mers ok
dar dupa cum am spus de vreo 2-3 sapt nu mai merge (exact din ziua in care sau facut modificari la chatbox).
multumesc pentru raspunsul acordat
fulgi de zapada
Acest cod merge doar cu Internet Explorer
DACA SE PUNE ACEST COD IN
P.A/AFISARE/GENERALITATI/MESAJ PE PRIMA PAGINA/ O SA VEDETI O FRUMOASA NINSOARE
- Cod:
<!--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 on 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">
DACA SE PUNE ACEST COD IN
P.A/AFISARE/GENERALITATI/MESAJ PE PRIMA PAGINA/ O SA VEDETI O FRUMOASA NINSOARE
Ultima editare efectuata de catre nick in Mier 08 Oct 2008, 12:52 pm, editata de 1 ori
FRUNZE CAZATOARE
Aceste 2 coduri merg doar cu Internet Explorer
Dacă tot suntem in acest sezon ( toamnă )
Daca se pune acest cod in :
P.A / AFISARE / GENERALITATI / MESAJ PE PRIMA PAGINA /
o sa vedeti niste frunze cazatoare
Merge doar in explorer ( Internet Explorer)
=========================
Un mouse frumos !!!
- Cod:
<!--Copy and Paste into <BODY>
Just above the </BODY> tag. -->
<SCRIPT type="text/javascript" language="JavaScript1.2">
/*
Autumn Fall Timeout JavaScript
Visit http://rainbow.arch.scriptmania.com/scripts/
for this script and many more
*/
//Pre-loads your images below
//Configure below - change URL path to your images
grphcs=new Array(8)
Image0=new Image();
Image0.src=grphcs[0]="http://rainbow.arch.scriptmania.com/scripts/bg/flv.gif";
Image1=new Image();
Image1.src=grphcs[1]="http://rainbow.arch.scriptmania.com/scripts/bg/oak1.gif"
Image2=new Image();
Image2.src=grphcs[2]="http://rainbow.arch.scriptmania.com/scripts/bg/oak4.gif"
Image3=new Image();
Image3.src=grphcs[3]="http://rainbow.arch.scriptmania.com/scripts/bg/alv.gif"
Image4=new Image();
Image4.src=grphcs[4]="http://rainbow.arch.scriptmania.com/scripts/bg/dlv.gif"
Image5=new Image();
Image5.src=grphcs[5]="http://rainbow.arch.scriptmania.com/scripts/bg/blv.gif"
Image6=new Image();
Image6.src=grphcs[6]="http://rainbow.arch.scriptmania.com/scripts/bg/oak3.gif"
Image7=new Image();
Image7.src=grphcs[7]="http://rainbow.arch.scriptmania.com/scripts/bg/oak5.gif"
//Smoothness depends on image file size,
//the smaller the size the more you can use!
// Configure below - change number of images to render
Amount=15;
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;
var Stop = false;
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(){
if (Stop) { clearLeaves(); return; }
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()',20);
}
window.onload=fall;
// ***** Delay FUNCTION HERE *****
setTimeout("Stop=true", 20000); // ***** Delay 1000 = 1 second *****
function clearLeaves(){
for (i=0; i < Amount; i++){
if (ns){
document.layers['sn'+i].display='none';
}
else if (ns6){
document.getElementById("si"+i).style.display='none';
}
else{
eval("document.all.si"+i).style.display='none';
}
}
}
//-->
</SCRIPT>
<p><font face="arial" size="-2">
Dacă tot suntem in acest sezon ( toamnă )
Daca se pune acest cod in :
P.A / AFISARE / GENERALITATI / MESAJ PE PRIMA PAGINA /
o sa vedeti niste frunze cazatoare
Merge doar in explorer ( Internet Explorer)
=========================
Un mouse frumos !!!
- Cod:
<!-- Simply copy and paste it between <BODY> and </BODY> tags -->
<script type="text/javascript">
/*
Tinkerbell Fairy Cursor Trail
Visit http://www.rainbow.arch.scriptmania.com/scripts/
*/
var trailimage=["http://rainbow.arch.scriptmania.com/scripts/tinkerbell.gif", 58, 64] // image, width, height
var ofsm=[-2,1]
if (document.getElementById || document.all)
document.write('<div id="trailimageid" style="position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></div>')
function gettrailobj(){
if (document.getElementById)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimagid.style
}
function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function followmouse(e){
var xcoord=ofsm[0]
var ycoord=ofsm[1]
if (typeof e != "undefined"){
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined"){
xcoord+=truebody().scrollLeft+event.clientX
ycoord+=truebody().scrollTop+event.clientY
}
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="none"
else
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}
document.onmousemove=followmouse
</script>
Ultima editare efectuata de catre nick in Mier 08 Oct 2008, 3:18 pm, editata de 1 ori
Re: Scripturi pentru forum
Mustrare !
Doar mai inainte ti-am spus sa dai edit.
Nu e nevoie sa faci 50 de postari daca ai 50 de coduri.
Exista functia de edit.
Te-am rugat sa nu mai folosesti CAPS LOCK.
Vorbesc de unul singur ?
DUBLU POST :
Vă reamintesc că mesajele duble / triple nu sunt acceptate decât dacă a trecut o perioadă de 24 de ore de la ultimul mesaj.
Daca vreti sa faceti o completare in ultimul post, folositi functia EDIT.
Citiți REGULAMENTUL INTERN forumgratuit.ro
=> Mustrare
Te anunt ca din cauza cumularii de mustrari, ai primit WARN 2.
Fii atent pe viitor.
Doar mai inainte ti-am spus sa dai edit.
Nu e nevoie sa faci 50 de postari daca ai 50 de coduri.
Exista functia de edit.
Te-am rugat sa nu mai folosesti CAPS LOCK.
Vorbesc de unul singur ?
DUBLU POST :
Vă reamintesc că mesajele duble / triple nu sunt acceptate decât dacă a trecut o perioadă de 24 de ore de la ultimul mesaj.
Daca vreti sa faceti o completare in ultimul post, folositi functia EDIT.
Citiți REGULAMENTUL INTERN forumgratuit.ro
=> Mustrare
Te anunt ca din cauza cumularii de mustrari, ai primit WARN 2.
Fii atent pe viitor.

Vizitato- Vizitator
Re: Scripturi pentru forum
Fireworks - Un "foc" de artificii simplu, un punct ce explodeaza intr-un numar de puncte in forma de cerc ce isi mareste diametrul.
Garantat merge in IE. Se vede bine pe forumurile cu fondul inchis ( negru )
Nu am incercat in alte browsere.
PA / AFIȘARE / PAGINA DE START - Generalități - Mesaj pe pagina de start - Continutul mesajului - Înregistrare
Garantat merge in IE. Se vede bine pe forumurile cu fondul inchis ( negru )
Nu am incercat in alte browsere.
PA / AFIȘARE / PAGINA DE START - Generalități - Mesaj pe pagina de start - Continutul mesajului - Înregistrare
- Cod:
<body bgcolor='#000000' >
<!-- Start of Fireworks -->
<script language="JavaScript">
<!-- IE4+, NS4+, NS6 Fireworks script
CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff')
CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF')
Xpos=130;
Ypos=130;
I='#00ff00';
C=0;
S=5;
H=null;
W=null;
Y=null;
NS4=(document.layers);
NS6=(document.getElementById&&!document.all);
IE4=(document.all);
A=14;
E=120;
L=null;
if (NS4){
for (i=0; i < A; i++)
document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>');
}
if (NS6){
window.document.body.style.overflow='hidden';
for (i=0; i < A; i++)
document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>');
}
if (IE4){
document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < A; i++)
document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>');
document.write('</div></div>');
}
function Fireworks(){
H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight;
W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth;
Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop;
for (i=0; i < A; i++){
if (IE4)L=iestars[i].style;
if (NS4)L=document.layers["nsstars"+i];
if (NS6)L=document.getElementById("ns6stars"+i).style;
var F = CL[Math.floor(Math.random()*CL.length)];
var RS=Math.round(Math.random()*2);
L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100)
L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100)
if (C < 110){
if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1}
if (IE4||document.getElementById)
{L.background=I;L.width=1;L.height=1;L.fontSize=1}
}
else{
if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS}
if (IE4||document.getElementById){L.background=F;L.width=RS;L.height=RS;L.fontSize=RS}
}
}
if (C > 220){
C=0;
var NC = CL2[Math.floor(Math.random()*CL2.length)];
I=NC;
E=Math.round(100+Math.random()*90);
Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y;
Xpos = E+Math.round(Math.random()*(W-(E*2.2)));
}
C+=S;
setTimeout("Fireworks()",10);
}
Fireworks();
// -->
</script>
<!-- End of Fireworks -->
Ultima editare efectuata de catre 1960 in Mar 31 Mar 2009, 9:59 pm, editata de 2 ori

Vizitato- Vizitator
Floating Top Bar
- Cod:
<head><style type="text/css">
#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: lightyellow;
width:500px;
visibility: hidden;
z-index: 100;
}
</style>
<script type="text/javascript">
/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document·cookie.length > 0) {
offset = document·cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document·cookie.indexOf(";", offset);
if (end == -1) end = document·cookie.length;
returnvalue=unescape(document·cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document·cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script></head>
<body><div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a><b>
</div></body>
P.S. Poate fi folosit pentru multe lucruri (un pic de imaginatie)
p.a/afisare/generalitati/mesaj pe prima pagina
Defilarea unui text, sau imagine/imagini, orizontal sau vertical
Deoarece nu am dorit sa tai din topicul original, unele coduri se poate sa le regasiti si in alte locuri.
Defilare simpla a unui text, orizontal :
Defilare simpla a unei imagini, orizontal ( <=> spatiu):
Defilare simpla a unei imagini, vertical (<br> <=> cu o linie mai jos):
Nu uitati sa adaugati & nbsp; ori <br > pentru a face ca imaginile sa defileze orizontal , sau vertical.
Defilare a unei imagini cu link (partener - minibanner) :
Text defilant orizontal, ce se opreste la plasarea mouselui in orice loc pe cimpul / linia in care defileaza textul :
Text defilant orizontal, ce se opreste la plasarea mouselui doar pe suprafata textului :
Imagini defilante orizontal, ce se opresc la plasarea mouselui doar pe suprafata textului :
Imagini defilante orizontal continind linkuri, ce se opresc la plasarea mouselui doar pe suprafata textului
Acum aveti posibilitatea de a "customiza" defilarea textului :
In tag-ul marquee, trebuie doar sa adaugati acest cod :
Diverse atribute de stil aveti mai jos :
:: HEIGHT sau WIDTH pentru latimea / inaltimea scroll
:: BACKGROUND-COLOR pentru modificarea background sub text
:: BACKGROUND : URL('http://URL_background_image'); BACKGROUND-ATTACHMENT: FIXED; pentru a pune o imagine fixa de background
:: COLOR pentru a schimba culoarea textului
:: FONT-SIZE pentru a schimba dimensiunea textului
:: TEXT-ALIGN ptr. a modifica alinierea textului (LEFT, RIGHT, CENTER sau JUSTIFY)
Tradus, cum m-am priceput - 1960
Defilare simpla a unui text, orizontal :
- Cod:
<marquee>TEXTUL TĂU AICI</marquee>
Defilare simpla a unei imagini, orizontal ( <=> spatiu):
- Cod:
<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):
- Cod:
<marquee direction="up"><img src="http://URL_image1"></img><br><img src="http://URL_image2"></img><br><img src="http://URL_imageN"></img></marquee>
Nu uitati sa adaugati & nbsp; ori <br > pentru a face ca imaginile sa defileze orizontal , sau vertical.
Defilare a unei imagini cu link (partener - minibanner) :
- Cod:
<marquee><a href="http://URL_link1" target="_blank"><img src="http://URL_image1"></img></a><a href="http://URL_link2" target="_blank"><img src="http://URL_image2"></img></a><a href="http://URL_linkN" target="_blank"><img src="http://URL_imageN"></img></a></marquee>
Text defilant orizontal, ce se opreste la plasarea mouselui in orice loc pe cimpul / linia in care defileaza textul :
- Cod:
<marquee onmouseover="this.stop();" onmouseout="this.start();">TEXTUL SAU IMAGINEA TA</marquee>
Text defilant orizontal, ce se opreste la plasarea mouselui doar pe suprafata textului :
- Cod:
<marquee id="id1"><span onmouseover="getElementById('id1').stop();" onmouseout="getElementById('id1').start();">TEXTUL SAU IMAGINEA TA</span></marquee>
Imagini defilante orizontal, ce se opresc la plasarea mouselui doar pe suprafata textului :
- Cod:
<marquee id="id1"><img src="http://URL_image1" onmouseover="getElementById('id1').stop();" onmouseout="getElementById('id1').start();"></img><img src="http://URL_image2" onmouseover="getElementById('id1').stop();" onmouseout="getElementById('id1').start();"></img><img src="http://URL_imageN" onmouseover="getElementById('id1').stop();" onmouseout="getElementById('id1').start();"></img></marquee>
Imagini defilante orizontal continind linkuri, ce se opresc la plasarea mouselui doar pe suprafata textului
- Cod:
<marquee id="id1"><a href="http://URL_link1" target="_blank"><img src="http://URL_image1" onmouseover="getElementById('id1').stop();" onmouseout="getElementById('id1').start();"></img></a><a href="http://URL_link2" target="_blank"><img src="http://URL_image2" onmouseover="getElementById('id1').stop();" onmouseout="getElementById('id1').start();"></img></a><a href="http://URL_linkN" target="_blank"><img src="http://URL_imageN" onmouseover="getElementById('id1').stop();" onmouseout="getElementById('id1').start();"></img></a></marquee>
Acum aveti posibilitatea de a "customiza" defilarea textului :
In tag-ul marquee, trebuie doar sa adaugati acest cod :
- Cod:
style="ATTRIBUTE of STYLE: VALUE;"
Diverse atribute de stil aveti mai jos :
:: HEIGHT sau WIDTH pentru latimea / inaltimea scroll
:: BACKGROUND-COLOR pentru modificarea background sub text
:: BACKGROUND : URL('http://URL_background_image'); BACKGROUND-ATTACHMENT: FIXED; pentru a pune o imagine fixa de background
:: COLOR pentru a schimba culoarea textului
:: FONT-SIZE pentru a schimba dimensiunea textului
:: TEXT-ALIGN ptr. a modifica alinierea textului (LEFT, RIGHT, CENTER sau JUSTIFY)
Mai sunt si alte stiluri ce pot fi aplicate, dar asta, va las sa le descoperiti singuri...
Written by the friendly SanDream
that's all folks
corrections by Katt
Tradus, cum m-am priceput - 1960
Topic preluat din:
http://help.forumotion.com/tricks-tips-f32/scrolling-tutorial-t126.htm
Va recomand, tot de acolo, si aceste tutoriale:
01. http://help.forumotion.com/tricks-tips-f32/css-tutorial-for-your-forums-t22327.htm
02. http://help.forumotion.com/tricks-tips-f32/using-css-to-full-potential-t5580.htm
Ultima editare efectuata de catre 1960 in Mar 31 Mar 2009, 10:01 pm, editata de 3 ori

Vizitato- Vizitator
Re: Scripturi pentru forum
Un text, ce se roteste in jurul mouseului.
PA / AFISARE / PAGINA DE START / Generalitati - Mesaj pe pagina de start - Continutul mesajului - Inregistrare
Atentie la dimensiunea, pasul si numarul de litere, se poate sa apara suprapuse, in acest caz trebuie sa mariti diametrul cercului, ori reduceti nr caractere in text.
Va descurcati voi, sunteti mari.
PA / AFISARE / PAGINA DE START / Generalitati - Mesaj pe pagina de start - Continutul mesajului - Inregistrare
- Cod:
<style type="text/css">
/* Circle Text Styles */
#outerCircleText {
/* Optional - DO NOT SET FONT-SIZE HERE, SET IT IN THE script */
font-style: italic;
font-weight: bold;
font-family: 'comic sans ms', verdana, arial;
color: #PLACE YOUR COLOR HERE;
/* End Optional */
/* Start Required - Do Not Edit */
position: absolute;top: 0;left: 0;z-index: 3000;cursor: default;}
#outerCircleText div {position: relative;}
#outerCircleText div div {position: absolute;top: 0;left: 0;text-align: center;}
/* End Required */
/* End Circle Text Styles */
</style>
<script type="text/javascript">
/* Circling text trail- Tim Tilton
Website: http://www.tempermedia.com/
Visit: http://www.dynamicdrive.com/ for Original Source and tons of scripts
Modified Here for more flexibility and modern browser support
Modifications as first seen in http://www.dynamicdrive.com/forums/
username:jscheuer1 - This notice must remain for legal use
*/
;(function(){
// Your message here (QUOTED STRING)
var msg = "TEXTUL DORIT";
/* THE REST OF THE EDITABLE VALUES BELOW ARE ALL UNQUOTED NUMBERS */
// Set font's style size for calculating dimensions
// Set to number of desired pixels font size (decimal and negative numbers not allowed)
var size = 10;
// Set both to 1 for plain circle, set one of them to 2 for oval
// Other numbers & decimals can have interesting effects, keep these low (0 to 3)
var circleY = 0.75; var circleX = 3;
// The larger this divisor, the smaller the spaces between letters
// (decimals allowed, not negative numbers)
var letter_spacing = 5;
// The larger this multiplier, the bigger the circle/oval
// (decimals allowed, not negative numbers, some rounding is applied)
var diameter = 10;
// Rotation speed, set it negative if you want it to spin clockwise (decimals allowed)
var rotation = 0.4;
// This is not the rotation speed, its the reaction speed, keep low!
// Set this to 1 or a decimal less than one (decimals allowed, not negative numbers)
var speed = 0.3;
////////////////////// Stop Editing //////////////////////
if (!window.addEventListener && !window.attachEvent || !document.createElement) return;
msg = msg.split('');
var n = msg.length - 1, a = Math.round(size * diameter * 0.208333), currStep = 20,
ymouse = a * circleY + 20, xmouse = a * circleX + 20, y = [], x = [], Y = [], X = [],
o = document.createElement('div'), oi = document.createElement('div'),
b = document.compatMode && document.compatMode != "BackCompat"? document.documentElement : document.body,
mouse = function(e){
e = e || window.event;
ymouse = !isNaN(e.pageY)? e.pageY : e.clientY; // y-position
xmouse = !isNaN(e.pageX)? e.pageX : e.clientX; // x-position
},
makecircle = function(){ // rotation/positioning
if(init.nopy){
o.style.top = (b || document.body).scrollTop + 'px';
o.style.left = (b || document.body).scrollLeft + 'px';
};
currStep -= rotation;
for (var d, i = n; i > -1; --i){ // makes the circle
d = document.getElementById('iemsg' + i).style;
d.top = Math.round(y[i] + a * Math.sin((currStep + i) / letter_spacing) * circleY - 15) + 'px';
d.left = Math.round(x[i] + a * Math.cos((currStep + i) / letter_spacing) * circleX) + 'px';
};
},
drag = function(){ // makes the resistance
y[0] = Y[0] += (ymouse - Y[0]) * speed;
x[0] = X[0] += (xmouse - 20 - X[0]) * speed;
for (var i = n; i > 0; --i){
y[i] = Y[i] += (y[i-1] - Y[i]) * speed;
x[i] = X[i] += (x[i-1] - X[i]) * speed;
};
makecircle();
},
init = function(){ // appends message divs, & sets initial values for positioning arrays
if(!isNaN(window.pageYOffset)){
ymouse += window.pageYOffset;
xmouse += window.pageXOffset;
} else init.nopy = true;
for (var d, i = n; i > -1; --i){
d = document.createElement('div'); d.id = 'iemsg' + i;
d.style.height = d.style.width = a + 'px';
d.appendChild(document.createTextNode(msg[i]));
oi.appendChild(d); y[i] = x[i] = Y[i] = X[i] = 0;
};
o.appendChild(oi); document.body.appendChild(o);
setInterval(drag, 25);
},
ascroll = function(){
ymouse += window.pageYOffset;
xmouse += window.pageXOffset;
window.removeEventListener('scroll', ascroll, false);
};
o.id = 'outerCircleText'; o.style.fontSize = size + 'px';
if (window.addEventListener){
window.addEventListener('load', init, false);
document.addEventListener('mouseover', mouse, false);
document.addEventListener('mousemove', mouse, false);
if (/Apple/.test(navigator.vendor))
window.addEventListener('scroll', ascroll, false);
}
else if (window.attachEvent){
window.attachEvent('onload', init);
document.attachEvent('onmousemove', mouse);
};
})();
</script>
Atentie la dimensiunea, pasul si numarul de litere, se poate sa apara suprapuse, in acest caz trebuie sa mariti diametrul cercului, ori reduceti nr caractere in text.
Va descurcati voi, sunteti mari.
Ultima editare efectuata de catre 1960 in Vin 13 Mar 2009, 9:37 am, editata de 4 ori

Vizitato- Vizitator
Re: Scripturi pentru forum
Script postat de darkspectre14
"Curcubeu" pe text
PA / AFISARE / PAGINA DE START / Generalitati - Mesaj pe pagina de start - Continutul mesajului - Inregistrare
In momentul in care treci cu cursorul peste un text ( activ ), acesta isi schimba culoarea, trecind prin toata paleta de culori.
"Curcubeu" pe text
PA / AFISARE / PAGINA DE START / Generalitati - Mesaj pe pagina de start - Continutul mesajului - Inregistrare
In momentul in care treci cu cursorul peste un text ( activ ), acesta isi schimba culoarea, trecind prin toata paleta de culori.
- Cod:
<SCRIPT LANGUAGE="JavaScript">
<!-- ;
var rate = 25;
if (document.getElementById)
window.onerror=new Function("return true")
var objActive;
var act = 0;
var elmH = 0;
var elmS = 128;
var elmV = 255;
var clrOrg;
var TimerID;
if (document.all) {
document.onmouseover = doRainbowAnchor;
document.onmouseout = stopRainbowAnchor;
}
else if (document.getElementById) {
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
document.onmouseover = Mozilla_doRainbowAnchor;
document.onmouseout = Mozilla_stopRainbowAnchor;
}
function doRainbow(obj)
{
if (act == 0) {
act = 1;
if (obj)
objActive = obj;
else
objActive = event.srcElement;
clrOrg = objActive.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
function stopRainbow()
{
if (act) {
objActive.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
function doRainbowAnchor()
{
if (act == 0) {
var obj = event.srcElement;
while (obj.tagName != 'A' && obj.tagName != 'BODY') {
obj = obj.parentElement;
if (obj.tagName == 'A' || obj.tagName == 'BODY')
break;
}
if (obj.tagName == 'A' && obj.href != '') {
objActive = obj;
act = 1;
clrOrg = objActive.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
}
function stopRainbowAnchor()
{
if (act) {
if (objActive.tagName == 'A') {
objActive.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
}
function Mozilla_doRainbowAnchor(e)
{
if (act == 0) {
obj = e.target;
while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
obj = obj.parentNode;
if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
break;
}
if (obj.nodeName == 'A' && obj.href != '') {
objActive = obj;
act = 1;
clrOrg = obj.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
}
function Mozilla_stopRainbowAnchor(e)
{
if (act) {
if (objActive.nodeName == 'A') {
objActive.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
}
function ChangeColor()
{
objActive.style.color = makeColor();
}
function makeColor()
{
if (elmS == 0) {
elmR = elmV; elmG = elmV; elmB = elmV;
}
else {
t1 = elmV;
t2 = (255 - elmS) * elmV / 255;
t3 = elmH % 60;
t3 = (t1 - t2) * t3 / 60;
if (elmH < 60) {
elmR = t1; elmB = t2; elmG = t2 + t3;
}
else if (elmH < 120) {
elmG = t1; elmB = t2; elmR = t1 - t3;
}
else if (elmH < 180) {
elmG = t1; elmR = t2; elmB = t2 + t3;
}
else if (elmH < 240) {
elmB = t1; elmR = t2; elmG = t1 - t3;
}
else if (elmH < 300) {
elmB = t1; elmG = t2; elmR = t2 + t3;
}
else if (elmH < 360) {
elmR = t1; elmG = t2; elmB = t1 - t3;
}
else {
elmR = 0; elmG = 0; elmB = 0;
}
}
elmR = Math.floor(elmR).toString(16);
elmG = Math.floor(elmG).toString(16);
elmB = Math.floor(elmB).toString(16);
if (elmR.length == 1) elmR = "0" + elmR;
if (elmG.length == 1) elmG = "0" + elmG;
if (elmB.length == 1) elmB = "0" + elmB;
elmH = elmH + rate;
if (elmH >= 360)
elmH = 0;
return '#' + elmR + elmG + elmB;
}
// end hide -->
</SCRIPT>
Ultima editare efectuata de catre 1960 in Mar 31 Mar 2009, 10:03 pm, editata de 2 ori

Vizitato- Vizitator
Re: Scripturi pentru forum
- Cod:
<head><style type="text/css">
#topbar{
position:absolute;
border: 5px solid black;
padding: 13px;
background-color: lightyellow;
width:100px;
visibility: hidden;
z-index: 130;
}
</style>
<script type="text/javascript">
/***********************************************
* Floating menu script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY =20 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document·cookie.length > 0) {
offset = document·cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document·cookie.indexOf(";", offset);
if (end == -1) end = document·cookie.length;
returnvalue=unescape(document·cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document·cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script></head>
<body><div id="topbar">
<a href="" onClick="closebar(); return false"><img src="http://i31.servimg.com/u/f31/11/80/60/47/ico10.png" border="0" /></a><b>
<center><font size="5"><font color="red">Meniu</font></font></center>
<a href="link"><B><font size="3">cum vrei sa apara</font></B></a><br>
<a href="link"><B><font size="3">cum vrei sa apara</font></B></a><br>
<a href="link"><B><font size="3">cum vrei sa apara</font></B></a><br>
<a href="link"><B><font size="3">cum vrei sa apara</font></B></a><br>
<a href="link"><B><font size="3">cum vrei sa apara</font></B></a><br>
<a href="link"><b><font size="3">cum vrei sa apara</font></b></a><br>
</a>
</div></body>
Floating meniu
este incercat pe internet explorer si mozilla
p.a/afisare/generalitati/mesaj pe prima pagina
Re: Scripturi pentru forum
- Cod:
.online {
background-image: url("Url de la imagen");
background-position: left 0;
background-repeat: no-repeat;
}
Acest cod permite schimbarea imaginii Online in alta parte a forumului.Se pune in PA=>Afisare=>Culori=>Foaie de stil CSS.

Lizzard- Veteran Forumgratuit

- Numarul mesajelor: 10191
Varsta: 21
Localizare: Pitesti
Data de inscriere: 22/05/2008

Re: Scripturi pentru forum
Un script de ninsoare, viscolita
PA / AFISARE / PAGINA DE START / Generalitati - Mesaj pe pagina de start - Continutul mesajului - Inregistrare
PA / AFISARE / PAGINA DE START / Generalitati - Mesaj pe pagina de start - Continutul mesajului - Inregistrare
- Cod:
<script>
<!--
var snowStorm = null;
function SnowStorm() {
// PROPERTIES
// ------------------
var imagePath = 'http://stargagicu.t35.com/snow/'; // relative path to snow images (including trailing slash)
var flakesMax = 128;
var flakesMaxActive = 64;
var vMaxX = 8;
var vMaxY = 4;
var usePNG = true;
var flakeBottom = null; // Integer for fixed bottom, 0 or null for "full-screen" snow effect
var snowStick = true;
var snowCollect = false;
var targetElement = null; // element which snow will be appended to (document body if undefined)
var followMouse = true;
var flakeTypes = 6;
var flakeWidth = 5;
var flakeHeight = 5;
// ------------------
var zIndex = 0; // CSS stacking order applied to each snowflake
var flakeLeftOffset = 0; // amount to subtract from edges of container
var flakeRightOffset = 0; // amount to subtract from edges of container
// --- End of user section ---
var addEvent = function(o,evtName,evtHandler) {
typeof(attachEvent)=='undefined'?o.addEventListener(evtName,evtHandler,false):o.attachEvent('on'+evtName,evtHandler);
}
var removeEvent = function(o,evtName,evtHandler) {
typeof(attachEvent)=='undefined'?o.removeEventListener(evtName,evtHandler,false):o.detachEvent('on'+evtName,evtHandler);
}
var classContains = function(o,cStr) {
return (typeof(o.className)!='undefined'?o.className.indexOf(cStr)+1:false);
}
var s = this;
var storm = this;
this.timers = [];
this.flakes = [];
this.disabled = false;
this.terrain = [];
this.active = false;
var isIE = navigator.userAgent.match(/msie/i);
var isIE6 = navigator.userAgent.match(/msie 6/i);
var isOldIE = (isIE && (isIE6 || navigator.userAgent.match(/msie 5/i)));
var isWin9X = navigator.appVersion.match(/windows 98/i);
var isiPhone = navigator.userAgent.match(/iphone/i);
var isOpera = navigator.userAgent.match(/opera/i);
if (isOpera) isIE = false; // Opera (which may be sneaky, pretending to be IE by default)
var screenX = null;
var screenX2 = null;
var screenY = null;
var scrollY = null;
var vRndX = null;
var vRndY = null;
var windOffset = 1;
var windMultiplier = 2;
var pngSupported = (!isIE || (isIE && !isIE6 && !isOldIE)); // IE <7 doesn't do PNG nicely without crap filters
var docFrag = document.createDocumentFragment();
this.oControl = null; // toggle element
if (flakeLeftOffset == null) flakeLeftOffset = 0;
if (flakeRightOffset == null) flakeRightOffset = 0;
function rnd(n,min) {
if (isNaN(min)) min = 0;
return (Math.random()*n)+min;
}
this.randomizeWind = function() {
vRndX = plusMinus(rnd(vMaxX,0.2));
vRndY = rnd(vMaxY,0.2);
if (this.flakes) {
for (var i=0; i<this.flakes.length; i++) {
if (this.flakes[i].active) this.flakes[i].setVelocities();
}
}
}
function plusMinus(n) {
return (parseInt(rnd(2))==1?n*-1:n);
}
this.scrollHandler = function() {
// "attach" snowflakes to bottom of window if no absolute bottom value was given
scrollY = (flakeBottom?0:parseInt(window.scrollY||document.documentElement.scrollTop||document.body.scrollTop));
if (isNaN(scrollY)) scrollY = 0; // Netscape 6 scroll fix
if (!flakeBottom && s.flakes) {
for (var i=0; i<s.flakes.length; i++) {
if (s.flakes[i].active == 0) s.flakes[i].stick();
}
}
}
this.resizeHandler = function() {
if (window.innerWidth || window.innerHeight) {
screenX = window.innerWidth-(!isIE?16:2)-flakeRightOffset;
screenY = (flakeBottom?flakeBottom:window.innerHeight);
} else {
screenX = (document.documentElement.clientWidth||document.body.clientWidth||document.body.scrollWidth)-(!isIE?8:0)-flakeRightOffset;
screenY = flakeBottom?flakeBottom:(document.documentElement.clientHeight||document.body.clientHeight||document.body.scrollHeight);
}
screenX2 = parseInt(screenX/2);
}
this.resizeHandlerAlt = function() {
screenX = targetElement.offsetLeft+targetElement.offsetWidth-flakeRightOffset;
screenY = flakeBottom?flakeBottom:targetElement.offsetTop+targetElement.offsetHeight;
screenX2 = parseInt(screenX/2);
}
this.freeze = function() {
// pause animation
if (!s.disabled) {
s.disabled = 1;
} else {
return false;
}
for (var i=0; i<s.timers.length; i++) {
clearInterval(s.timers[i]);
}
}
this.resume = function() {
if (s.disabled) {
s.disabled = 0;
} else {
return false;
}
s.timerInit();
}
this.toggleSnow = function() {
if (!s.flakes.length) {
// first run
s.start();
s.setControlActive(true);
} else {
s.active = !s.active;
if (s.active) {
s.show();
s.resume();
s.setControlActive(true);
} else {
s.stop();
s.freeze();
s.setControlActive(false);
}
}
}
this.setControlActive = function(bActive) {
// Y.D[(bActive?'addClass':'removeClass')](s.oControl,'active');
}
this.stop = function() {
this.freeze();
for (var i=this.flakes.length; i--;) {
this.flakes[i].o.style.display = 'none';
}
removeEvent(window,'scroll',s.scrollHandler);
removeEvent(window,'resize',s.resizeHandler);
if (!isIE) {
removeEvent(window,'blur',s.freeze);
removeEvent(window,'focus',s.resume);
}
// removeEventHandler(window,'resize',this.resizeHandler,false);
}
this.show = function() {
for (var i=this.flakes.length; i--;) {
this.flakes[i].o.style.display = 'block';
}
}
this.SnowFlake = function(parent,type,x,y) {
var s = this;
var storm = parent;
this.type = type;
this.x = x||parseInt(rnd(screenX-20));
this.y = (!isNaN(y)?y:-rnd(screenY)-12);
this.vX = null;
this.vY = null;
this.vAmpTypes = [2.0,1.0,1.25,1.0,1.5,1.75]; // "amplification" for vX/vY (based on flake size/type)
this.vAmp = this.vAmpTypes[this.type];
this.active = 1;
this.o = document.createElement('img');
this.o.style.position = 'absolute';
this.o.style.width = flakeWidth+'px';
this.o.style.height = flakeHeight+'px';
this.o.style.fontSize = '1px'; // so IE keeps proper size
this.o.style.zIndex = zIndex;
this.o.src = imagePath+this.type+(pngSupported && usePNG?'.png':'.gif');
docFrag.appendChild(this.o);
this.refresh = function() {
s.o.style.left = s.x+'px';
s.o.style.top = s.y+'px';
}
this.stick = function() {
if (isIE6 || isiPhone || (targetElement != document.documentElement && targetElement != document.body)) {
s.o.style.top = (screenY+scrollY-flakeHeight-storm.terrain[Math.floor(s.x)])+'px';
} else {
s.o.style.display = 'none';
s.o.style.top = 'auto';
s.o.style.bottom = '0px';
s.o.style.position = 'fixed';
s.o.style.display = 'block';
}
}
this.vCheck = function() {
if (s.vX>=0 && s.vX<0.2) {
s.vX = 0.2;
} else if (s.vX<0 && s.vX>-0.2) {
s.vX = -0.2;
}
if (s.vY>=0 && s.vY<0.2) {
s.vY = 0.2;
}
}
this.move = function() {
s.x += s.vX*windOffset;
s.y += (s.vY*s.vAmp);
s.refresh();
if (s.vX && screenX-s.x<flakeWidth+(s.vX*windOffset)) { // X-axis scroll check
s.x = 0;
} else if ((s.vX<0 || windOffset<0)&& s.x-flakeLeftOffset<0-flakeWidth) {
s.x = screenX-flakeWidth; // flakeWidth;
}
var yDiff = screenY+scrollY-s.y-storm.terrain[Math.floor(s.x)];
if (yDiff<flakeHeight) {
s.active = 0;
if (snowCollect && snowStick) {
var height = [0.75,1.5,0.75];
for (var i=0; i<2; i++) {
storm.terrain[Math.floor(s.x)+i+2] += height[i];
}
}
s.o.style.left = (s.x/screenX*100)+'%'; // set "relative" left (change with resize)
if (!flakeBottom) {
if (snowStick) {
s.stick();
} else {
s.recycle();
}
}
}
}
this.animate = function() {
// main animation loop
// move, check status, die etc.
s.move();
}
this.setVelocities = function() {
s.vX = vRndX+rnd(vMaxX*0.12,0.1);
s.vY = vRndY+rnd(vMaxY*0.12,0.1);
}
this.recycle = function() {
s.o.style.display = 'none';
s.o.style.position = 'absolute';
s.o.style.bottom = 'auto';
s.setVelocities();
s.vCheck();
s.x = parseInt(rnd(screenX-flakeWidth-20));
s.y = parseInt(rnd(screenY)*-1)-flakeHeight;
s.o.style.left = s.x+'px';
s.o.style.top = s.y+'px';
s.o.style.display = 'block';
s.active = 1;
}
this.recycle(); // set up x/y coords etc.
this.refresh();
}
this.snow = function() {
var active = 0;
var used = 0;
var waiting = 0;
for (var i=s.flakes.length; i--;) {
if (s.flakes[i].active == 1) {
s.flakes[i].move();
active++;
} else if (s.flakes[i].active == 0) {
used++;
} else {
waiting++;
}
}
if (snowCollect && !waiting) { // !active && !waiting
// create another batch of snow
s.createSnow(flakesMaxActive,true);
}
if (active<flakesMaxActive) {
with (s.flakes[parseInt(rnd(s.flakes.length))]) {
if (!snowCollect && active == 0) {
recycle();
} else if (active == -1) {
active = 1;
}
}
}
}
this.mouseMove = function(e) {
if (!followMouse) return true;
var x = parseInt(e.clientX);
if (x<screenX2) {
windOffset = -windMultiplier+(x/screenX2*windMultiplier);
} else {
x -= screenX2;
windOffset = (x/screenX2)*windMultiplier;
}
}
this.createSnow = function(limit,allowInactive) {
for (var i=0; i<limit; i++) {
s.flakes[s.flakes.length] = new s.SnowFlake(s,parseInt(rnd(flakeTypes)));
if (allowInactive || i>flakesMaxActive) s.flakes[s.flakes.length-1].active = -1;
}
targetElement.appendChild(docFrag);
}
this.timerInit = function() {
s.timers = (!isWin9X?[setInterval(s.snow,20)]:[setInterval(s.snow,75),setInterval(s.snow,25)]);
}
this.init = function() {
for (var i=0; i<2048; i++) {
s.terrain[i] = 0;
}
s.randomizeWind();
s.createSnow(snowCollect?flakesMaxActive:flakesMaxActive*2); // create initial batch
addEvent(window,'resize',s.resizeHandler);
addEvent(window,'scroll',s.scrollHandler);
if (!isIE) {
addEvent(window,'blur',s.freeze);
addEvent(window,'focus',s.resume);
}
s.resizeHandler();
s.scrollHandler();
if (followMouse) {
addEvent(document,'mousemove',s.mouseMove);
}
s.timerInit();
}
var didInit = false;
this.start = function(bFromOnLoad) {
if (!didInit) {
didInit = true;
} else if (bFromOnLoad) {
// already loaded and running
return true;
}
if (typeof targetElement == 'string') {
targetElement = document.getElementById(targetElement);
if (!targetElement) throw new Error('Snowstorm: Unable to get targetElement');
}
if (!targetElement) {
targetElement = (!isIE?(document.documentElement?document.documentElement:document.body):document.body);
}
if (targetElement != document.documentElement && targetElement != document.body) s.resizeHandler = s.resizeHandlerAlt; // re-map handler to get element instead of screen dimensions
s.resizeHandler(); // get bounding box elements
if (screenX && screenY && !s.disabled) {
s.init();
s.active = true;
}
}
if (document.addEventListener) {
// safari 3.0.4 doesn't do DOMContentLoaded, maybe others - use a fallback to be safe.
document.addEventListener('DOMContentLoaded',function(){s.start(true)},false);
window.addEventListener('load',function(){s.start(true)},false);
} else {
addEvent(window,'load',function(){s.start(true)});
}
}
snowStorm = new SnowStorm();
// -->
</script>
Ultima editare efectuata de catre 1960 in Mar 31 Mar 2009, 10:04 pm, editata de 2 ori

Vizitato- Vizitator
Scripturi CSS pentru INVISION
Cateva scripturi CSS pentru Invision
Pe acestea le puneti in:
P.A=>Afișare=>Imagini si culori=>Culori=>Foaie de stil CSS:

1.Pentru schimbarea culorii de mouseover de la meniu(adica culoarea care apare cand muti cursorul pe un meniu)
2.Pentru schimbarea fundalului de la logo-ul forumului
3.Pentru schimbarea acestei imagini:
:
.Schimbati acel link sau pastrati actuala imagine.
4.Pentru schimbarea imaginei care reprezinta profilul:
:
5.Pentru ascuderea link-urilor:Mesaje noiMesajele propriiMesaje la care nu s-a raspuns
6.Pentru schimbarea imaginilor +&-:
Pe acestea le puneti in:
P.A=>Afișare=>Imagini si culori=>Culori=>Foaie de stil CSS:

1.Pentru schimbarea culorii de mouseover de la meniu(adica culoarea care apare cand muti cursorul pe un meniu)
- Cod:
#submenu ul li a:hover {
background-color: #FFFFFF;
}
2.Pentru schimbarea fundalului de la logo-ul forumului
- Cod:
div#logostrip {
min-height: 68px;
background-image: url('http://i79.servimg.com/u/f79/13/19/48/88/zzzz11.png');
background-repeat: repeat-x;
text-align: left;
}
3.Pentru schimbarea acestei imagini:
:- Cod:
#navstrip li.begin {
padding-left: 15px;
background: url('http://i79.servimg.com/u/f79/13/19/48/88/ds10.png') no-repeat left 50%;
}
.Schimbati acel link sau pastrati actuala imagine.4.Pentru schimbarea imaginei care reprezinta profilul:
- Cod:
.popupmenu .avatar {
float: right;
margin: 5px;
width: 50px;
height: 50px;
background: url('LINK IMAGINE') no-repeat;
}
5.Pentru ascuderea link-urilor:Mesaje noiMesajele propriiMesaje la care nu s-a raspuns
- Cod:
#userlinks{
display:none;
}
6.Pentru schimbarea imaginilor +&-:
- Cod:
div.maintitle .expand,div.maintitle .contract {
float: right;
width: 10px;
height: 10px;
background: url('LINK IMAGINE PLUS') no-repeat 50% 50%;
cursor: pointer;
}
div.maintitle .expand {
background: url('LINK IMAGINE MINUS') no-repeat 50% 50%;
}
Pagina 1 din 6 • 1, 2, 3, 4, 5, 6 
Subiecte similare» Primul ghid util pentru a supravietui pe forum
» Scripturi in notepad Batch.Vbs
» Descarcati jocuri pentru linux
» Important pentru toti membrii!!!
» Top 5 Free CD, DVD software de ardere pentru Windo
» Scripturi in notepad Batch.Vbs
» Descarcati jocuri pentru linux
» Important pentru toti membrii!!!
» Top 5 Free CD, DVD software de ardere pentru Windo
Pagina 1 din 6
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum

Acasa

Scris de ZERO la data de Mier 19 Dec 2007, 6:01 pm


Am pierdut parola!
Acces direct

Devino fan Forumgratuit
» WeBB Skin
» [Cerere] Ranguri Urgente
» Felicitari!
» Posibilitatea de a contacta un administrator fara a posta
» Rank-uri roșii "Glossy"
» Problema profil
» vizite in chenar
» Cum fac legenda ca in imagine. !
» Legenda și utilizatorii înregistrați în josul paginii ( phpBB2 )
» Felicitari pentru L!
» Modificare profil, apar 2 butoane
» Bannere si anunturi publicitare pe forumul dvs.
» Cum pot sa fac la casuta de cautare asa
» Chenar informatii profil colturi rotunde
» Inaltime module mai mici
» problema membri noi inregistrati.
» Informatii sectiune in tabel phpBB3
» Cum pun poza inaintea unui grup
» avatar pe Profil [ nu apare ca sa pot schimba avataru]
» Cum puteti crea un slider elegant (tip acordeon)
» modificare profil nume sus rang jos
» Departare link-uri meniu superior
» cum pun sub forumurile in felul urmator ?
» Cum pun un mini-banner?
» Cerere Rang Forum
» din: Cum pot sa fac la casuta de cautare asa
» Cerere tema MineCraft
» graph-kawaii
» Cum fac ca in prima categorie?