Scripturi pentru forum

Pagina 1 din 4 1, 2, 3, 4  Urmatorul

Vezi subiectul anterior Vezi subiectul urmator In jos

Scripturi pentru forum

Mesaj Scris de ZERO la data de Mier 19 Dec - 18:01

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 -->

ZERO
Membru Forumgratuit

masculin

Mesaje : 60
Varsta : 26
Localizare : Bucuresti
Data de inscriere : 19/12/2007
Multumiri : 0
Niciun avertisment

http://cstrike.one-forum.net

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Joi 1 Mai - 18:25

Invitatii prieteni


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

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Scripturi pentru forum

Mesaj Scris de ezlidor la data de Dum 11 Mai - 18:50

Prima litera mai mare

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>

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Dum 11 Mai - 23:19

Script form



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

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Joi 15 Mai - 22:29

Icoana suprapusa peste forum
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>


ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Tabel

Mesaj Scris de Alexel la data de Vin 16 Mai - 20:10

Am vazut ca multi nu stiti sa faceti tabele pentru o lista de servere de cs sau alt joc...

Urmariti acest cod...

Cod:

<b><center><br><br><table border="2">
<tr>
<th>&nbsp;&nbsp;Nr&nbsp;&nbsp;</th>
<th>&nbsp;&nbsp;Adresa&nbsp;&nbsp;</th>
<th>&nbsp;&nbsp;Port&nbsp;&nbsp;</th>
<th>&nbsp;&nbsp;Mod&nbsp;&nbsp;</th>
<th>&nbsp;&nbsp;Players&nbsp;&nbsp;</th>
<th>&nbsp;&nbsp;Tara&nbsp;&nbsp;</th>

</tr>
<tr>
<td>1.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

</tr>
<tr>
<td>2.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>3.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>4.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>5.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>6.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>7.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>8.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>9.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
<tr>
<td>10.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>11.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>12.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>13.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>14.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>15.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>16.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>17.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>18.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>19.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>

<tr>
<td>20.</td>
<td> &nbsp; </td>      <!!!Adresa!!!!>
<td>&nbsp;</td>        <!!!Portul!!!>
<td>&nbsp;</td>        <!!!Modul!!!>
<td>&nbsp;</td>        <!!!Jucatori maxim!!!>
<td>RO</td>
</tr>
</table>

Sper sa va fie de ajutor....,acest cod se poate folosi si la alte lucruri...A face cu ochiul

Alexel
Membru Forumgratuit

masculin

Mesaje : 103
Varsta : 22
Data de inscriere : 05/01/2008
Multumiri : 0
1 avertisment

http://counter-strike.lightbb.com

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Sam 24 Mai - 15:34

TExt in derulare ...


sageata arata sensul de defilare a textului

Cod:
<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

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Joi 19 Iun - 10:35

Inca mai caut un script cu buton de redirectionare ... vezi daca esti multumit de acesta:



Cod:
<html>
<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 - 12:52, editata de 1 ori

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Dum 24 Aug - 1:52

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

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

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Joi 18 Sept - 0:57

Imi cer scuze daca voi crea dublu, triplu post ... dar scripturile sunt prea lungi pentru a incapea intr-un singur mesaj




SCRIS DE ELLA:

Cod:
<a href="http://smg.photobucket.com/albums/v280/katnapper/Backgrounds/?action=view&current=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 - 1:01, editata de 1 ori

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Joi 18 Sept - 0:59

SCRIS DE LUCKY13


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>

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de darkspectre la data de Lun 22 Sept - 20:34

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:
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 - 10:47, editata de 2 ori

darkspectre
Membru activ

masculin

Mesaje : 2549
Varsta : 106
Localizare : auf mein land
Data de inscriere : 29/04/2008
Multumiri : 2
Niciun avertisment

http://www.fg-coding.net

Sus In jos

fulgi de zapada

