Przydatne Skrypty

Wszystko co związane z Internetem.

<<

Sebekzosw

Post autor: Sebekzosw » 1 lis 2005, 10:08

Przydatne Skrypty

Oto lista ciekawych i przydatnych skryptów na strone w HTML

Oto skrypty:


Link do programu pocztowego:

Kod: Zaznacz cały

<A HREF="mailto:ADRES_E-MAIL">Mój E-mail</a> 

Status gadu gadu na stronie:

Kod: Zaznacz cały

<img src="http://status.gadu-gadu.pl/users/status.asp?id=NUMER_GADU-GADU&styl=1">
<A href="gg:NUMER_GADU-GADU">Moje Gadu-Gadu</A>

Status ICQ na stronie:

Kod: Zaznacz cały

<img src="http://web.icq.com/whitepages/online?icq=NUMER_ICQ&img=5">

Dodaj stronę do ulubionych:

Kod: Zaznacz cały

<a href=# onClick="window.external.AddFavorite('http://ADRES_TWOJEJ_STRONY', 'TYTUŁ_STRONY')">Dodaj do ulubionych</a> 

Ustaw jako stronę startową:

Kod: Zaznacz cały

<a href=# onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://ADRES_TWOJEJ_STRONY'')">Ustaw jako stronę startową</a> 

Copyright (DATA SAMA SIĘ ZMIENIA):

Kod: Zaznacz cały

<SCRIPT LANGUAGE="JavaScript">
<!--

//Script created by Ronny Drappier, http://sipreal.com
//Visit http://javascriptkit.com for this script

today=new Date();
y0=today.getFullYear();

// end hiding --->
</SCRIPT><center>Copyright (c) TU_WPISUJESZ_JAKĄŚ_DATĘ-<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from old browsers
document.write(y0);
// end hiding --->
</SCRIPT>  </center>

Wyszukiwarka google:

Kod: Zaznacz cały

<SCRIPT Language="JavaScript">
function szukaj(){
if(wyszukiwarka.slowo.value==""){
alert("Wpisz szukane słowo !!!");
}else{
window.open("http://www.google.com/search?q="+wyszukiwarka.slowo.value);
}
}
</SCRIPT>

<form name="wyszukiwarka">
<br /><input type="text" name="slowo"> <input type="button" onclick="szukaj()" value="Szukaj">
</form>

Czy twoja przeglądarka opsługuje Java??:

Kod: Zaznacz cały

<script type="text/javascript" language="JavaScript">
<!--
document.write('Twoja przeglądarka obsługuje JavaScript! To dobrze, bo my lubimy i używamy JavaScript na tej stronie.')
//-->
</script>
<noscript>Oj, Twoja przeglądarka nie radzi sobie z JavaScript, albo wyłączyłeś obsługę w ustawieniach przeglądarki.</noscript>
Przywitanie:

Kod: Zaznacz cały

<script>
<!-- Script By Robert Clements | www.pumadesign.com
var name = prompt ('Proszę wpisz poniżej swoje imię.','')
if ( name == null )
document.write ('Witaj na mojej stronie!')
else {
document.write ('Witaj na mojej stronie '+name+'!')
}
//-->
</script>

Przywitanie 2:

Kod: Zaznacz cały

<script language="JavaScript">
<!--
var name=prompt("Wpisz swoje imię, proszę.","imię");
var today = new Date ()
var hrs = today.getHours();
document.writeln("<b><font size=4 face='Comic Sans MS'>");
document.writeln("<b>");
if (hrs <= 12)
document.write("Dzień dobry "+name+'!');
else if (hrs <= 18)
document.write("Miłego dnia "+name+'!');
else
document.write("Dobry wieczór "+name+'!'); document.writeln("<br>");
// -->
</script>

Informacje o systemie:

Kod: Zaznacz cały

<SCRIPT Language="JavaScript">
// Detektor Systemowy - v0.1
// Autor: Tomasz Iwanowski
// www.JavaScript.scrypty.com

var data1 = "<div align='center'><center><table border='0' cellpadding='0' cellspacing='0' width='130'><tr><td align='center'><p align='center'><font size='1' face='Verdana'>"
var data2 = "</font></td></tr></table></center></div>"
var odstep = "<div align='center'><center><table border='0' cellpadding='0' cellspacing='0' width='130'><tr><td align='center'><p align='center'><font size='1' face='Verdana'> </font></td></tr></table></center></div>"

document.write(""+data1+"Przeglądarka:"+data2+"");
document.write(""+data1+"<b>"+navigator.appName+"</b>"+data2+"");

document.write(""+odstep+"");

document.write(""+data1+"System Operacyjny:"+data2+"");
document.write(""+data1+"<b>"+navigator.platform+"</b>"+data2+"");

document.write(""+odstep+"");

document.write(""+data1+"Rozdzielczość Ekranu:"+data2+"");
document.write(""+data1+"<b>"+screen.width+"</b>x<b>"+screen.height+"</b>"+data2+"");
</SCRIPT>

Kalendarz:

Kod: Zaznacz cały

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Scriptbreaker (pieterpareit@hotmail.com ) -->
<!-- Web Site:  http://www24.brinkster.com/scriptbreaker -->
<!-- Begin
var now = new Date();
var month_array = new Array("Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień");
document.write("<form name=date_list><table bgcolor=silver><tr><td>");
document.write("<select name=month onchange=change_month(this.options.selectedIndex)>");
for(i=0;i<month_array.length;i++)
{
if (now.getMonth() != i)
{document.write ("<option value="+i+">"+month_array[i]);}
else
{document.write ("<option value="+i+" selected>"+month_array[i]);}

}
document.write("</select>");
document.write("</td><td>");
document.write ("<select name=year onchange=change_year(this.options[this.options.selectedIndex])>");
for(i=1950;i<3000;i++)
{
if (now.getYear() != i)
{document.write("<option value="+i+">"+i);}
else
{document.write("<option value="+i+" selected>"+i);}
}
document.write("</select></td></tr><tr><td colspan=2><center>");

document.write("<table bgcolor=white border=0 cellspacing = 0 cellpading = 0 width=100%><tr bgcolor=gray align=center>");
document.write("<td><font color=silver>M</font></td><td><font color=silver>T</td><td><font color=silver>W</td><td><font color=silver>T</td><td><font color=silver>F</td><td ><font color=silver>S</td><td ><font color=silver>S</td>");
document.write("</tr><tr>");
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
document.write("<td align=center id=d"+i+"r"+j+"></td>")
}
document.write("</tr>");
}

document.write("</table>");

document.write("</center></from></td></tr></table>");

var show_date = new Date();

function set_cal(show_date)
{
begin_day = new Date (show_date.getYear(),show_date.getMonth(),1);
begin_day_date = begin_day.getDay();
end_day = new Date (show_date.getYear(),show_date.getMonth()+1,1);
count_day = (end_day - begin_day)/1000/60/60/24;
input_table(begin_day_date,count_day);
}
set_cal(show_date);

function input_table(begin,count)
{
init();
j=0;
if (begin!=0){i=begin-1;}else{i=6}
for (c=1;c<count+1;c++)
{
colum_name = eval("d"+i+"r"+j);
if ((now.getDate() == c)&&(show_date.getMonth() == now.getMonth())&&(show_date.getYear() == now.getYear())) {colum_name.style.backgroundColor = "blue";colum_name.style.color = "white";};
colum_name.innerText =  c;
i++;
if (i==7){i=0;j++;}
}
}

function init()
{
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
colum_name = eval("d"+i+"r"+j);
colum_name.innerText =  "-";
colum_name.style.backgroundColor ="";
colum_name.style.color ="";
}
}
}

function change_month(sel_month)
{
show_date = new Date(show_date.getYear(),sel_month,1);
set_cal(show_date);
}

function change_year(sel_year)
{
sel_year = sel_year.value;
show_date = new Date(sel_year,show_date.getMonth(),1);
set_cal(show_date);
}
//  End -->
</script>

<p> <p>

Różne kolory tła:

Kod: Zaznacz cały

<script type="text/javascript" language="JavaScript">
<!-- Start of JavaScript code --------
// NewcWare 1997
// Author: Scott Newcomer 3/1997
// Email: nuke@bright.net
//
function setbackground()
{
window.setTimeout( "setbackground()", 2000);
var index = Math.round(Math.random() * 9);
var ColorValue = "#FFFFFF"; // default color - white (index = 0)

if(index == 1)
ColorValue = "#FFC66B";
if(index == 2)
ColorValue = "#FF5500";
if(index == 3)
ColorValue = "#FF6BC6";
if(index == 4)
ColorValue = "#DC00DC";
if(index == 5)
ColorValue = "#4873FF";
if(index == 6)
ColorValue = "#00DCDC";
if(index == 7)
ColorValue = "#00DC49";
if(index == 8)
ColorValue = "#FFFF6B";
if(index == 9)
ColorValue = "";
document.bgColor=ColorValue;
}
//-->
</script>Przykładowy tekst<script type="text/javascript" language="JavaScript">
<!--
setbackground();
//-->
</script>

Hasło:

Kod: Zaznacz cały


