Navigacija

Vartotojų tinkle

Prisijungusių svečių: 152
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,952
Naujausias narys: tomeem

Naujausi straipsniai

Paskutiniai nariai

asirija 2 savaitės
tomeem 4 savaitės
Reikalas 5 savaitės
weberiz 7 savaitės
mRokass 9 savaitės
kartoonas10 savaitės
iaescortsmap11 savaitės
ozzWANTED11 savaitės
grunskiz13 savaitės
Bruksnys14 savaitės
illusion14 savaitės
ordo15 savaitės
Jurgaila15 savaitės
originalcs1615 savaitės
Rytis16 savaitės
halis18 savaitės
junkus20 savaitės
morlis21 savaitės
Majakas22 savaitės
andsoft23 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.222.96.135
Naujienų: 529
Straipsnių: 235
Temų: 52,585
Postų: 522,523
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Žmogus
2023 Rugs. 7 21:09:14
O gal BloodKiller pasijungs?

Apocal
2023 Rugs. 2 18:09:23
Nu davai nuveikiam kažką akinanti šypsen. Prisijungti kada visi čia akinanti šypsen.

Apocal
2023 Rugs. 2 00:09:18
Šiaip atėjau pažiūrėti ar dar lopas nesby yra ar koks ten buvo.

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Javascript'as pridetiniuose puslapiuose
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | C#, Python, Java, JS, C++ klausimai

Autorius: MekaniK Peržiūrų: 2250      Spausdinti temą
2008 Rugp. 3 11:08:42          1 žinutė iš 5
Spausdinti pranešimą
Sveiki. As noreciau isideti javascript'a i pridetinius puslapius. Idejus skripta is paspaudus puslapio perziura, man skriptas issoka ant pacio saito:[img=http://img398.imageshack.us/img398/9984/skriptasmq8.th.jpg]. Issaugojus tas pats. Kaip padaryti kad jis butu normaliai atvaizduojamas pridetiniame puslapyje, o ne issoktu ant saito?
Cia tas skriptas:

<script language="Javascript" type="text/javascript">
<!--

//Please do not remove. Created by nivlam.com

//Initlal setTimeout ID that determines how long the mouse has to be held down
//before it does something.
var timerID = 0;

//Second setTimeout ID that determines how fast it loops.   
var timerID2 = 0;

//Available stat points.
var avail = 0;

//var a: 0 is add, 1 is subtract
//var id: id of element 
function StartT(a, id)
{
   if (a == 0)
      timerID = setTimeout("AddT('" + id + "')", 500);
   else
      timerID = setTimeout("SubT('" + id + "')", 500);
}

//Clears both setTimeout timers when you release mouse or move away from button.
function EndT()
{
   clearTimeout(timerID);
   clearTimeout(timerID2);
}

//Function that keeps adding until you call EndT.
function AddT(id)
{
   //Adds three stats, 1 str, and 1 int every level.
   if (id == 'lv')
   {
      document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) + 3;
      document.getElementById('str').value = parseInt(document.getElementById('str').value) + 1;
      document.getElementById('int').value = parseInt(document.getElementById('int').value) + 1;
   }
   //Otherwise it subtracts from your total available stat points.
   else
      document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) - 1;

   //Adds 1 to whatever element.
   document.getElementById(id).value = parseInt(document.getElementById(id).value) + 1;
   
   //Update and set timer to start looping.
   UpdateValues();
   timerID2 = setTimeout("AddT('" + id + "')", 50);
}

//Function that keeps subtracting until you call EndT.
function SubT(id)
{
   if ((id == "str" || id == "int") && parseInt(document.getElementById(id).value) <= 20)
      return;
   else if (id == "lv" && parseInt(document.getElementById(id).value) <= 1)
      return;

   //Subtracts three stats, 1 str, and 1 int every time you delevel.
   if (id == 'lv')
   {
      document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) - 3;
      document.getElementById('str').value = parseInt(document.getElementById('str').value) - 1;
      document.getElementById('int').value = parseInt(document.getElementById('int').value) - 1;
   }
   //Otherwise it adds to your total available stat points.
   else
      document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) + 1;

   //Subtracts 1 from whatever.
   document.getElementById(id).value = parseInt(document.getElementById(id).value) - 1;
   
   //Update and set timer to start looping.
   UpdateValues();
   timerID2 = setTimeout("SubT('" + id + "')", 50);
}

//Adds 1 str and subtracts one stat point.
function AddStr_click()
{
   document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) - 1;
   document.getElementById('str').value = parseInt(document.getElementById('str').value) + 1;
   
   UpdateValues();
}

//Adds 1 int and subtracts 1 stat point.
function AddInt_click()
{
   document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) - 1;
   document.getElementById('int').value = parseInt(document.getElementById('int').value) + 1;
   
   UpdateValues();
}

//Adds 1 level, 3 stat points, 1 str, 1 int.
function AddLevel_click()
{
   document.getElementById('lv').value = parseInt(document.getElementById('lv').value) + 1;
   document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) + 3;
   document.getElementById('str').value = parseInt(document.getElementById('str').value) + 1;
   document.getElementById('int').value = parseInt(document.getElementById('int').value) + 1;
   
   UpdateValues();
}

//Subtract
function SubStr_click()
{
   if (parseInt(document.getElementById('str').value) <= 20)
      return;
      
   document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) + 1;
   document.getElementById('str').value = parseInt(document.getElementById('str').value) - 1;
   
   UpdateValues();
}
 
//Subtract
function SubInt_click()
{
   if (parseInt(document.getElementById('int').value) <= 20)
      return;
      
   document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) + 1;
   document.getElementById('int').value = parseInt(document.getElementById('int').value) - 1;
   
   UpdateValues();
}