Mesaj Scris de nick la data de Mier 8 Oct - 12:42

Acest cod merge doar cu Internet Explorer

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 8 Oct - 12:52, editata de 1 ori

nick
Membru onorific
Membru onorific

masculin

Mesaje : 1936
Varsta : 36
Data de inscriere : 01/08/2008
Multumiri : 0
Niciun avertisment

http://forumulandrei.com/

Sus In jos

FRUNZE CAZATOARE

Mesaj Scris de nick la data de Mier 8 Oct - 12:54

Aceste 2 coduri merg doar cu Internet Explorer


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 8 Oct - 15:18, editata de 1 ori

nick
Membru onorific
Membru onorific

masculin

Mesaje : 1936
Varsta : 36
Data de inscriere : 01/08/2008
Multumiri : 0
Niciun avertisment

http://forumulandrei.com/

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de Vizitato la data de Joi 9 Oct - 9:25

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

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 - 21:59, editata de 2 ori

Vizitato
Vizitator


Sus In jos

Floating Top Bar

Mesaj Scris de nick la data de Sam 8 Noi - 21:25

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- &copy; 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) Fericit

p.a/afisare/generalitati/mesaj pe prima pagina

nick
Membru onorific
Membru onorific

masculin

Mesaje : 1936
Varsta : 36
Data de inscriere : 01/08/2008
Multumiri : 0
Niciun avertisment

http://forumulandrei.com/

Sus In jos

Defilarea unui text, sau imagine/imagini, orizontal sau vertical

Mesaj Scris de Vizitato la data de Mier 12 Noi - 7:25

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 :
Cod:
<marquee>TEXTUL TĂU AICI</marquee>

Defilare simpla a unei imagini, orizontal (&nbsp; <=> 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



Ultima editare efectuata de catre 1960 in Mar 31 Mar - 22:01, editata de 3 ori

Vizitato
Vizitator


Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de Vizitato la data de Lun 1 Dec - 14:21

Un text, ce se roteste in jurul mouseului.


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 - 9:37, editata de 4 ori

Vizitato
Vizitator


Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de nick la data de Mar 16 Dec - 15:26

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

nick
Membru onorific
Membru onorific

masculin

Mesaje : 1936
Varsta : 36
Data de inscriere : 01/08/2008
Multumiri : 0
Niciun avertisment

http://forumulandrei.com/

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de Vizitato la data de Mar 23 Dec - 10:40

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.

Vizitato
Vizitator


Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de Vizitato la data de Joi 25 Dec - 9:07

Un script de ninsoare, viscolita
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 - 22:04, editata de 2 ori

Vizitato
Vizitator


Sus In jos

Scripturi CSS pentru INVISION

Mesaj Scris de darkspectre la data de Dum 28 Dec - 15:40

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)
Cod:
#submenu ul li a:hover {
   background-color: #FFFFFF;
   }
Schimbati #FFFFFF cu codul culorii dumneavoastra.

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;
   }
In codul de mai sus se afla un exemplu de imagine.Schimbati link-ul cu imaginea dumneavoastra sau pastrati respectiva imagine.

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%;
   }
In cod se afla link-ul imaginii:.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;
   }
Schimbati LINK IMAGINE cu linku-ul imaginei dumneavoastra.

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%;
   }
Inlocuiti ,,LINK IMAGINE PLUS'' si ,,LINK IMAGINE MINUS'' cu link-urile imaginilor dumneavoastra cu + si -.

darkspectre
Membru activ

masculin

Mesaje : 2549
Varsta : 106
Localizare : auf mein land
Data de inscriere : 29/04/2008
Multumiri : 2
Niciun avertisment

http://www.fg-coding.net

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de Vizitato la data de Joi 15 Ian - 21:11

Cod:
<HEAD>
<script LANGUAGE="JavaScript">
var sourisX, sourisY;
var flag = 0;
var posX = new Array();
var posY = new Array();
var isNetscape4 = (document.layers) ? true : false;
var isNetscape6 = !document.all && document.getElementById;
var isNetscape = isNetscape4 || isNetscape6;

var nb_point;
var hauteur = new Array();
var largeur = new Array();
var sens = new Array();
var nb_fois;
var compteur;
var origineY;
function initTrailer(caractere,police,taille,nombre,duree) {
nb_point = nombre;
nb_fois = duree/20;
document.write("<style type=text/css>");
document.write(".styleTrailer {VISIBILITY: hidden;");
document.write("FONT-SIZE: "+taille+"px;");
document.write("FONT-FAMILY: "+police+"; POSITION: absolute;}");
document.write("</style>");
for (i=0; i<nb_point; i++) {
document.write("<SPAN ID='calque"+i+"' CLASS='styleTrailer'>");
document.write(caractere+"</SPAN>")
}
if (isNetscape6)
document.addEventListener("mousedown",gestionSouris,true);
else {
if (isNetscape4)
document.captureEvents(Event.CLICK);
document.onmousedown = gestionSouris;
}
animationTrailer();
}
function gestionSouris(evenement) {
if (isNetscape) {
sourisX = evenement.pageX;
sourisY = evenement.pageY;
}
else {
sourisX = event.clientX + document.body.scrollLeft;
sourisY = event.clientY + document.body.scrollTop;
}
if (flag == 0) {
for (i=0; i<nb_point; i++) {
couleur = "#"+((Math.random()>.5) ? "FF" : "80")
couleur += ((Math.random()>.5) ? "FF" : "80");
couleur += ((Math.random()>.5) ? "FF" : "80");
if (isNetscape4)
eval('document.layers["calque'+i+'"].color = "'+couleur+'";');
else if (isNetscape6)
eval('document.getElementById("calque'+i+'").style.color = "'+couleur+'";');
else
eval('document.all.calque'+i+'.style.color = "'+couleur+'";');
sens[i] = (Math.random()>.5) ? -1 : 1;
largeur[i] = Math.random()*1.5;
hauteur[i] = Math.random()*2+1;
posX[i] = sourisX;
posY[i] = sourisY;
visibilidad("calque"+i,true);
}
compteur = nb_fois;
origineY = sourisY;
flag = 1;
}
}
function animationTrailer() {
if (flag == 1) {
for (i=0; i<nb_point; i++) {
posX[i] = posX[i] + sens[i]*largeur[i];
posY[i] = origineY + hauteur[i]*((nb_fois-compteur-30)*(nb_fois-compteur-30)/30-30);
}
compteur--;
for (i=0; i<nb_point; i++) {
if (isNetscape4) {
var calque = eval("document.calque"+i);
calque.left = posX[i];
calque.top = posY[i];
}
else if (isNetscape6) {
var calque = eval("document.getElementById('calque"+i+"').style");
calque.left = posX[i];
calque.top = posY[i];
}
else {
var calque = eval("calque"+(i)+".style");
calque.posLeft = posX[i];
calque.posTop = posY[i];
}
}
if (compteur == 0) {
for (i=0; i<nb_point; i++)
visibilidad("calque"+i,false);
flag = 0;
}
}

setTimeout("animationTrailer()",20);
}
function visibilidad(calque,etat) {
if (etat == false)
etat = (isNetscape4) ? "hide" : "hidden";
else
etat = "visible";
if (isNetscape4)
eval('document.layers["'+calque+'"].visibility = "'+etat+'";');
else if (isNetscape6)
eval('document.getElementById("'+calque+'").style.visibility = "'+etat+'";');
else
eval('document.all.'+calque+'.style.visibility = "'+etat+'";');
}
</script>
</HEAD>
<script LANGUAGE=JavaScript>
</script>
</HEAD>
<BODY BGCOLOR="#ffffff">
<Font size=3, color='White'>Haz click para ejecutar el script</font>
<script LANGUAGE=JavaScript>{
initTrailer("TEXT-UL CARE VRETI SA APARA", "Arial", 25, 20, 1900);
}
</script>
</BODY>

Acest cod face ca atunci cand dati click in forum , va va aparea ca un fel de confeti cu textul dorit.
Se pune in:PA=>Afisare=>Pagina de start=>Mesaj pe pagina de start.

Vizitato
Vizitator


Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de crysty97 la data de Dum 18 Ian - 22:07

Script pentru parteneri

Cod:
<a href="LINK-UL PARTENERULUI" target="_blank"><img src="LINK IMAGINE (BANNER) " border="0"></a>

*** cod modificat de ezlidor. Motiv: eliminarea unor optiuni inutile

crysty97
Membru Forumgratuit

masculin

Mesaje : 64
Varsta : 23
Localizare : roManiA
Data de inscriere : 18/01/2009
Multumiri : 0
Niciun avertisment

http://www.ak47-forum.forumz.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de ezlidor la data de Vin 23 Ian - 5:02

Count up - Contor care arata cate zile a trecut de la un anumit eveniment

Cod:
<html>
<head>
<title>CountUp Script</title>
<script type="text/javascript">
function showElapsedTime()
{
// Description:
// This is a countup script from a specific date in the past.
// It shows the days, hours, minutes and seconds that have elapsed since the start date.
// For added effect, the elapsed time is updated each second.
//
// Set the starting date details.
var startYear = 2007;
var startMonth = 11; // must be between 0 - 11
var startDay = 21; // must be between 1 - 31
var startHour = 0; // must be between 0 - 23
var startMinute = 0; // must be between 0 - 59
var startSecond = 0; // must be between 0 - 59
var startDate = new Date();
startDate.setYear(startYear);
startDate.setMonth(startMonth);
startDate.setDate(startDay);
startDate.setHours(startHour);
startDate.setMinutes(startMinute);
startDate.setSeconds(startSecond);
var rightNow = new Date();
var elapsedTime = rightNow.getTime() - startDate.getTime();
var one_day=1000*60*60*24;
var elapsedDays = Math.floor( elapsedTime / one_day );
var milliSecondsRemaining = elapsedTime % one_day;
var one_hour = 1000*60*60;
var elapsedHours = Math.floor(milliSecondsRemaining / one_hour );
milliSecondsRemaining = milliSecondsRemaining % one_hour;
var one_minute = 1000*60;
var elapsedMinutes = Math.floor(milliSecondsRemaining / one_minute );
milliSecondsRemaining = milliSecondsRemaining % one_minute;
var one_second = 1000;
var elapsedSeconds = Math.round(milliSecondsRemaining / one_second);
document.getElementById('elapsedTime').innerHTML = elapsedDays + " Days " + elapsedHours + " Hours " + elapsedMinutes + " Minutes " + elapsedSeconds + " Seconds";
t = setTimeout('showElapsedTime()',1000);
}
</script>
</head>
<body onload="showElapsedTime()">
<div id="elapsedTime"></div>
</body>
</html>






Lick care te duce pe pagina anterioara:

Cod:
<a href="javascript:history.go(-1)" onMouseOver="self.status=document.referrer;return true">BACK</a>

ezlidor
Membru onorific
Membru onorific

masculin

Mesaje : 4140
Varsta : 27
Localizare : Iasi
Data de inscriere : 07/02/2008
Multumiri : 8
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de darkspectre la data de Dum 25 Ian - 17:07

Pentru cei ce au probleme cu codul de la Google Adsense,mai exact pentru cei ce nu pot pune codul acela intr-un widget.
1.Va faceti cont pe google(si cred ca si pe google adsense),selectati AdSense pentru Conținut,completati toate chestiunele(optiuni pentru ajustarea casetei cu reclame care va va aparea pe forum).
2.Copiat codul primit,ducetiva in:P.A=>Module=>HTML=>Administrare pagini HTML=>Creaza o noua pagina HTML,si da-ti paste la cod in acea caseta.
Dupa crearea acestei pagini HTML va duceti in Administrare pagini HTML(P.A=>Module=>HTML=>Administrare pagini HTML) unde va va aparea pg. html creata si link-ul acesteia:

Copiati acel link.
3.Amplasati acel link in urmatorul cod:
Cod:
<iframe width="LATIME" height="INALTIME" src="LINK CATRE PAGINA HTML IN CARE ATI PLASAT CODUL DE LA GOOGLE ADSENSE" frameborder="0" scrolling="no" allowTransparency="0"></iframe>
4.!!!Schimbati latimea/inaltimea din cod cu latimea/inaltimea pe care ati ales-o la reclamele dumneavoastra.!!!(daca reclamele inca sunt destul de mici mai adaugati la latimea/inaltimea)
5.Puneti codul modificat intr-un widget.


Ultima editare efectuata de catre darkspectre in Mier 5 Aug - 14:28, editata de 2 ori

darkspectre
Membru activ

masculin

Mesaje : 2549
Varsta : 106
Localizare : auf mein land
Data de inscriere : 29/04/2008
Multumiri : 2
Niciun avertisment

http://www.fg-coding.net

Sus In jos

Script Chat

Mesaj Scris de From la data de Joi 5 Feb - 19:59

Se poate pune in Mesaj pe pagina de start sau intr-o pagina HTML
Cod:
<!-- Begin Everywherechat Room Code -->

    <a id="ewclink" href="http://www.everywherechat.com/">Free-unit</a>
    <br />
    <script src="http://www.everywherechat.com/e.php?defaultRoom=Free-unit&roomList=true&fontSize=12&width=600&height=500&theme=night"></script>

<!-- End Everywherechat Room Code -->
<a href="http://www.forumgratuit.ro" target="_blank">forumgratuit.ro</a>

Descriere:Este un script de la un chat mai evoluat cu diverse camere, prin care puteti comunica cu alti oameni.

Editat de Lizzard:Descriere adaugata.

From
Membru Forumgratuit

masculin

Mesaje : 50
Varsta : 20
Localizare : Bucuresti
Data de inscriere : 29/06/2008
Multumiri : 0
Niciun avertisment

http://xgraphicx.in-goo.net

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de campionatuldewhist la data de Sam 7 Feb - 2:21

Un calculator de buzunar

Cod:

<script language="JavaScript">
<!--
function Ergebnis()
{
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = x;
}
function Hinzufuegen(Zeichen)
{
window.document.Rechner.Display.value =
window.document.Rechner.Display.value + Zeichen;
}
function Sonderfunktion(Funktion)
{
if(Funktion == "sqrt")
{
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = Math.sqrt(x);
}
if(Funktion == "pow")
{
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = x * x;
}
if(Funktion == "log")
{
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = Math.log(x);
}
}
//-->
</script>


<form name="Rechner">
<table border=8 cellpadding=10>
<tr>
<td bgcolor=#C0C0C0><input name="Display" size=30 maxlength=30></td>
</tr>
<tr><td><table>
<tr>
<td width=50><input type=button value=" 7 " onClick="Hinzufuegen('7')"></td>
<td width=50><input type=button value=" 8 " onClick="Hinzufuegen('8')"></td>
<td width=70><input type=button value=" 9 " onClick="Hinzufuegen('9')"></td>
<td width=50><input type=button value=" + " onClick="Hinzufuegen('+')"></td>
</tr>
<tr>
<td width=50><input type=button value=" 4 " onClick="Hinzufuegen('4')"></td>
<td width=50><input type=button value=" 5 " onClick="Hinzufuegen('5')"></td>
<td width=70><input type=button value=" 6 " onClick="Hinzufuegen('6')"></td>
<td width=50><input type=button value=" - " onClick="Hinzufuegen('-')"></td>
</tr>
<tr>
<td width=50><input type=button value=" 1 " onClick="Hinzufuegen('1')"></td>
<td width=50><input type=button value=" 2 " onClick="Hinzufuegen('2')"></td>
<td width=70><input type=button value=" 3 " onClick="Hinzufuegen('3')"></td>
<td width=50><input type=button value=" * " onClick="Hinzufuegen('*')"></td>
</tr>
<tr>
<td width=50><input type=button value=" = " onClick="Ergebnis()"></td>
<td width=50><input type=button value=" 0 " onClick="Hinzufuegen('0')"></td>
<td width=70><input type=button value=" . " onClick="Hinzufuegen('.')"></td>
<td width=50><input type=button value=" / " onClick="Hinzufuegen('/')"></td>
</tr>
<tr>
<tr>
<td width=50><input type=button value="sqrt " onClick="Sonderfunktion('sqrt')"></td>
<td width=50><input type=button value=" pow " onClick="Sonderfunktion('pow')"></td>
<td width=70><input type=button value=" log " onClick="Sonderfunktion('log')"></td>
<td width=50><input type=reset value=" C "></td>
</tr>
</tr>
</table>
</td></tr></table>
</form>

Copiati codul intr-un modul si puteti sa il puneti intr-un widget sau intr-o pagina html. Este posibil sa fiti nevoiti sa umblati la marimea calcultorului sau al widgetului.




Script pt anuntarea datei si orei sub forma de mesaj propriu:


Cod:
<script language="JavaScript">
<!--
var Jetzt = new Date();
var Tag = Jetzt.getDate();
var Wochentag = Jetzt.getDay();
Wochentagname = new Array ("Duminica","Luni","Marti","Miercuri","Joi","Vineri","Sambata");
var Monat = Jetzt.getMonth();
Monatsname = new Array ("Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie");
var Jahr = Jetzt.getYear();
if (Jahr<=1900)
Jahr=Jahr+1900;
var Stunden = Jetzt.getHours();
var Minuten = Jetzt.getMinutes();
var NachVoll = ((Minuten < 10) ? ":0" : ":");
document.write("<H3><center>Salut!<BR>Astazi este " + Wochentagname[Wochentag] + ",  " + Tag + "." + Monatsname[Monat] + " " + Jahr + ".<BR>");
document.write("Acum este ora " + Stunden + NachVoll + Minuten + " si timpul se scurge )<p></center></H3>");
// -->
</script>


Un exemplu este aici. Posibil ca in timp sa nu mentin pagina.

Scriptul se poate adauga in orice modul ce permite text html sau in pagini html. Mesajul se poate cosmetiza ca si font, culoare si marime de scris.

campionatuldewhist
Membru Forumgratuit

masculin

Mesaje : 285
Varsta : 35
Localizare : Dortmund
Data de inscriere : 17/01/2008
Multumiri : 0
Niciun avertisment

http://www.campionatuldewhist.niceboard.com

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de PisiLoI la data de Mar 17 Feb - 18:33

Tabel servere CS
Copiati prima parte a codului HTML intr-un fisier,dupaia luati a doua parte a codului si dati lipire sub acelasi cod si faceti tot asa cu restul.La mine merge perfect...daca nu puteti dati-mi un PM si va tirmti fisierul cu cod.Il adaugati in PA->MODULE->HTML->Administare pagini HTML (creati o noua pagina HTML)

Cod:
<br>
<center><a href="http://ADRESA FORUMULUI TAU/forum.htm"><span style="color: rgb(0, 255, 0);"><b>Inapoi catre Forum</b></span></a>        <a href="http://ADRESA FORUMULUI TAU/portal.htm"><span style="color: rgb(0, 255, 0);"><b>Inainte catre Portal</b></span></a>
<br>