<SCRIPT>
function passWord() {
var testV = 1;
var pass1 = prompt('Wpisz hasło dostępu',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "TU_WPISUJESZ_HASŁO") {
alert('Witam w strefie');
window.open('http://TU_DAJESZ_LINK_GDZIE_MA_KTOŚ_WEJŚĆ_PO_PODANIU_DOBREGO_HASLA');
break;
}
testV+=1;
var pass1 =
prompt('Brak dostępu - Hasło jest niewłaściwe, spróbuj  jeszcze raz.','Hasło');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
<CENTER>
<FORM>
<input type="button" value="TU_WPISUJESZ_CO_MA_PISAC_NA_PRZYCISKU" onClick="passWord()" class="button">
</FORM>
</CENTER>

Kalendarz 2:

Kod: Zaznacz cały

<script type="text/javascript" language="JavaScript">
<!-- for sucky browsers
//This Java Script is free to the domain. All I ask is you send me an
//email to
//ddelong@csci.csusb.edu to let me know that you will be using it. This
//message must be included with the script if you copy it.
Months = new Array(12);
Months[0] = "Styczeń";
Months[1] = "Luty";
Months[2] = "Marzec";
Months[3] = "Kwiecień";
Months[4] = "Maj";
Months[5] = "Czerwiec";
Months[6] = "Lipiec";
Months[7] = "Sierpień";
Months[8] = "Wrzesień";
Months[9] = "Październik";
Months[10] = "Listopad";
Months[11] = "Grudzień";
function PadSpaces(TheString)
{
var Spaces = "             ";
len = Math.round((9 - TheString.length)/2);
return Spaces.substring(0,len) + TheString;
}
function NumLeapYears(StartYear, EndYear)
{
var LeapYears, i;
if (EndYear >= StartYear){
for(LeapYears = 0; StartYear <= EndYear; StartYear++)
if (IsLeapYear(StartYear)) LeapYears++;
}else{
for(LeapYears = 0; EndYear <= StartYear; EndYear++)
if (IsLeapYear(EndYear)) LeapYears++;
}
return LeapYears;
}
function IsLeapYear(Year)
{
if(Math.round(Year/4) == Year/4){
if(Math.round(Year/100) == Year/100){
if(Math.round(Year/400) == Year/400)
return true;
else return false;
}else return true;
}
return false;
}
function Trim(TheString)
{
var len;
len = TheString.length;
while(TheString.substring(0,1) == " "){ //trim left
TheString = TheString.substring(1, len);
len = TheString.length;
}
while(TheString.substring(len-1, len) == " "){ //trim right
TheString = TheString.substring(0, len-1);
len = TheString.length;
}
return TheString;
}
function DetermineMonthIdx()
{
var i, month, month_s, len;
month = Trim(document.calform.elements[4].value);
len = month.length;
for( i = 0; i <12; i++){
month_s = Months[i].substring(0,len);
if (month_s.toUpperCase() == month.toUpperCase())
return (i);
}
return -1;
}
function FindNewYearStartingDay(Year)
{
var LeapYears, Years, Day;
LeapYears = NumLeapYears(1995, Year);
if  (Year >=1995)
Years = (Year -1995)+LeapYears;
else	Years = (Year -1995)-LeapYears;
if  (Year >=1995)
Day = Math.round(((Years/7 - Math.floor(Years/7))*7)+.1);
else	Day = Math.round(((Years/7 -  Math.ceil(Years/7))*7)-.1);
if (Year >=1995){
if(IsLeapYear(Year)) Day--;
}else Day += 7;
if(Day < 0) Day = 6;
if(Day > 6) Day = 0;
return Day;
}
function FindNumDaysInMonth(Year, Month)
{
if(Month == 1){
if(IsLeapYear(Year)) return 29;
else return 28;
}else{
if(Month >6) Month++;
if(Month/2 == Math.round(Month/2))  return 31;
}
return 30;
}
function FindMonthStartDay(NewYearDay, Year, Month)
{
var MonthStartDay;
AddArray = new Array(12);
AddArray[0]=0;AddArray[1]=3;AddArray[2]=3;AddArray[3]=6;
AddArray[4]=1;AddArray[5]=4;AddArray[6]=6;AddArray[7]=2;
AddArray[8]=5;AddArray[9]=0;AddArray[10]=3;AddArray[11]=5;
MonthStartDay = NewYearDay + AddArray[Month];
if(IsLeapYear(Year)  && (Month ) > 1) MonthStartDay ++;
if (MonthStartDay > 6) MonthStartDay -= 7;
return MonthStartDay;
}
function  FillCalendar()
{
var Year, Month, Midx, NewYearDay, MonthStartDay;
var NumDaysInMonth, i, t;
Year = parseFloat(document.calform.elements[1].value);
Month = document.calform.elements[4].value;
Midx  =  DetermineMonthIdx();
if (Midx == -1){
alert ("Can't recognize that month");
return;
}
NewYearDay = FindNewYearStartingDay(Year);
MonthStartDay = FindMonthStartDay(NewYearDay, Year,  Midx);
NumDaysInMonth = FindNumDaysInMonth(Year, Midx);
for(i = 6;  i < 43;  i++){
t = i-5-MonthStartDay;
if ( t >= 1  &&  t <= NumDaysInMonth)
document.calform.elements[i].value =t;
else document.calform.elements[i].value = "";
}
}
function IncDecYear(val)
{
var valNum = parseInt(val);
var valNum2 = parseInt(document.calform.elements[1].value)
document.calform.elements[1].value = valNum2 + valNum;
FillCalendar()
}
function IncDecMonth(val)
{
var valNum = parseInt(val);
var Midx  =  DetermineMonthIdx();
Midx += valNum;
if(Midx > 11) Midx = 0;
if(Midx < 0)  Midx = 11;
document.calform.elements[4].value = PadSpaces(Months[Midx]);
FillCalendar()
}
// -->
</script><table border="0" bgcolor="#006296"><tr><td align="center">
<table border="0"  cellspacing="0">
<form name="calform">
<tr><td align="center" bgcolor="#006296"><input type="button" value="<<" onClick="IncDecYear(-1)"></td>
<th bgcolor="#007AB9" colspan="5" align="center"><input size="4" type=text value="1993"></th>
<td align="center" bgcolor="#006296"><input type="button" value=">>" onClick="IncDecYear(1)"></td></tr>
<tr><td align="center" bgcolor="#006296"><input type="button" value="<<" onClick="IncDecMonth(-1)"></td>
<th bgcolor="#007AB9" colspan="5" align="center"><input size="9" type="text" value=" January "></th>
<td align="center" bgcolor="#006296"><input type="button" value=">>" onClick="IncDecMonth(1)"></td></tr>
<tr><th  bgcolor="#FF5500">Ni</td>
<th  bgcolor="#00AAFF">Po</td>
<th  bgcolor="#00AAFF">Wt</td>
<th  bgcolor="#00AAFF">Śr</td>
<th  bgcolor="#00AAFF">Cz</td>
<th  bgcolor="#00AAFF">Pi</td>
<th  bgcolor="#00AAFF">So</td></tr>
<tr><td  bgcolor="#FF5500"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td></tr>
<tr><td  bgcolor="#FF5500"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td></tr>
<tr><td  bgcolor="#FF5500"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td></tr>
<tr><td  bgcolor="#FF5500"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td></tr>
<tr><td  bgcolor="#FF5500"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#00AAFF" ><input type=text size=2></td></tr>
<tr><td  bgcolor="#FF5500"><input type=text size=2></td>
<td  bgcolor="#00AAFF"><input type=text size=2></td>
<td  bgcolor="#007AB9" colspan=5><input type=text></td></tr>
</form>
</table>
</td></tr></table>
<script type="text/javascript" language="JavaScript">
<!--
//include this script segment if you want to set the calendar to today's date.
//this MUST come after the tabled form which contains the calendar
//set calendar to today's date
myDate = new Date();
var Month = parseInt(myDate.getMonth());
document.calform.elements[1].value = myDate.getYear();
document.calform.elements[4].value = PadSpaces(Months[Month]);
document.calform.elements[43].value = "Dzisiaj: " +
myDate.getDate() + " " + Months[Month].substring(0,3)
+ ", " + (myDate.getYear());
FillCalendar();
// -->
</script>

Licznik 1:
2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

function DeleteCookie(name) {
var exp = new Date();
FixCookieDate (exp); // Correct for Mac bug
exp.setTime (exp.getTime() - 1); // This cookie is history
var cval = GetCookie (name);
if (cval != null)
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

var expdate = new Date();
var num_visits;
expdate.setTime(expdate.getTime() + (5*24*60*60*1000));
if (!(num_visits = GetCookie("num_visits")))
num_visits = 0;
num_visits++;
SetCookie("num_visits",num_visits,expdate);
//-->





Formularz Kontaktowy:

Kod: Zaznacz cały

<script type="text/javascript" language="JavaScript">
<!--
function msg() {
document.mailer.action = "mailto:"
mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) + '?subject=' + document.mailer.subject.value);
}
// -->
</script><form name="mailer" method="post" action="" enctype="text/plain" onsubmit="(document.mailer.action += mailtoandsubject)">
<table border="0">
<tr valign="top">
<td>Odbiorca:</td>
<td>
<select name="mailtoperson" onchange="msg(this.form)">
<option value="">Wybierz odbiorcę...
<option value="ADRES_E_MAIL_ODBIORCY">NICK_LUB_IMIE_ODBIORCY
<option value="ADRES_E_MAIL_ODBIORCY">NICK_LUB_IMIE_ODBIORCY
</select>
</td>
</tr>
<tr valign="top">
<td>Twoja nazwa:</td>
<td>
<input type="text" size="45" name="name" onchange="msg(this.form)">
</td>
</tr>
<tr valign="top">
<td>Twój adres:</td>
<td>
<input type="text" size="45" name="email" onchange="msg(this.form)">
</td>
</tr>
<tr valign="top">
<td>Priorytet:</td>
<td>
<select name="priority" onchange="msg(this.form)">
<option value="Normal">Normalny
<option value="Urgent">Pilny!
<option value="No Reply Needed">Mało ważny
</select></td>
</tr>
<tr valign="top">
<td>Temat:</td>
<td><input type="text" size="45" name="subject" onchange="msg(this.form)"></td>
</tr>
<tr valign="top">
<td>Treść wiadomości:</td>
<td>
<textarea name="message" cols="45" rows="7" wrap="virtual" onchange="msg(this.form)">
</textarea>
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Wyślij wiadomość">
<input type="reset" value="Od nowa"></td>
</tr>
</table>
</form>

Wyszukiwarka słów na stronie:

Kod: Zaznacz cały

<script>
<!-- Hide from old browsers


//  revised by Alan Koontz -- 9/18/02

var TRange = null;
var win = null;
var frameval = false;

//  SELECTED BROWSER SNIFFER COMPONENTS DOCUMENTED AT
//  http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html

var nom = navigator.appName.toLowerCase();
var agt = navigator.userAgent.toLowerCase();
var is_major  = parseInt(navigator.appVersion);
var is_minor  = parseFloat(navigator.appVersion);
var is_ie     = (agt.indexOf("msie") != -1);
var is_ie4up  = (is_ie && (is_major >= 4));
var is_nav    = (nom.indexOf('netscape')!=-1);
var is_nav4   = (is_nav && (is_major == 4));
var is_mac    = (agt.indexOf("mac")!=-1);
var is_gecko  = (agt.indexOf('gecko') != -1);

//  GECKO REVISION

var is_rev=0
if (is_gecko) {
temp = agt.split("rv:")
is_rev = parseFloat(temp[1])
}

//  USE THE FOLLOWING VARIABLE TO CONFIGURE FRAMES TO SEARCH
//  (SELF OR CHILD FRAME)

//  If you want to search another frame, change "self" below to
//  parent.frames["thisframe"]
//  where "thisframe" is the name of the target frame
//  eg: var frametosearch1 = parent.frames["thisframe"]

var frametosearch1 = self

function search(whichform, whichframe) {

//  TEST FOR IE5 FOR MAC (NO DOCUMENTATION)

if (is_ie4up && is_mac) return;

//  TEST FOR NAV 6 (NO DOCUMENTATION)

if (is_gecko && (is_rev <1)) return;

//  INITIALIZATIONS FOR FIND-IN-PAGE SEARCHES

if(whichform.findthis.value!=null && whichform.findthis.value!='') {


str = whichform.findthis.value;
if(whichframe!=self)
frameval=true;  // this will enable Nav7 to search child frame
win = whichframe;


}

else return;  //  i.e., no search string was entered

var strFound;

//  NAVIGATOR 4 SPECIFIC CODE

if(is_nav4 && (is_minor < 5)) {

strFound=win.find(str); // case insensitive, forward search by default

//  There are 3 arguments available:
//  searchString: type string and it's the item to be searched
//  caseSensitive: boolean -- is search case sensitive?
//  backwards: boolean --should we also search backwards?
//  strFound=win.find(str, false, false) is the explicit
//  version of the above
//  The Mac version of Nav4 has wrapAround, but
//  cannot be specified in JS


}

//  NAVIGATOR 7 SPECIFIC CODE (WILL NOT WORK WITH NAVIGATOR 6)

if (is_gecko && (is_rev >= 1)) {

if(frameval!=false) win.focus(); // force search in specified child frame
strFound=win.find(str, false, false, true, false, frameval, false);


//  There are 7 arguments available:
//  searchString: type string and it's the item to be searched
//  caseSensitive: boolean -- is search case sensitive?
//  backwards: boolean --should we also search backwards?
//  wrapAround: boolean -- should we wrap the search?
//  wholeWord: boolean: should we search only for whole words
//  searchInFrames: boolean -- should we search in frames?
//  showDialog: boolean -- should we show the Find Dialog?


}

if (is_ie4up) {

// EXPLORER-SPECIFIC CODE


if (TRange!=null) {
TRange.collapse(false)
strFound=TRange.findText(str)
if (strFound) TRange.select();

}
if (TRange==null || strFound==0) {
TRange=win.document.body.createTextRange()
strFound=TRange.findText(str)
if (strFound) TRange.select();

}
}

if (!strFound) alert ("Hasła '"+str+"' nie można odnaleść!") // string not found


}
// -->
</script>

<!--  EXAMPLE FORM OF FIND-IN-PAGE SEARCH USING SUBMIT (ALLOWING 'ENTER/RETURN' KEY PRESS EVENT) -->

<form name="form1" action="" onSubmit="search(document.form1, frametosearch1); return false"><input type="text" name="findthis" size="15"> <input type="submit" value="Szukaj"></form>

Zegarek:

Kod: Zaznacz cały


<script language="JavaScript">

/**********************************************************************************
* copyright 1999 William Goudy
* http://www.goudy.net - personal
* http://www.goudy.net/fms - Design Business
* william@goudy.net - Email (feel free to email me)
**********************************************************************************/

function MakeArrayday(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}

return this;
}

function MakeArraymonth(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}

return this;
}

function funClock() {

if (!document.layers && !document.all)
return

var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";

if (hours > 24)
{dn = "PM";
hours = hours - 24;	}

if (hours == 0)
hours = 24;

if (minutes <= 9)
minutes = "0" + minutes;

if (seconds <= 9)
seconds = "0" + seconds;

movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " </b>";

if (document.layers)

{document.layers.go.document.write(movingtime);
document.layers.go.document.close();}

else if (document.all)
go.innerHTML = movingtime;

setTimeout("funClock()",1000)
}

window.onload = funClock;
</SCRIPT>



<span id="go" style="position: absolute;"></span>

Za niedługo dopisze coś... :ok:


<<

Napster

Post autor: Napster » 1 lis 2005, 10:39

Re: Przydatne Skrypty

Zegarek podążający za kursorem

Kod: Zaznacz cały

</head>

<body bgcolor="#000000">
<SCRIPT language=JavaScript>
dCol='lightgreen';//date colour.
fCol='Blue';//face colour.
sCol='red';//seconds colour.
mCol='white';//minutes colour.
hCol='white';//hours colour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;

//Alter nothing below! Alignments will be lost!

d=new Array("Niedziela","Poniedziałek","Wtorek","¦roda","Czwartek","Pi±tek","Sobota");
m=new Array("Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split('');
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
Face='1 2 3 4 5 6 7 8 9 10 11 12';
font='Arial CE';
size=1;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
for (i=0; i < S.length; i++)
document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
for (i=0; i < M.length; i++)
document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
for (i=0; i < H.length; i++)
document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
if (ie){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
}
for (i=0; i < H.length; i++){
var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
}
for (i=0; i < M.length; i++){
var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
}
for (i=0; i < S.length; i++){
var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
}
for (i=0; i < D.length; i++){
var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
}
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</SCRIPT>
</body>
Dźwięk w tle

Kod: Zaznacz cały

<BODY>
<BGSOUND SRC="katalog/plik.wav" LOOP="1">
SRC - URL do pliku.
LOOP - ilość powtórzeń. -1 jeśli odtwarzanie ma ustać dopiero po zamknięciu strony.
VOLUME - współczynnik głośności.
BALANCE - balans między kanałami.

Ikona koło adresu strony

Kod: Zaznacz cały

<HEAD>
<LINK REL="SHORTCUT ICON" HREF="http://www.strona.com/ikona.ico">
<<

mad_prince

Awatar użytkownika

Moderator

Posty: 2162

Rejestracja: 23 lip 2005, 16:11

Lokalizacja: Częstochowa

Post autor: mad_prince » 1 lis 2005, 11:08

Re: Przydatne Skrypty

strona z naprawdę duuużą ilością skryptów ;] http://www.dynamicdrive.com/

Kod: Zaznacz cały

<a> Co właściwie znaczy słowo Ubuntu?
<b> W starym afrykańskim narzeczu: "nie umiem zainstalować Debiana"
"ignorancja częściej jest przyczyną pewności siebie niż wiedza" - Darwin
<<

Maciek

Awatar użytkownika

Administrator

Posty: 3526

Rejestracja: 5 lut 2005, 12:49

Post autor: Maciek » 1 lis 2005, 12:09

Re: Przydatne Skrypty

Quidquid latine dictum sit, altum videtur
Obrazek
Gdy nie masz argumentów w dyskusji, napisz: "o gustach się nie dyskutuje"
<<

Sebekzosw

Post autor: Sebekzosw » 1 lis 2005, 13:15

Re: Przydatne Skrypty

Jak już podajecie linki do skryptów to stronę w wersji PL
<<

Napster

Post autor: Napster » 1 lis 2005, 13:58

Re: Przydatne Skrypty

www.skryptoteka.pl - najlepszy serwis (POLSKI) ze skryptami :] !
<<

Sebekzosw

Post autor: Sebekzosw » 4 lis 2005, 21:46

Re: Przydatne Skrypty

Status tlena:

Kod: Zaznacz cały

<img src="http://status.tlen.pl/?u=NUMER_TLENA&t=1" border="0">

Status wp:

Kod: Zaznacz cały

<img src="http://kontakt.wp.pl/status.html?login=NUMER_WP&styl=0">

Odliczanie sekund:

Kod: Zaznacz cały

    <form name="counter">								
<table>
								<tr>
            <td width="768" valign="middle"><div align="center" class="gotxt">Poczekaj jeszcze
                <!--webbot bot="Validation" S-Data-Type="Number"
                S-Number-Separators="x," --> <input name="d2" class="gotform" value="365" size="10">Sekund. 
            </form> 
	  </tr>

<SCRIPT LANGUAGE="JavaScript" type="text/JavaScript">
<!-- 
var milisec=0 
var seconds=365 
document.counter.d2.value='365' 
   
function display(){ 
if (milisec<=0){ 
milisec=9 
seconds-=1 
} 
if (seconds<=+1){ 
milisec=0 
seconds+=1 
} 
else 
milisec-=1 
document.counter.d2.value=seconds+"."+milisec 
setTimeout("display()",100) 
} 
display() 
--> 
</script>


[ Dodano: Pią 11 Lis, 2005 20:43 ]
Tekst w Obrazku

Kod: Zaznacz cały

<TD class=title background="ADRES_OBRAZKA" height="25"><font color="KOLOR_CZCIONKI">TEKST_NA_OBRAZKU</font>
<<

mistrz

Post autor: mistrz » 17 gru 2005, 20:05

Re: Przydatne Skrypty

Treść tego tematu jest bardzo bogata, więc z tego względu postanawiam go przykleić.
<<

Rafal560

Awatar użytkownika

Wysoko zaawansowany

Posty: 284

Rejestracja: 13 lut 2006, 14:41

Lokalizacja: Orneta

Post autor: Rafal560 » 12 kwie 2006, 18:23

Re: Przydatne Skrypty

Orbita wokół kursora

Kod: Zaznacz cały

<script language="JavaScript"> 
<!-- 

/* 
Dancing Stars cursor (Submitted by Kurt at kurt.grigg@virgin.net) 
Modified and permission granted to Dynamic Drive to feature script in archive 
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com 
*/ 

if (document.all){ 
document.write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">') 
for (xy=0;xy<7;xy++) 
document.write('<div style="position:relative;width:3px;height:3px;background:#FFFF00;font-size:2px;visibility:visible"></div>') 
document.write('</div>') 
} 

if (document.layers) 
{window.captureEvents(Event.MOUSEMOVE);} 
var yBase = 200; 
var xBase = 200; 
var yAmpl = 10; 
var yMax = 40; 
var step = .2; 
var ystep = .5; 
var currStep = 0; 
var tAmpl=1; 
var Xpos = 1; 
var Ypos = 1; 
var i = 0; 
var j = 0; 

if (document.all) 
{ 
  function MoveHandler(){ 
  Xpos = document.body.scrollLeft+event.x; 
  Ypos = document.body.scrollTop+event.y; 
  } 
  document.onmousemove = MoveHandler; 
} 

else if (document.layers) 
{ 
  function xMoveHandler(evnt){ 
  Xpos = evnt.pageX; 
  Ypos = evnt.pageY; 
  } 
  window.onMouseMove = xMoveHandler; 
} 



function animateLogo() { 
if (document.all) 
{ 
 yBase = window.document.body.offsetHeight/4; 
 xBase = window.document.body.offsetWidth/4; 
} 
else if (document.layers) 
{ 
 yBase = window.innerHeight/4 ; 
 xBase = window.innerWidth/4; 
} 

if (document.all) 
{ 
var totaldivs=document.all.starsDiv.all.length 
 for ( i = 0 ; i < totaldivs ; i++ ) 
 { 
var tempdiv=document.all.starsDiv.all[i].style 
  tempdiv.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); 
  tempdiv.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); 
 } 
} 

else if (document.layers) 
{ 
 for ( j = 0 ; j < 7 ; j++ ) 
 { 
var templayer="a"+j 
  document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); 
  document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); 
 } 
} 
currStep += step; 
setTimeout("animateLogo()", 15); 
} 
animateLogo(); 
// --> 
</script>


Ustaw jako stratową

Kod: Zaznacz cały

<A HREF=# onClick="this.style.behavior='url(#default#homepage)'; 
this.setHomePage('http://www.forum.[zlamanie regulaminu]')"><b><font color="000000">Ustaw 
jako stronę startową</font></b></a> 
UWAGA! W tym skrypcie też trzeba zmienić adres, a tam gdzie pisze font color="000000" zamiast zer trzeba wpisać angielską nazwę koloru. Jeżeli chcecie czarną czcionkę nie zmieniajcie tych zer.
Lista kolorów:
biały - white
żółty - yellow
pomarańczowy - orange
czerwony - red
niebieski - blue
zielony - green
brązowy - brown
różowy - pink
jasno niebieski - aqua





Dodaj do ulubionych

Kod: Zaznacz cały

<a href="javascript:NoneFooter();" class="minigrey" onMouseOver="ShowStatus('');" onClick="window.external.AddFavorite('http://www.forum.forumer.pl','Forum Pomocy');ShowStatus('');" onMouseOut="ShowStatus('');">Dodaj do ulubionych</a>
UWAGA! W tym skrypcie musicie adres z www.forum.forumer.pl zmienić na adres Waszej strony, a tekst "forum pomocy" na krótki opis Waszej strony.




Licznik

Kod: Zaznacz cały

<script type="text/javascript" src="http://www.darmowe-liczniki.com/usluga.licznik.1953"></script>



Snikers

Kod: Zaznacz cały

<iframe src="http://www.snikers.pl/okno.php?color=000020" width=575 height=240 frameborder=0 SCROLLING=no></iframe>


Własny kursor

Kod: Zaznacz cały

<STYLE> BODY { cursor : url(ADRES KURSORA MOŻNA WRZUCIĆ NA IMAGESHACK.US); } </STYLE> 



Status TLEN

Kod: Zaznacz cały

<B><a href="http://ludzie.tlen.pl/TWÓJ LOGIN/" target="_blank"><img 
src="http://status.tlen.pl/?u=TWÓJ LOGIN&t=1" width=18 height=18 border=0 
alt="Mój status"></a></B> 




Chłopiec czy dziewczyna

Kod: Zaznacz cały

: 
function imie() { 
var rezultat = prompt("Jak masz na imię?",""); 
if(rezultat!=null) { 
var ostatnia_litera = rezultat.charAt(rezultat.length-1); 
if(ostatnia_litera == "a") { 
window.alert("dziewczynka"); 
} 
else if(ostatnia_litera != "a") { 
window.alert("chłopiec"); 
} 
} 
} 


<a href="#" onclick="imie();">Podaj swoje imię</a>  




Ile jest znaków w wyrazie

Kod: Zaznacz cały

function ile(wyraz) { 
var ilosc = wyraz.length; 
window.alert(ilosc); 
} 
<form id="formularz"> 
<input type="text" value="" name="wyraz" style="width: 80px;"> 
<input type="button" value="OK" onclick="ile(wyraz.value);"> 
</form> 




Tabliczka mnożenia

Kod: Zaznacz cały

function tabliczka() { 
document.write("<table border=\"1\">"); 
  
for (i=1; i<=10; i++) 
{ 
  
document.write("<tr><td>" + i + "</td>"); 
for (j=1; j<=9; j++) 
{ 
if (j != 1) { 
document.write("<td>" + i*j + "</td>"); 
} 
} 
  
document.write("</tr>"); 
} 
document.write("</table>"); 
  
} 

<script>tabliczka();</script> 


Data i czas po polsku:

Kod: Zaznacz cały

<SPAN id="Data" style="POSITION: absolute; LEFT: 0; TOP: 0; FONT-SIZE: 10pt; 
FONT-WEIGHT: bold; COLOR: #012345; FONT-FAMILY: Verdana, Arial;"></SPAN> 
<script> 
// Autor skryptu: Mariusz Dziawa 
// E-mail: marxx@go2.pl 
// 
function czas() { 

 if (!document.layers&&!document.getElementById&&!document.all) 
 return 

  var godzina, minuty, sekundy, dzien, licz_dzien, miesiac, dzisiaj, rok, tekst_miesiac, tekst_dzien; 
  dzisiaj = new Date(); 
  godzina=dzisiaj.getHours(); 
  minuty=dzisiaj.getMinutes(); 
  sekundy=dzisiaj.getSeconds(); 
  rok=dzisiaj.getYear(); 
  dzien=dzisiaj.getDate(); 
  licz_dzien=dzisiaj.getDay(); 
  if (licz_dzien==0) {tekst_dzien="Niedziela"} 
  if (licz_dzien==1) {tekst_dzien="Poniedziałek"} 
  if (licz_dzien==2) {tekst_dzien="Wtorek"} 
  if (licz_dzien==3) {tekst_dzien="Środa"} 
  if (licz_dzien==4) {tekst_dzien="Czwartek"} 
  if (licz_dzien==5) {tekst_dzien="Piątek"} 
  if (licz_dzien==6) {tekst_dzien="Sobota"} 
  miesiac=dzisiaj.getMonth()+1; 
  if (miesiac==1) {tekst_miesiac="stycznia"} 
  if (miesiac==2) {tekst_miesiac="lutego"} 
  if (miesiac==3) {tekst_miesiac="marca"} 
  if (miesiac==4) {tekst_miesiac="kwietnia"} 
  if (miesiac==5) {tekst_miesiac="maja"} 
  if (miesiac==6) {tekst_miesiac="czerwca"} 
  if (miesiac==7) {tekst_miesiac="lipca"} 
  if (miesiac==8) {tekst_miesiac="sierpnia"} 
  if (miesiac==9) {tekst_miesiac="września"} 
  if (miesiac==10) {tekst_miesiac="października"} 
  if (miesiac==11) {tekst_miesiac="listopada"} 
  if (miesiac==12) {tekst_miesiac="grudnia"} 
         if ((rok>=00) && (rok<=1900)) {rok=1900+rok;} 
         if (miesiac < 10) {miesiac="0"+miesiac;} 
     if (dzien < 10) {dzien="0"+dzien;} 
     if (godzina < 10) {godzina="0"+godzina;} 
         if (minuty < 10) {minuty="0"+minuty;} 
     if (sekundy < 10) {sekundy="0"+sekundy;} 
  pelnyczas=tekst_dzien + ", " + dzien + " " + tekst_miesiac + " "+rok+"<br>" 
     + godzina+":"+minuty+":"+sekundy; 


if (document.getElementById){ 
document.getElementById("Data").innerHTML=pelnyczas 
} 
else if (document.layers){ 
document.layers.Data.document.write(pelnyczas) 
} 
else if (document.all) 
Data.innerHTML=pelnyczas 

// Czestotliwosc odswiezania 
setTimeout("czas()",500) 
} 

</script> 

<body onLoad="czas()"> 



Dni tygodnia:

Kod: Zaznacz cały

<SCRIPT LANGUAGE="JavaScript"> 
<!-- 
document.write("<center><b>") 
now = new Date() 
if (now.getDay() == 5) 
document.write("Cudownie, już piątek!") 

if (now.getDay() == 6) 
document.write("Wreszcie upragniony weekend!") 

if (now.getDay() == 0) 
document.write("Ojej, weekend się powoli kończy!") 

if (now.getDay() == 1) 
document.write("Dzisiaj jest poniedziałek. To na pewno będzie udany tydzień!") 

if (now.getDay() == 2) 
document.write("Wtorek, poniedziałek już na szczęście za nami!") 

if (now.getDay() == 3) 
document.write("Środa, czy Twój tydzień jest również udany?") 

if (now.getDay() == 4) 
document.write("Czwartek, weekend już tuż tuż...") 
document.write("</b></center>") 

//--> 
</SCRIPT> 



Jesteś tutaj już:

Kod: Zaznacz cały

<body onLoad="window.setTimeout('getSecs()',1)"> 

<script> 

//       This script is written by Patrick Meirmans 
//       If you want to use it, send me an e-mail at mijter@dds.nl 
//       and be sure to include your URL, I'ld like to see how you used it 
//       If you have mailed me you are free to change this script 
//       anyway you like 
//       by the way, my homepage is at: 
//       http://www.geocities.com/Nashville/2956/ 
//       You might want to take a look at it. 

startday = new Date(); 
clockStart = startday.getTime(); 
function initStopwatch() 
{ 
 var myTime = new Date(); 
        var timeNow = myTime.getTime(); 
        var timeDiff = timeNow - clockStart; 
        this.diffSecs = timeDiff/1000; 
        return(this.diffSecs); 
} 
function getSecs() 
{ 
        var mySecs = initStopwatch(); 
        var mySecs1 = ""+mySecs; 
        mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")); 
        document.tijd.hiero.value=mySecs1 
        window.setTimeout('getSecs()',1000); 
        if (mySecs1==60) {alert("jesteś tutaj już 60 sekund ...") } 
        if (mySecs1==333) {alert("jesteś tutaj już 333 sekundy...") } 
        if (mySecs1==666) {alert("jesteś tutaj już 666 sekund ...") } 
        if (mySecs1==999) {alert("Ciągle jesteś zainteresowany tą stroną; to już 999 sekund...") } 
} 
//       To get rid of the alerts, you can just delete the three lines above 
//       or just one or two of them 
//       Change the 333, 666 and 999 to whatever you like 
//       For the messages, just change the text between the " " 
//       to whatever you like, 
//       Have fun!! 

</script> 
</P> 
<P><form name="tijd"><P> 
<center>Jesteś tutaj już przez: 
<br> 
<input size=4 name=hiero> 
<br>sekund. 
</form> 
</center> 




Bardzo ważna informacja:

Kod: Zaznacz cały

<script language="JavaScript"> 
<!-- begin 
var id,pause=0,position=0,revol=9; 
function banner() { 
var i,k; 
var msg="                              Bardzo ważna informacja                     "; 
var speed=10; 
document.form2.banner.value=msg.substring(position,position+80); 
if(position++==msg.length) { 
if (revol-- < 2) return; 
position=0; 
} 
id=setTimeout("banner()",1000/speed); 
} 
// end --> 
</script> 

<form name="form2"> 
<input type="text" name="banner" size="50"> 
</FORM> 



Komunikat przed wejściem na strone:

Kod: Zaznacz cały

<SCRIPT LANGUAGE="JavaScript"> 
<!-- 
//modified by Coffeecup.com 
function Info() 
{if (!confirm("Wizyta na tej stronie może być bardzo niebezpieczna. Kliknij <OK>, jeżeli się nie boisz. Kliknij <Anuluj>, jeżeli nie chcesz ryzykować!")) 
history.go(-1);return " "} 
document.writeln(Info()) 
<!--End--> 
</script> 


Prosze czekać:

Kod: Zaznacz cały

<SCRIPT LANGUAGE="JavaScript"> 
if(top.frames.length==0) { 
      document.write("<B>PCkurier się ładuje... proszę czekać...</B>"); 
      window.clear; 
 window.location.href="http://www.pckurier.pl"; 
  } else { 
      document.write("<B><BR>Coś nie tak...</B>"); 
      top.frames[1].location.href="usterka.htm"; 
  } 
</SCRIPT> 



Blokada prawego klawisza:

Kod: Zaznacz cały

<script language="Javascript1.2"> 

// (C) 2000 www.CodeLifter.com 
// http://www.codelifter.com 
// Free for all users, but leave in this  header 

// Set the message for the alert box 
am = "Niestety, prawy klawisz nie działa!"; 

// do not edit below this line 
// =========================== 
bV  = parseInt(navigator.appVersion) 
bNS = navigator.appName=="Netscape" 
bIE = navigator.appName=="Microsoft Internet Explorer" 

function nrc(e) { 
   if (bNS && e.which > 1){ 
      alert(am) 
      return false 
   } else if (bIE && (event.button >1)) { 
     alert(am) 
     return false; 
   } 
} 

document.onmousedown = nrc; 
if (document.layers) window.captureEvents(Event.MOUSEDOWN); 
if (bNS && bV<5) window.onmousedown = nrc; 

</script> 





Blokada prawego klawisza 2:

Kod: Zaznacz cały

<script language="Javascript1.2"> 

// (C) 2000 www.CodeLifter.com 
// http://www.codelifter.com 
// Free for all users, but leave in this  header 

// Set the message for the alert box 
am = "Niestety prawy klawisz nie działa."; 

// do not edit below this line 
// =========================== 
bV  = parseInt(navigator.appVersion) 
bNS = navigator.appName=="Netscape" 
bIE = navigator.appName=="Microsoft Internet Explorer" 

function nrc(e) { 
   if (bNS && e.which > 1){ 
      alert(am) 
      return false 
   } else if (bIE && (event.button >1)) { 
     alert(am) 
     return false; 
   } 
} 

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

</script> 




Detekcja przeglądarki:

Kod: Zaznacz cały

<script language="JavaScript"> 
<!-- 
   document.write("Używasz " + navigator.appName + " " + navigator.appVersion); 
// --> 
</script> 






Ostrzeżenie, powitanie przed wejsciem na strone:

Kod: Zaznacz cały

<SCRIPT LANGUAGE="JavaScript"> 
<!--- Hide script from old browsers. 
alert("Witam na mojej stronie!!") 
// End the hiding here. --> 
</SCRIPT>









Kolorowy scroolbar:
Efektowny skrypt kolorujący według naszego uznania pasek przewijania przeglądarki. Skrypt działa w przeglądarce IE od wersji 5.5. Jest on ciekawy dlatego że scroll zmienia swoje kolory po najechaniu na niego myszą. W lini scrollBar(null,null,"neo") możesz wpisać jedną z czterech zdefiniowanych wartości "blue", "orange", "red", i "green". Kolory w tych wartościach możesz również zdefiniować.

Kod: Zaznacz cały

<script language="JavaScript1.2"> 
<!-- 

//onMouseover Scrollbar effect- by Svetlin Staev (svetlins@yahoo.com) 
//Submitted to Dynamic Drive 
//Visit http://www.dynamicdrive.com for this script 

/*---------------[IE 5.5 Scrollbars colorer]--------------------*/ 
function scrollBar(line,face,theme) 
   { 
      if (!line||!face) 
         { 
            line=null; 
            face=null; 
            switch(theme) // Predefined themes 
               { 
                  case "blue": 
                     var line="#78AAFF"; 
                     var face="#EBF5FF"; 
                     break; 
                  case "orange": 
                     var line="#FBBB37"; 
                     var face="#FFF9DF"; 
                     break; 
                  case "red": 
                     var line="#FF7979"; 
                     var face="#FFE3DD"; 
                     break; 
                  case "green": 
                     var line="#00C600"; 
                     var face="#D1EED0"; 
                     break; 
                  case "neo": 
                     var line="#BC7E41"; 
                     var face="#EFE0D1"; 
                     break; 
               } 
         } 

            with(document.body.style) 
               { 
                  scrollbarDarkShadowColor=line; 
                  scrollbar3dLightColor=line; 
                  scrollbarArrowColor="black"; 
                  scrollbarBaseColor=face; 
                  scrollbarFaceColor=face; 
                  scrollbarHighlightColor=face; 
                  scrollbarShadowColor=face; 
                  scrollbarTrackColor="#F3F3F3"; 
               } 
         } 

/*------------------[Pointer coordinates catcher]---------------*/ 
function colorBar(){ 
      var w = document.body.clientWidth; 
      var h = document.body.clientHeight; 
      var x = event.clientX; 
      var y = event.clientY; 
      if(x>w) scrollBar('#000080','#BFDFFF'); // Your colors 
      else scrollBar(null,null,"blue"); // A predefined theme 
   } 

if (document.all){ 
scrollBar(null,null,"neo"); 
document.onmousemove=colorBar; 
} 
//--> 
</script> 









Przelicznik transferu:

Kod: Zaznacz cały

<script LANGUAGE="JavaScript"> 
<!-- Begin 
// Script elements copyright (c) 1997 IMGIS Inc. 
// All rights reserved. 

function MakeArray(n) { 
this.length = n; 
for (var i = 1; i <= n; i++) { 
this[i] = 0 } 
return this 
} 

speedVar = new MakeArray(11); 
speedVar[1] = "1.1719" 
speedVar[2] = "1.7578" 
speedVar[3] = "3.5156" 
speedVar[4] = "6.8359" 
speedVar[5] = "7.8125" 
speedVar[6] = "16.6250" 
speedVar[7] = "187.9883" 
speedVar[8] = "1220.7031" 
speedVar[9] = "3295.8984" 
speedVar[10] = "5493.1641" 
speedVar[11] = "18920.8984" 

function compute(form, mult){ 
for (i=1; i < 12; i++){ 
if (form.size.value==null||form.size.value.length==0){ 
form.size.value=0;} 
if (form[i+"hour"].value==null||form[i+"hour"].value.length==0){ 
form[i+"hour"].value=0;} 
if (form[i+"minute"].value==null||form[i+"minute"].value.length==0){ 
form[i+"minute"].value=0;} 
if (form[i+"second"].value==null||form[i+"second"].value.length==0){ 
form[i+"second"].value=0;} 
if (mult != 0 && form.size.value != 0){ 
with (Math){ 
var speed = speedVar[i]; 
var TotalTime = ((form.size.value*mult)/speed); 
var TotalHours = floor((TotalTime/3600)); 
var TotalHoursMod = (TotalTime%3600); 
var TotalMin = floor(TotalHoursMod/60); 
var TotalMinMod = (TotalHoursMod%60); 
var TotalSec = floor(TotalMinMod); 
form[i+"hour"].value=TotalHours; 
form[i+"minute"].value=TotalMin; 
form[i+"second"].value=TotalSec; 
} 
} 
} 

return; 
} 

// End --> 
</script> 

<table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5"> 
<tr> 
<td WIDTH="100%"> 
<form> 
<input type="hidden" name="7hour" value><input type="hidden" name="7minute" value> 
<input type="hidden" name="7second" value><input type="hidden" name="8hour" value> 
<input type="hidden" name="8minute" value><input type="hidden" name="8second" value> 
<input type="hidden" name="9hour" value><input type="hidden" name="9minute" value> 
<input type="hidden" name="9second" value><input type="hidden" name="10hour" value> 
<input type="hidden" name="10minute" value><input type="hidden" name="10second" value> 
<input type="hidden" name="11hour" value><input type="hidden" name="11minute" value> 
<input type="hidden" name="11second" value><div align="center"><center><table BORDER="4"> 
<tr> 
<td BGCOLOR="#D4FFD4"> Plik ma: <input TYPE="TEXT" NAME="size" SIZE="10"> 
<input TYPE="BUTTON" OnClick="compute(this.form, 1)" VALUE="KB"> 
<input TYPE="BUTTON" OnClick="compute(this.form, 1024)" VALUE="MB"> 
</td> <td colspan="3" BGCOLOR="#D4FFD4"> 
<div align="center"><center><p><b>Przelicznik</b> </td> 
</tr> 
<tr align="center"> 
<th>Twój modem ma...</th> 
<th>Godzin </th> 
<th>Minut</th> 
<th>Sekund</th> 
</tr> 
<tr align="center"> 
<td BGCOLOR="#ffffff">9.6 Kb</td> 
<td><input TYPE="TEXT" NAME="1hour" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="1minute" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="1second" SIZE="6"></td> 
</tr> 
<tr align="center"> 
<td BGCOLOR="#ffffff">14.4 Kb</td> 
<td><input TYPE="TEXT" NAME="2hour" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="2minute" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="2second" SIZE="6"></td> 
</tr> 
<tr align="center"> 
<td BGCOLOR="#ffffff">28.8 Kb</td> 
<td><input TYPE="TEXT" NAME="3hour" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="3minute" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="3second" SIZE="6"></td> 
</tr> 
<tr align="center"> 
<td BGCOLOR="#ffffff">56 Kb</td> 
<td><input TYPE="TEXT" NAME="4hour" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="4minute" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="4second" SIZE="6"></td> 
</tr> 
<tr align="center"> 
<td BGCOLOR="#ffffff">ISDN (64 Kb)</td> 
<td><input TYPE="TEXT" NAME="5hour" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="5minute" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="5second" SIZE="6"></td> 
</tr> 
<tr align="center"> 
<td BGCOLOR="#ffffff">ISDN (128 Kb)</td> 
<td><input TYPE="TEXT" NAME="6hour" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="6minute" SIZE="6"> </td> 
<td><input TYPE="TEXT" NAME="6second" SIZE="6"></td> 
</tr> 
<tr align="center"> 
<td BGCOLOR="#D4FFD4"> </td> 
<td BGCOLOR="#D4FFD4"> </td> 
<td BGCOLOR="#D4FFD4"> </td> 
<td BGCOLOR="#D4FFD4"></font> </td> 
</tr> 
</table> 
</center></div> 
</form> 
</td> 
</tr> 
</table> 
</center> 




Wyszukiwarka internetowa:

Kod: Zaznacz cały

<script language="JavaScript"> 
<!-- 
// 
// Script by Jari Aarniala [www.mbnet.fi/~foo -- foo@mbnet.fi] 
// 
// This script makes it easy to choose with which search engine 
// you`d like to search the net. You may use this if you keep this 
// text here... 
// 

function startSearch(){ 
searchString = document.searchForm.searchText.value; 
if(searchString != ""){ 
searchEngine = document.searchForm.whichEngine.selectedIndex + 1; 
finalSearchString = ""; 

if(searchEngine == 1){ 
finalSearchString = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString; 
} 
if(searchEngine == 2){ 
finalSearchString = "http://av.yahoo.com/bin/query?p=" + searchString + "&hc=0&hs=0"; 
} 
if(searchEngine == 3){ 
finalSearchString = "http://www.excite.com/search.gw?trace=a&search=" + searchString; 
} 
if(searchEngine == 4){ 
finalSearchString = "http://www.hotbot.com/?SW=web&SM=MC&MT=" + searchString + 
"&DC=10&DE=2&RG=NA&_v=2&act.search.x=89&act.search.y=7"; 
} 
if(searchEngine == 5){ 
finalSearchString = "http://www.infoseek.com/Titles?qt=" + searchString + "&col=WW&sv=IS&lk=noframes&nh=10"; 
} 
if(searchEngine == 6){ 
finalSearchString = "http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query=" + searchString + "&x=45&y=11"; 
} 
if(searchEngine == 7){ 
finalSearchString = "http://netfind.aol.com/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1"; 
} 

location.href = finalSearchString; 
} 
} 

// --> 
</script> 
<basefont face="Verdana, Arial, sans-serif"> 
<form name="searchForm"> 
<div align="center"><center><table width="320" border="1" cellpadding="3" cellspacing="2" bgcolor="#444444"> 
<tr> 
<td bgcolor="lightblue"><font size="1" face="Verdana, Arial, sans-serif">Search for:<br> 
</font></td> 
<td bgcolor="lightblue"><font size="1" face="Verdana, Arial, sans-serif">Search from: </font></td> 
<td bgcolor="lightblue">  </td> 
</tr> 
<tr> 
<td bgcolor="navajowhite"><input style="background-color: rgb(255,255,255); background-repeat: repeat; background-attachment: scroll; background-position: 0%" 
name="searchText" type="text" size="20"> </td> 
<td bgcolor="navajowhite"><select style="background-color: rgb(255,255,255); background-repeat: repeat; background-attachment: scroll; background-position: 0%" 
name="whichEngine" size="1"> 
<option selected>Altavista </option> 
<option>Yahoo! </option> 
<option>Excite </option> 
<option>Hotbot </option> 
<option>Infoseek </option> 
<option>Lycos </option> 
<option>AOL Netfind </option> 
</select> </td> 
<td bgcolor="navajowhite"><input type="button" value="Send" onClick="startSearch()"> </td> 
</tr> 
</table> 
</center></div> 
</form> 








Wyszukiwarka google:

Kod: Zaznacz cały

<SCRIPT Language="JavaScript"> 
function szukaj(){ 
if(wyszukiwarka.slowo.value==""){ 
alert("Wpisz szukane słowo !!!"); 
}else{ 
window.open("http://www.google.com/search?q="+wyszukiwarka.slowo.value); 
 } 
} 
</SCRIPT> 

<form name="wyszukiwarka"> 
  <p><input type="text" name="slowo"> <input type="button" onclick="szukaj()" value="Szukaj"></p> 
</form>






Scroller tytułu w IE:

Kod: Zaznacz cały

<title>Tu wpisz tytuł </title> 
<script> 

//Document title scroller- By Graeme Robinson (me@graemerobinson.co.uk) 
//Exlusive permission granted to Dynamic Drive to include this script in their DHTML archive. 
//For full source code, terms of use visit http://www.dynamicdrive.com 

var repeat=0 //enter 0 to not repeat scrolling after 1 run, othersise, enter 1 
var title=document.title 
var leng=title.length 
var start=1 
function titlemove() { 
  titl=title.substring(start, leng) + title.substring(0, start) 
  document.title=titl 
  start++ 
  if (start==leng+1) { 
    start=0 
    if (repeat==0) 
    return 
  } 
  setTimeout("titlemove()",140) 
} 
if (document.title) 
titlemove() 
</script>








Wyszukiwarka słów na stronie:

Kod: Zaznacz cały

<script> 
<!-- Hide from old browsers 

/* 
Find In Page Script -- Submitted/revised by Alan Koontz (alankoontz@REMOVETHISyahoo.com) 
Permission granted to Dynamicdrive.com to feature script in archive. 
For full source code, visit http://www.dynamicdrive.com/ 
*/ 

//  revised by Alan Koontz -- 9/18/02 

var TRange = null; 
var win = null; 
var frameval = false; 

//  SELECTED BROWSER SNIFFER COMPONENTS DOCUMENTED AT 
//  http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html 

var nom = navigator.appName.toLowerCase(); 
var agt = navigator.userAgent.toLowerCase(); 
var is_major  = parseInt(navigator.appVersion); 
var is_minor  = parseFloat(navigator.appVersion); 
var is_ie     = (agt.indexOf("msie") != -1); 
var is_ie4up  = (is_ie && (is_major >= 4)); 
var is_nav    = (nom.indexOf('netscape')!=-1); 
var is_nav4   = (is_nav && (is_major == 4)); 
var is_mac    = (agt.indexOf("mac")!=-1); 
var is_gecko  = (agt.indexOf('gecko') != -1); 

//  GECKO REVISION 

var is_rev=0 
if (is_gecko) { 
temp = agt.split("rv:") 
is_rev = parseFloat(temp[1]) 
} 

//  USE THE FOLLOWING VARIABLE TO CONFIGURE FRAMES TO SEARCH 
//  (SELF OR CHILD FRAME) 

//  If you want to search another frame, change "self" below to 
//  parent.frames["thisframe"] 
//  where "thisframe" is the name of the target frame 
//  eg: var frametosearch1 = parent.frames["thisframe"] 

var frametosearch1 = self 

function search(whichform, whichframe) { 

//  TEST FOR IE5 FOR MAC (NO DOCUMENTATION) 

if (is_ie4up && is_mac) return; 

//  TEST FOR NAV 6 (NO DOCUMENTATION) 

if (is_gecko && (is_rev <1)) return; 

//  INITIALIZATIONS FOR FIND-IN-PAGE SEARCHES 

if(whichform.findthis.value!=null && whichform.findthis.value!='') { 


       str = whichform.findthis.value; 
       if(whichframe!=self) 
       frameval=true;  // this will enable Nav7 to search child frame 
       win = whichframe; 

    
} 

else return;  //  i.e., no search string was entered 

var strFound; 

//  NAVIGATOR 4 SPECIFIC CODE 

if(is_nav4 && (is_minor < 5)) { 
    
  strFound=win.find(str); // case insensitive, forward search by default 

//  There are 3 arguments available: 
//  searchString: type string and it's the item to be searched 
//  caseSensitive: boolean -- is search case sensitive? 
//  backwards: boolean --should we also search backwards? 
//  strFound=win.find(str, false, false) is the explicit 
//  version of the above 
//  The Mac version of Nav4 has wrapAround, but 
//  cannot be specified in JS 

  
   } 

//  NAVIGATOR 7 SPECIFIC CODE (WILL NOT WORK WITH NAVIGATOR 6) 

if (is_gecko && (is_rev >= 1)) { 
    
    if(frameval!=false) win.focus(); // force search in specified child frame 
    strFound=win.find(str, false, false, true, false, frameval, false); 


//  There are 7 arguments available: 
//  searchString: type string and it's the item to be searched 
//  caseSensitive: boolean -- is search case sensitive? 
//  backwards: boolean --should we also search backwards? 
//  wrapAround: boolean -- should we wrap the search? 
//  wholeWord: boolean: should we search only for whole words 
//  searchInFrames: boolean -- should we search in frames? 
//  showDialog: boolean -- should we show the Find Dialog? 


} 

 if (is_ie4up) { 

  // EXPLORER-SPECIFIC CODE 


  if (TRange!=null) { 
    TRange.collapse(false) 
    strFound=TRange.findText(str) 
    if (strFound) TRange.select(); 
  
  } 
  if (TRange==null || strFound==0) { 
    TRange=win.document.body.createTextRange() 
    strFound=TRange.findText(str) 
    if (strFound) TRange.select(); 

  } 
 } 

  if (!strFound) alert ("String '"+str+"' not found!") // string not found 

        
} 
// --> 
</script> 

<!--  EXAMPLE FORM OF FIND-IN-PAGE SEARCH USING SUBMIT (ALLOWING 'ENTER/RETURN' KEY PRESS EVENT) --> 

<form name="form1" action="" onSubmit="search(document.form1, frametosearch1); return false"><input type="text" name="findthis" size="15"> <input type="submit" value="Find in Page"></form>








Kursor karta:

Kod: Zaznacz cały

<script><!-- 
obrazek="karta"; 
//--></script> 
<SCRIPT src="http://www.70.pl/grafika/kursory/kursory.js"> 
</SCRIPT> 








Kursor celownik:

Kod: Zaznacz cały

<script><!-- 
obrazek="celownik"; 
//--></script> 
<SCRIPT src="http://www.70.pl/grafika/kursory/kursory.js"> 
</SCRIPT> 



Kursor dziecko:

Kod: Zaznacz cały

<script><!-- 
obrazek="dziecko"; 
//--></script> 
<SCRIPT src="http://www.70.pl/grafika/kursory/kursory.js"> 
</SCRIPT> 



Imieniny, data, szukaj solenizantów:

Kod: Zaznacz cały

<SCRIPT> 
<!-- 
kolor_tla = 'F1DEAE'; 
czcionka = 'Verdana'; 
wielkosc_czcionki = '1'; 
kolor_czcionki = '000000'; 
wysokosc = '15'; 
szerokosc = '550'; 
//--></SCRIPT> 
<SCRIPT src="http://www.70.pl/imieniny_2.js"> 
</SCRIPT> 



Chyba najlepsza wyszukiwrka. 10 wyszukiwarek w jeednym:

Kod: Zaznacz cały

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="http://www.70.pl/wyszukiwarka.js"></SCRIPT>



Przelicznik bajtów:

Kod: Zaznacz cały

<form name="bandwidth"> 

  <p><input type="text" name="original" size="20" value=1024> <select size="1" name="units"> 
    <option value="Bytes">Bajty</option> 
    <option value="Kb">Kilobajty</option> 
    <option value="Mb">Megabajty</option> 
    <option value="Gb">Gigabajty</option> 
  </select> <input type="button" value="Przelicz" name="B1" onClick="calculate()"></p> 
</form> 

<p> 

<script> 

var bytevalue=0 
function calculate(){ 
var invalue=document.bandwidth.original.value 
var selectunit=document.bandwidth.units.options[document.bandwidth.units.selectedIndex].value 
if (selectunit=="Bytes") 
bytevalue=invalue 
else if (selectunit=="Kb") 
bytevalue=invalue*1024 
else if (selectunit=="Mb") 
bytevalue=invalue*1024*1024 
else if (selectunit=="Gb") 
bytevalue=invalue*1024*1024*1024 

alert (invalue+" "+selectunit+" to:\n\n- "+bytevalue+" Bajtów\n- "+Math.round(bytevalue/1024)+" Kb\n- "+Math.round(bytevalue/1024/1024)+" Mb\n- "+Math.round(bytevalue/1024/1024/1024)+" Gb\n") 
} 

</script>







Imageshack.us:

Kod: Zaznacz cały

<center><iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="320" height="100">Update your browser for ImageShack.us!!!</iframe></center>



Numer IP, host, przeglądarka:

Kod: Zaznacz cały

<script TYPE="text/javascript" 
SRC="http://www.skrypty.webdiary.pl/all.php"></script> 







Śnieg

Kod: Zaznacz cały

<script language="JavaScript1.2"> 

/* 
Snow Effect Script 
Submitted by Altan d.o.o. (snow@altan.hr, http://www.altan.hr/snow/index.html) 
Permission granted to Dynamicdrive.com to feature script in archive 
For full source code to this script, visit http://dynamicdrive.com 
*/ 


//Configure below to change URL path to the snow image 
var snowsrc="http://img506.imageshack.us/img506/4899/snieg5cg.gif" 
// Configure below to change number of snow to render 
var no = 10; 

var ns4up = (document.layers) ? 1 : 0; // browser sniffer 
var ie4up = (document.all) ? 1 : 0; 
var ns6up = (document.getElementById&&!document.all) ? 1 : 0; 

var dx, xp, yp; // coordinate and position variables 
var am, stx, sty; // amplitude and step variables 
var i, doc_width = 800, doc_height = 600; 

if (ns4up||ns6up) { 
doc_width = self.innerWidth; 
doc_height = self.innerHeight; 
} else if (ie4up) { 
doc_width = document.body.clientWidth; 
doc_height = document.body.clientHeight; 
} 

dx = new Array(); 
xp = new Array(); 
yp = new Array(); 
am = new Array(); 
stx = new Array(); 
sty = new Array(); 

for (i = 0; i < no; ++ i) { 
dx[i] = 0; // set coordinate variables 
xp[i] = Math.random()*(doc_width-50); // set position variables 
yp[i] = Math.random()*doc_height; 
am[i] = Math.random()*20; // set amplitude variables 
stx[i] = 0.02 + Math.random()/10; // set step variables 
sty[i] = 0.7 + Math.random(); // set step variables 
if (ns4up) { // set layers 
if (i == 0) { 
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><a href=\"http://dynamicdrive.com/\"><img src='"+snowsrc+"' border=\"0\"></a></layer>"); 
} else { 
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>"); 
} 
} else if (ie4up||ns6up) { 
if (i == 0) { 
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"></a></div>"); 
} else { 
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></div>"); 
} 
} 
} 

function snowNS() { // Netscape main animation function 
for (i = 0; i < no; ++ i) { // iterate for every dot 
yp[i] += sty[i]; 
if (yp[i] > doc_height-50) { 
xp[i] = Math.random()*(doc_width-am[i]-30); 
yp[i] = 0; 
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random(); 
doc_width = self.innerWidth; 
doc_height = self.innerHeight; 
} 
dx[i] += stx[i]; 
document.layers["dot"+i].top = yp[i]; 
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); 
} 
setTimeout("snowNS()", 10); 
} 

function snowIE_NS6() { // IE and NS6 main animation function 
for (i = 0; i < no; ++ i) { // iterate for every dot 
yp[i] += sty[i]; 
if (yp[i] > doc_height-50) { 
xp[i] = Math.random()*(doc_width-am[i]-30); 
yp[i] = 0; 
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random(); 
doc_width = ns6up?window.innerWidth : document.body.clientWidth; 
doc_height = ns6up?window.innerHeight : document.body.clientHeight; 
} 
dx[i] += stx[i]; 
if (ie4up){ 
document.all["dot"+i].style.pixelTop = yp[i]; 
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); 
} 
else if (ns6up){ 
document.getElementById("dot"+i).style.top=yp[i]; 
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]); 
} 
} 
setTimeout("snowIE_NS6()", 10); 
} 

if (ns4up) { 
snowNS(); 
} else if (ie4up||ns6up) { 
snowIE_NS6(); 
} 

</script> 







Tłumacz Morsa:

Kod: Zaznacz cały

<script> 
function clearing() 
{ 
 window.document.morse.output.value = " "; 
} 


function transform() 
{ 
  var zeichen = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", i, d, f; 
  var eingabe = window.document.morse.input; 
  var ausgabe = window.document.morse.output; 
  var laenge = eingabe.value.length; 

   for(i=0; i<laenge; i++) 
    { 
     i=eingabe.value.charAt(i); 
     if(zeichen.indexOf (i) ==-1) 
       { 
        alert("Bitte nur Buchstaben eingeben."); 
        break; 
       } 
     else 
       { 
        for(f=0; f<laenge; f++) 
         { 
          switch (eingabe.value.charAt(f)) 
            { 
             case 'a':{ausgabe.value = ausgabe.value + " .- "; break;} 
             case 'b':{ausgabe.value = ausgabe.value + " -... "; break;} 
             case 'c':{ausgabe.value = ausgabe.value + " -.-. "; break;} 
             case 'd':{ausgabe.value = ausgabe.value + " -.. "; break;} 
             case 'e':{ausgabe.value = ausgabe.value + " . "; break;} 
             case 'f':{ausgabe.value = ausgabe.value + " ..-. "; break;} 
             case 'g':{ausgabe.value = ausgabe.value + " --. "; break;} 
             case 'h':{ausgabe.value = ausgabe.value + " .... "; break;} 
             case 'i':{ausgabe.value = ausgabe.value + " .. "; break;} 
             case 'j':{ausgabe.value = ausgabe.value + " .--- "; break;} 
             case 'k':{ausgabe.value = ausgabe.value + " -.- "; break;} 
             case 'l':{ausgabe.value = ausgabe.value + " .-.. "; break;} 
             case 'm':{ausgabe.value = ausgabe.value + " -- "; break;} 
             case 'n':{ausgabe.value = ausgabe.value + " -. "; break;} 
             case 'o':{ausgabe.value = ausgabe.value + " --- "; break;} 
             case 'p':{ausgabe.value = ausgabe.value + " .--. "; break;} 
             case 'q':{ausgabe.value = ausgabe.value + " --.- "; break;} 
             case 'r':{ausgabe.value = ausgabe.value + " .-. "; break;} 
             case 's':{ausgabe.value = ausgabe.value + " ... "; break;} 
             case 't':{ausgabe.value = ausgabe.value + " - "; break;} 
             case 'u':{ausgabe.value = ausgabe.value + " ..- "; break;} 
             case 'v':{ausgabe.value = ausgabe.value + " ...- "; break;} 
             case 'w':{ausgabe.value = ausgabe.value + " .-- "; break;} 
             case 'x':{ausgabe.value = ausgabe.value + " -..- "; break;} 
             case 'y':{ausgabe.value = ausgabe.value + " -.-- "; break;} 
             case 'z':{ausgabe.value = ausgabe.value + " --.. "; break;} 
            } 
         } 
       } 
    } 
} 
--> 
       </script><form name="morse"> 
  <input type="Text" name="input" value="" size="40" maxlength="1000" onKeyDown="clearing(); transform();"><br> 
  <textarea name="output" cols="30" rows="5"></textarea><br> 
  <input type="button" value="przetłumacz" onClick="clearing(); transform();"> 
  <input type="reset" value="wyczyść"> 
</form> 


<table> 

             <tr><td>a</td><td>.-</td></tr> 
             <tr><td>b</td><td>-...</td></tr> 
             <tr><td>c</td><td>-.-.</td></tr> 
             <tr><td>d</td><td>-..</td></tr> 
             <tr><td>e</td><td>.</td></tr> 
             <tr><td>f</td><td>..-.</td></tr> 
             <tr><td>g</td><td>--.</td></tr> 
             <tr><td>h</td><td>....</td></tr> 
             <tr><td>i</td><td>..</td></tr> 
             <tr><td>j</td><td>.---</td></tr> 
             <tr><td>k</td><td>-.-</td></tr> 
             <tr><td>l</td><td>.-..</td></tr> 
             <tr><td>m</td><td>--</td></tr> 
             <tr><td>n</td><td>-.</td></tr> 
             <tr><td>o</td><td>---</td></tr> 
             <tr><td>p</td><td>.--.</td></tr> 
             <tr><td>q</td><td>--.-</td></tr> 
             <tr><td>r</td><td>.-.</td></tr> 
             <tr><td>s</td><td>...</td></tr> 
             <tr><td>t</td><td>-</td></tr> 
             <tr><td>u</td><td>..-</td></tr> 
             <tr><td>v</td><td>...-</td></tr> 
             <tr><td>w</td><td>.--</td></tr> 
             <tr><td>x</td><td>-..-</td></tr> 
             <tr><td>y</td><td>-.--</td></tr> 
             <tr><td>z</td><td>--..</td></tr> 
</table>









Skrypt na pożegnanie:

Kod: Zaznacz cały

<body OnUnLoad="alert('Tu wpisz tekst');"> 





Kółko & Krzyżyk

Kod: Zaznacz cały

<SCRIPT language=JavaScript> 
<!-- 
step = 0; 
diff=3; 
function clear_all(form) { 
step = 0; 
for (i=0;i<9; ++i) { 
position="a"+i; 
form[position].value=""; 
} 
} 
function clickit(field) { 
if (step == -1) {alert("Wciśnij reset, aby zagrać ponownie"); return;} 

position=field.name.substring(1,2,1); 
position = 'a'+position; 
if (field.form[position].value !="") {alert("Ruch niedozwolny"); return;} 
field.form[position].value="X"; 
if (eval_pos(field.form)) { 
field.form.output.value="Wygrałeś!"; 
step = -1; 
return; 
} 
position=get_move(field.form); 
field.form.output.value=' ' + position.substring(1,2,1); 
if (position=="") { 
field.form.output.value="<font color=red><b>nie ma</b></font> zwycięscy."; 
step = -1; 
return; 
} 
field.form[position].value="O"; 
if (eval_pos(field.form)) { 
field.form.output.value="Przegrałeś;!"; 
step = -1; 
} 
} 

function eval_pos(form) { 
if ((form.a0.value!="" && 
form.a0.value==form.a3.value && form.a0.value==form.a6.value)|| 
(form.a0.value!="" && form.a0.value==form.a1.value && form.a0.value==form.a2.value) || (form.a0.value!="" && form.a0.value==form.a4.value && form.a0.value==form.a8.value) || 
(form.a1.value!="" && form.a1.value==form.a4.value && form.a1.value==form.a7.value) || (form.a2.value!="" 
&& form.a2.value==form.a5.value && form.a2.value==form.a8.value) || 
(form.a2.value!="" && form.a2.value==form.a4.value && form.a2.value==form.a6.value) || (form.a3.value!="" 
&& form.a3.value==form.a4.value && form.a3.value==form.a5.value) || 
(form.a6.value!="" && form.a6.value==form.a7.value && form.a6.value==form.a8.value)) 
return true; 
else    
return false; 
} 

function f(a) { 
if (a == "") return "."; else return a; 
} 
function comp_move(form,player,weight,depth) { 
var cost; 
var bestcost=-2; 
var position; 
var newplayer; 
if (player=="X") newplayer="O"; else newplayer="X"; 
if (depth==diff) return 0; 
if (eval_pos(form)) return 1; 
for (var i=0; i<9; ++i) { 
position='a'+i; 
if (form[position].value != "") 
continue; 
form[position].value=player; 
cost = comp_move(form,newplayer, -weight, depth+1); 
if (cost > bestcost) { 
bestcost=cost; 
if (cost==1) i=9; 
} 
form[position].value=""; 
} 
if (bestcost==-2) bestcost=0; 
return(-bestcost); 
} 
function get_move(form) { 
var cost; 
var bestcost=-2; 
bestmove=""; 
if (step++ == 0) 
if (form.a4.value=="") 
return "a4"; 
else 
if (form.a0.value=="") 
return "a0"; 
for (var i=0; i<9; ++i) { 
localposition='a'+i; 
if (form[localposition].value != "") 
continue; 
form[localposition].value="O"; 
cost=comp_move(form,"X", -1, 0); 
if (cost > bestcost) { 
if (cost==1) i=9; 
bestmove=localposition; 
bestcost=cost; 
} 
form[localposition].value=""; 
} 
return bestmove; 
} 
function complain(field) { 
field.form.output.focus(); 
alert("Ruch niedozwolony!"); 
} 

// --> 
</SCRIPT><center> 
<p align="center"><b>KÓŁKO i KRZYŻYK</b> 
<br> 
<br> 
      <FORM> 
      <DIV align=center> 
      <CENTER> 
      <P><INPUT name=a0 onfocus=complain(this) size=1> <INPUT name=b0 onclick=clickit(this) type=button> <INPUT name=a1 
      onfocus=complain(this) size=1> <INPUT name=b1 onclick=clickit(this) type=button> <INPUT name=a2 
      onfocus=complain(this) size=1> <INPUT name=b2 onclick=clickit(this) type=button> <BR><INPUT name=a3 
      onfocus=complain(this) size=1> <INPUT name=b3 onclick=clickit(this) type=button> <INPUT name=a4 
      onfocus=complain(this) size=1> <INPUT name=b4 onclick=clickit(this) type=button> <INPUT name=a5 
      onfocus=complain(this) size=1> <INPUT name=b5 onclick=clickit(this) type=button> <BR><INPUT name=a6 
      onfocus=complain(this) size=1> <INPUT name=b6 onclick=clickit(this) type=button> <INPUT name=a7 
      onfocus=complain(this) size=1> <INPUT name=b7 onclick=clickit(this) type=button> <INPUT name=a8 
      onfocus=complain(this) size=1> <INPUT name=b8 onclick=clickit(this) type=button> <BR><BR><BR> 
<FONT size=3> 
      Komunikat: 
      <INPUT name=output><BR><BR>Stopień trudności: <SELECT name=difficulty 
      onchange=diff=form.difficulty[form.difficulty.selectedIndex].value; 
        size=1> <OPTION value=1>Very Easy</OPTION> <OPTION value=2>Easy</OPTION> 
        <OPTION selected value=3>Medium</OPTION> <OPTION 
      value=4>Hard</OPTION></SELECT> <BR><INPUT onclick=" 
if (!step++) this.form.a4.value='O';" type=button value="Computer wykonuje ruch jako pierwszy"> 
      <BR><INPUT onclick=clear_all(this.form) type=reset value=Restart> 
      </font> 
      </P></CENTER></DIV></FORM> 










Na Gadu Gadu:

Kod: Zaznacz cały

<a href=http://gg.wha.la/TWÓJ NUMER"><img src="http://www.gadu-gadu.pl/users/status.asp?id=TWOJ_NUMER&styl=1"></a> 






Fotosik.pl

Kod: Zaznacz cały

<iframe src="http://www.fotosik.pl/directing.php?text=111111&size=20" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70">Twoja przeglądarka nie obsługuje ramek</iframe><br><a target="_blank" href="http://www.fotosik.pl">Fotosik.pl - Darmowy Hosting Obrazków</a>




Wersja i nazwa przeglądarki

Kod: Zaznacz cały

function wersja() { 
var wersja = navigator.appVersion; 
var nazwa = navigator.appName; 
window.alert("wersja: " + wersja + "\nnazwa: " + nazwa); 
} 

<a href="javascript:void(0);" onclick="wersja();">Dane na temat przeglądarki.</a> 







Skrypt - potwierdzenie wykonania operacji

Kod: Zaznacz cały

function potwierdzenie() { 
strona = "www.forum.[zlamanie regulaminu]"; 
var sprawdz = window.confirm("Czy chesz przejść na stronę forum.[zlamanie regulaminu]??? ?"); 
if (sprawdz == true) { 
document.location.href = strona; 
return true; 
} 
else if (sprawdz == false) { 
window.alert("Klikłeś <Anuluj> więc zostaniesz gdzie byłeś/aś.") 
return false; 
} 
} 

<a href="#" onclick="return potwierdzenie();">Przejście na inną stronę.</a> 









Ilość linków na stronie - komunikat

Kod: Zaznacz cały

function ile() 
var ilosc = document.links.length; 
window.alert ("Ilość linków na tej stronie : " + ilosc); 
} 

onLoad = "ile();" 







Zmiana tytułu strony

Kod: Zaznacz cały

function tytul(jaki) { 
document.title = jaki; 

<form name="formularz"> 
<select name="wybor" onChange="tytul(this.value);"> 
<option value="Super forum">Super forum 
<option value="Odjechane forumt">Odjechane forum 
<option value="Forum ogólnotematyczne">Forum ogólnotematyczne 
</select> 
</form> 






Jak trafiłeś na moje forum/strone
Wyświetlany jest adres strony, z której wszedł Twój gość. Na której kliknął w link i przeszedł na Twoją stronę.

Kod: Zaznacz cały

function skad() 
var adres = document.referrer; 
if (adres = "") {return "wejście bezpośrednie"} 
else {return (adres);} 
} 


<script type="text/javascript">document.write(skad());</script> 
Na zyczenie Alkohola dodaje jeszcze te skrypty: moga sie powtarzac ;)


skrypt na deszcz:

Kod: Zaznacz cały

<SCRIPT LANGUAGE="JavaScript"> 
<!-- Begin 
var no = 50; 
var speed = 1; 
var ns4up = (document.layers) ? 1 : 0; 
var ie4up = (document.all&[/quote]
Pozdrawiam wszystkich czytających mój podpis, żyjcie długo i szczęśliwie :]
<<

dariusz

Awatar użytkownika

Ekspert

Posty: 465

Rejestracja: 28 sty 2006, 15:35

Lokalizacja: Nojewo

Post autor: dariusz » 24 cze 2006, 20:44

Re: Przydatne Skrypty

A jaki był ten skrypt co jak ktoś wchodzi na strone to widzi swoje imie!

<ten skryp(I żeby tu było miejsce użytkownika który się zalogował )> COŚTAM

Niewykorzystam tego na tym forum! :chytry:
Nvidia 9200 512 Mb, Intel Dual Core 2Ghz, Hdd 320 Gb, 4 Gb DDR 2 Ram.
<<

NikoPL

Post autor: NikoPL » 24 cze 2006, 20:47

Re: Przydatne Skrypty

Dariusz, chodzi ci o [ you ]
<<

dariusz

Awatar użytkownika

Ekspert

Posty: 465

Rejestracja: 28 sty 2006, 15:35

Lokalizacja: Nojewo

Post autor: dariusz » 24 cze 2006, 20:50

Re: Przydatne Skrypty

tak..... jak to użyc napisz mi przykładowy skrypt... jeśli oczewiście możesz :padam:
Nvidia 9200 512 Mb, Intel Dual Core 2Ghz, Hdd 320 Gb, 4 Gb DDR 2 Ram.
<<

Matiuk

Post autor: Matiuk » 24 cze 2006, 22:20

Re: Przydatne Skrypty

Jezeli na tym forum to piszesz [*you*] bez gwiazdek i gotowe ... Na swoim forum instalujesz to http://www.phpbb2.pl/download.php?d=237 i masz ...
<<

bartekmp

Awatar użytkownika

Mega Hiper Ultra Prof. Świata

Posty: 1841

Rejestracja: 14 maja 2006, 18:52

Lokalizacja: Gdańsk

Post autor: bartekmp » 7 sie 2006, 11:27

Re: Przydatne Skrypty

ma ktoś skrypt wyszukiwarki internetowej (najlepiej google.com) która ma wąskie pole tekstowe bo jak zamieszczam wyszukiwarkę na stronie to wyłazi mi poza ramkę
Semper in altum
<<

Sebekzosw

Post autor: Sebekzosw » 7 sie 2006, 11:53

Re: Przydatne Skrypty

Kod: Zaznacz cały

<SCRIPT Language="JavaScript">function szukaj(){if(wyszukiwarka.slowo.value==""){alert("Wpisz szukane słowo !!!");}else{window.open("http://www.google.com/search?q="+wyszukiwarka.slowo.value); }}</SCRIPT>
<form name="wyszukiwarka">
  <br /><input type="text" name="slowo" size="13"> <input type="button" onclick="szukaj()" value="Szukaj"></form>