//Subtract
function SubLevel_click()
{
   if (parseInt(document.getElementById('lv').value) <= 1)
      return;
      
   document.getElementById('lv').value = parseInt(document.getElementById('lv').value) - 1;
   document.getElementById('statAvail').value = parseInt(document.getElementById('statAvail').value) - 3;
   document.getElementById('str').value = parseInt(document.getElementById('str').value) - 1;
   document.getElementById('int').value = parseInt(document.getElementById('int').value) - 1;
   
   UpdateValues();
}

//Calculates your HP, MP, physical balance, and magical balance.
function UpdateValues()
{
   var maxstat =  28 + document.getElementById('lv').value * 4;
   document.getElementById('phy').value = parseInt(100 - (100 * 2/3 * (maxstat - document.getElementById('str').value ) / maxstat));
   document.getElementById('mag').value = parseInt(100 * document.getElementById('int').value / maxstat);
      
   document.getElementById('hp').value = parseInt(Math.pow(1.02,(parseInt(document.getElementById('lv').value) - 1)) * parseInt(document.getElementById('str').value) * 10);
   document.getElementById('mp').value = parseInt(Math.pow(1.02,(parseInt(document.getElementById('lv').value) - 1)) * parseInt(document.getElementById('int').value) * 10);
}

//-->
</script><script charset="utf-8" id="injection_graph_func" src="stats_failai/injection_graph_func.js"></script></head><body bgcolor="#000000">

   <!--
   
   Do not copy and paste the following code into your page.
   Instead, make sure that stats.html and stats.png are located
   in the same directory. Then add the following link to your page:
   
   <a href="javascript:void(0);" onclick="window.open('stats.html','SilkroadStats','status=0,toolbar=0,location=0,menubar=0,directories=0,resizeable=0,scrollbars=0,width=363,height=255'); ">Click here</a>
   
   -->
   
   <div id="content">
   
      <!-- Please do not remove.  Created by nivlam.com -->
      <img src="http://silkroad.xz.lt/stats.png" alt="statAvail" usemap="#stats" style="position: absolute; left: 0px; top: 0px;" width="363" border="0" height="255">

      <map id="stats" name="stats"><area shape="rect" coords="44,110,61,127" href="javascript:void(0)" alt="Add STR" onclick="AddStr_click();" onmousedown="StartT(0, 'str')" onmouseup="EndT()" onmouseout="EndT()"><area shape="rect" coords="44,139,61,156" href="javascript:void(0)" alt="Add INT" onclick="AddInt_click();" onmousedown="StartT(0, 'int')" onmouseup="EndT()" onmouseout="EndT()"><area shape="rect" coords="319,30,336,47" href="javascript:void(0)" alt="Add Level" onclick="AddLevel_click();" onmousedown="StartT(0, 'lv')" onmouseup="EndT()" onmouseout="EndT()"><area shape="rect" coords="63,110,80,127" href="javascript:void(0)" alt="Subtract STR" onclick="SubStr_click();" onmousedown="StartT(1, 'str')" onmouseup="EndT()" onmouseout="EndT()"><area shape="rect" coords="63,139,80,156" href="javascript:void(0)" alt="Subtract INT" onclick="SubInt_click();" onmousedown="StartT(1, 'int')" onmouseup="EndT()" onmouseout="EndT()"><area shape="rect" coords="338,30,355,47" href="javascript:void(0)" alt="Subtract Level" onclick="SubLevel_click();" onmousedown="StartT(1, 'lv')" onmouseup="EndT()" onmouseout="EndT()">
       
       
       
       
       
       
      </map>
      
      <input id="lv" style="border: medium none ; background-color: transparent; color: rgb(255, 226, 123); width: 2em; text-align: left; position: absolute; left: 340px; top: 7px;" value="1" readonly="readonly" type="text">
      <input id="statAvail" style="border: medium none ; background-color: transparent; color: rgb(255, 217, 83); width: 2.5em; text-align: center; position: absolute; left: 85px; top: 84px;" value="0" readonly="readonly" type="text">
      
      <input id="str" style="border: medium none ; background-color: transparent; color: white; width: 2.5em; text-align: center; position: absolute; left: 85px; top: 110px;" value="20" readonly="readonly" type="text">

      <input id="int" style="border: medium none ; background-color: transparent; color: white; width: 2.5em; text-align: center; position: absolute; left: 85px; top: 139px;" value="20" readonly="readonly" type="text">
      
      <input id="phy" style="border: medium none ; background-color: transparent; color: white; width: 2.5em; text-align: center; position: absolute; left: 100px; top: 212px;" value="75" readonly="readonly" type="text">
      <input id="mag" style="border: medium none ; background-color: transparent; color: white; width: 2.5em; text-align: center; position: absolute; left: 295px; top: 212px;" value="62" readonly="readonly" type="text">
      
      <input id="hp" style="border: medium none ; background-color: transparent; color: white; width: 5em; text-align: center; position: absolute; left: 210px; top: 110px;" value="200" readonly="readonly" type="text">
      <input id="mp" style="border: medium none ; background-color: transparent; color: white; width: 5em; text-align: center; position: absolute; left: 210px; top: 139px;" value="200" readonly="readonly" type="text">



2008 Rugp. 3 11:08:50          2 žinutė iš 5
Spausdinti pranešimą
Į lentelę manau jį dėt reiktų.
2008 Rugp. 3 12:08:42          3 žinutė iš 5
Spausdinti pranešimą
I kokia?
2008 Rugp. 3 12:08:31          4 žinutė iš 5
Spausdinti pranešimą
html.
2008 Rugp. 3 13:08:42          5 žinutė iš 5
Spausdinti pranešimą
Jau susitvarkiau. Aciu uz pagalbamerkia akį
Peršokti į forumą: