[Tut]Cum sa iti faci pagina de metin!?
2 participanți
Pagina 1 din 1
[Tut]Cum sa iti faci pagina de metin!?
Salutare!
Stiu ca sunt nou, dar am 3 ani de experienta in GM, PHP si Java Script.
Si va voi arata ' cum se face o pagina de metin2! '
Sa incepem:
1. Intrati in htdcos, creati un format ' .php ' si dati numele register.
2.Intrati in el si puneti urmatorul script PhP:
2.Implementare registru:
Cum sa pui un backgorund?
Destul de greu zic eu
Multumesc pentru atentia voastra ;).
Stiu ca sunt nou, dar am 3 ani de experienta in GM, PHP si Java Script.
Si va voi arata ' cum se face o pagina de metin2! '
Sa incepem:
1. Intrati in htdcos, creati un format ' .php ' si dati numele register.
2.Intrati in el si puneti urmatorul script PhP:
- Cod:
<html>
<head>
<title> Aiciea scrieti numele metinului dumneavoastra </title>
</head>
</html>
2.Implementare registru:
- Cod:
<form id="form2" name="form2" method="post" action="confirmare.php" onSubmit="return CheckValid(this)">
<TABLE height=128 width=400
border=0>
<TBODY>
<TR>
<TD colspan="6">
<DIV align=center><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="main2">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<div style="">
<div style="float:left; width:150px;">Nume de Utilizator:</div>
<input name="UserID" type="text" id="UserID" size="16" maxlength="16" value="" class="inputbox2" onFocus="change(1)" onKeyUp="value=value.replace(/[^w./]/ig,'')">
<br /><br>
<div style="width:150px; float:left;">Parola:</div>
<input name="Password" type="password" id="Password" size="16" maxlength="16" class="inputbox2" onFocus="change(2)" onKeyUp="value=value.replace(/[^w./]/ig,'')">
<br /><br>
<div style="width:150px; float:left;">Repeta Parola:</div>
<input name="RPassword" type="password" id="RPassword" size="16" maxlength="16" class="inputbox2" onFocus="change(3)">
<br /><br>
<div style="width:150px; float:left;">Nume Real:</div>
<input name="UserName" type="text" id="UserName" size="12" maxlength="12" value="" class="inputbox2" onFocus="change(5)">
<br /><br>
<div style="width:150px; float:left;">Sex:</div>
<input name="Sex" type="radio" value="1" checked>
Masculin
<input type="radio" name="Sex" value="0" >
Feminin<br /><br>
<div style="width:150px; float:left;">Cod de Stergere:</div>
<input name="IDCard" type="text" id="IDCard" size="7" maxlength="7" value="" class="inputbox2" onFocus="change(6)">
<br /><br>
<div style="width:150px; float:left;">Intrebare: </div>
<select name="Ques" class="inputbox2">
<option value="×îϲšgµÄŒ™Îï">Care este numele Mamei Tale?</option>
<option value="×îϲ۵ÄëŠÓ°">Care este numele Tau?</option>
<option value="×î³ç°ÝµÄżÏñ">Care este numele cainelui tau?</option>
<option value="¸¸ÓHµÄÃû×Ö">Care este numele autorului preferat?</option>
</select>
<br /><br>
<div style="width:150px; float:left;">Raspuns:</div>
<input name="Answ" type="text" id="Answ" size="20" maxlength="20" value="" class="inputbox2" onFocus="change(7)">
<br /><br>
<div style="width:150px; float:left;">Raspuns 2:</div>
<input name="Answ1" type="text" id="Answ1" size="20" maxlength="20" value="" class="inputbox2" onFocus="change(8)">
<br /><br>
<input type="hidden" name="act" value="send">
<br /><br>
<button style="align: center; float: center; margin-left: 150px; " class="Button" align="center" type="submit" name="imageField">
<span class="btn" align="center" style="float: center; align: center;">
<span class="t">Trimite</span>
<span class="r"><span></span></span>
<span class="l"></span>
</span>
</button>
</div></td>
</tr>
</table></td>
</tr>
</table>
Cum sa pui un backgorund?
- Cod:
este simplu:
scriem intre head si title asta <body background=' numeleimagini.jpg '></body> sau ( pentru culoare) <body bgcolor='white'></body> (exemplu), iar imaginea care vreti sa fie background trebuie sa fie neaparat in htdocs!
- Cod:
<img src=' numeleimagini. jpg '>
la fel si aicia trebuie sa fie imaginea in htdocs!
- Cod:
<SCRIPT type="text/javascript">
// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=35
// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#AAAACC","#DDDDFF","#CCCCDD","#F3F3F3","#F0FFFF")
// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans Multumesc")
// Set the letter that creates your snowflake (recommended: * )
var snowletter="*"
// Set the speed of sinking (recommended values range from 0.3 to 2)
var sinkspeed=0.6
// Set the maximum-size of your snowflakes
var snowmaxsize=22
// Set the minimal-size of your snowflakes
var snowminsize=8
// Set the snowing-zone
// Set 1 for all-over-snowing, set 2 for left-side-snowing
// Set 3 for center-snowing, set 4 for right-side-snowing
var snowingzone=1
/*
// * NO CONFIGURATION BELOW HERE *
*/
// Do not edit below this line
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>
Destul de greu zic eu
Multumesc pentru atentia voastra ;).
SouL- Level 7
- Varsta : 26
Subiecte similare
» Cum faci pagina de reg sa mearga mai repede
» Pagina de inregistrare
» X-Metin.Net
» Art of metin
» Chw-metin 2
» Pagina de inregistrare
» X-Metin.Net
» Art of metin
» Chw-metin 2
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum
Mier Noi 28, 2012 9:54 pm Scris de alextegla
» VitalisMetin2 24/24
Sam Noi 05, 2011 9:27 pm Scris de KingSined
» Mafia20000 Web-Browser Game
Dum Oct 30, 2011 9:46 am Scris de arsenium
» DarkAngelmt2
Sam Oct 29, 2011 6:06 pm Scris de Forkey
» Metin2 Mania
Vin Oct 28, 2011 12:06 pm Scris de leoni11
» [Prezentare]SpikeLikeCookie Revine
Mier Oct 26, 2011 5:59 pm Scris de SpiKeLikeCookie
» Login bug Rezolvat definitiv
Mier Oct 26, 2011 3:58 pm Scris de alquaida
» Metin2Ea SERVER 1
Mier Oct 26, 2011 12:42 pm Scris de florin95
» Metin2Arena -PVM
Mier Oct 26, 2011 12:36 pm Scris de florin95