<center><br><div id="table1"><div class="wpmd">
<div><table bordercolorlight="#000000" bordercolordark="#000000" bgcolor="" border="1">
<tbody><tr valign="top">
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> Info </strong><center><strong></strong></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> Adress </strong><center><strong></strong></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> Port </strong><center><strong></strong></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> Players </strong><center><strong></strong></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> Anticheat </strong><center><strong></strong></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> ISP </strong><center><strong></strong></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> Mod </strong><center><strong></strong></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><strong></strong><center><strong> Country </strong><center><strong></strong></center></center></div>
</div>
</td>
</tr>
<tr valign="top">
<td width="100"><div class="wpmd">
<div><center><img src="http://i34.tinypic.com/25fokud.jpg"><center></center></center></div>
</div>
</td>
<td width="140"><div class="wpmd">
<div><center><b>ADRESA SERVERULUI</b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b>PORTUL SERVERULUI</b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b>PLAYERII SERVERULUI</b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b>SECURITATEA SERVERULUI</b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b>ISP-UL SERVERULUI</b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b>MODUL SERVERULUI</b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b><img src="http://img144.imageshack.us/img144/1121/rorp0.gif" alt="RO"> </b><center></center></center></div>
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
</div><center>


<div id="table2"><div><table bordercolorlight="#000000" bordercolordark="#000000" bgcolor="" border="1">




<tbody><tr><td width="100"><div class="wpmd">
<div><center><img src="http://i34.tinypic.com/25fokud.jpg"><center></center></center></div>
</div>
</td>
<td width="140"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b><img src="http://img144.imageshack.us/img144/1121/rorp0.gif" alt="RO"> </b><center></center></center></div>
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
<center>

<div id="table3"><div><table bordercolorlight="#000000" bordercolordark="#000000" bgcolor="" border="1">
<tbody><tr><td width="100"><div class="wpmd">
<div><center><img src="http://i34.tinypic.com/25fokud.jpg"><center></center></center></div>
</div>
</td>
<td width="140"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b></b><center></center></center></div>
</div>
</td>
<td width="100"><div class="wpmd">
<div><center><b><img src="http://img144.imageshack.us/img144/1121/rorp0.gif" alt="RO"> </b><center></center></center></div>
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
</center>


Ultima editare efectuata de catre PisiLoI in Mar 17 Feb - 19:32, editata de 2 ori

PisiLoI
Membru Forumgratuit

Mesaje : 38
Data de inscriere : 26/12/2008
Multumiri : 0
Niciun avertisment

http://cs-gl.withme.us/

Sus In jos

Re: Scripturi pentru forum

Mesaj Scris de NANI la data de Mar 17 Feb - 20:39

Script pentru sa adaugi o imagine si pe peste Ea sa adaugi scris:

Cod:
<table height="100" width="150" background="LINK IMAGINE" > <tr><td>TEXTUL DORIT</td></tr> </table>
Ex:


Altul:
Cu ceva timp in urma era destul de complicat sa introduci muzica sau sunete un general pe o pagina web.
In momentul de fata aceasta problema s-a rezolvat, adaugarea de sunete fiind foarte simpla.
Cod:
<EMBED

SRC="MUZICA DORITA" hidden="false" autostart="false" loop="false" volume="60" width="144" height="60"/>
Foloseste <hr/> pentru a crea o linie orizontala. Acest tag esste similar celui de linebreak

Cod:
<hr/>

Text

<hr/><hr/>

Text

<hr/>

Text

<hr/>

NANI
Membru Forumgratuit

masculin

Mesaje : 300
Varsta : 23
Localizare : TG frumos iasi
Data de inscriere : 22/11/2008
Multumiri : 0
Membru exclus

http://moldova.ace.st

Sus In jos

Pagina 1 din 4 1, 2, 3, 4  Urmatorul

Vezi subiectul anterior Vezi subiectul urmator Sus

- Subiecte similare

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum