Skrypty JavaScript
chwaleke398
Początkujący
reputacja: 11
posty: 22
offline
29.04.09 18:04
|
#1350727
|
(link)
|
zgłoś naruszenie
<A HREF="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://tu adres strony/');">Ustaw stronę (tu nazwa) jako stronę startową...</a>
chwaleke398
Początkujący
reputacja: 11
posty: 22
offline
29.04.09 18:05
|
#1350728
|
(link)
|
zgłoś naruszenie
<!--
//modified by Coffeecup.com
function Info()
{if (!confirm("Wejście na tą stronę nie jest bezpieczne! Jeśli jednak zaryzykujesz kliknij [ok] !"))
history.go(-1);return " "}
document.writeln(Info())
<!--End-->
OCZYWIŚCIE MOZECIE WPISAC SWOJE OSTRZEZENIE
//modified by Coffeecup.com
function Info()
{if (!confirm("Wejście na tą stronę nie jest bezpieczne! Jeśli jednak zaryzykujesz kliknij [ok] !"))
history.go(-1);return " "}
document.writeln(Info())
<!--End-->
OCZYWIŚCIE MOZECIE WPISAC SWOJE OSTRZEZENIE
chwaleke398
Początkujący
reputacja: 11
posty: 22
offline
29.04.09 18:08
|
#1350734
|
(link)
|
zgłoś naruszenie
<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>
WYSZUKUJE TYLKO TE POWYZEJ
ALE JA DODALEM JESCZE GOOGLE.PL:
JEST TUTAJ:
if(searchEngine == 7){
finalSearchString = "http://google.pl/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
}
<!--
//
// 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>
WYSZUKUJE TYLKO TE POWYZEJ
ALE JA DODALEM JESCZE GOOGLE.PL:
JEST TUTAJ:
if(searchEngine == 7){
finalSearchString = "http://google.pl/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
}
chwaleke398
Początkujący
reputacja: 11
posty: 22
offline
29.04.09 18:09
|
#1350735
|
(link)
|
zgłoś naruszenie
<form name="bandwidth">
<p><input type="text" name="original" size="20" value=1024>
<select size="1" name="units">
<option value="Bytes">Bytes</option>
<option value="Kb">Kb</option>
<option value="Mb">Mb</option>
<option value="Gb">Gb</option>
</select> <input type="button" value="Calculate" name="B1" onClick="calculate()"><p></p>
</form>
<p>
<script>
/*
Bandwidth calculator (credit must stay enclosed)
By Wsabstract.com (www.wsabstract.com)
and Java-scripts.net (www.java-scripts.net)
*/
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+" is equal to:\n\n- "+bytevalue+" Bytes\n- "+Math.round(bytevalue/1024)+" Kb\n- "+Math.round(bytevalue/1024/1024)+" Mb\n- "+Math.round(bytevalue/1024/1024/1024)+" Gb\n")
}
</script>
<p><input type="text" name="original" size="20" value=1024>
<select size="1" name="units">
<option value="Bytes">Bytes</option>
<option value="Kb">Kb</option>
<option value="Mb">Mb</option>
<option value="Gb">Gb</option>
</select> <input type="button" value="Calculate" name="B1" onClick="calculate()"><p></p>
</form>
<p>
<script>
/*
Bandwidth calculator (credit must stay enclosed)
By Wsabstract.com (www.wsabstract.com)
and Java-scripts.net (www.java-scripts.net)
*/
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+" is equal to:\n\n- "+bytevalue+" Bytes\n- "+Math.round(bytevalue/1024)+" Kb\n- "+Math.round(bytevalue/1024/1024)+" Mb\n- "+Math.round(bytevalue/1024/1024/1024)+" Gb\n")
}
</script>
chwaleke398
Początkujący
reputacja: 11
posty: 22
offline
29.04.09 18:12
|
#1350738
|
(link)
|
zgłoś naruszenie
<script language="Javascript1.2">
// 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>
// 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>
chwaleke398
Początkujący
reputacja: 11
posty: 22
offline
29.04.09 18:13
|
#1350739
|
(link)
|
zgłoś naruszenie
<script Language="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
window.status = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock () {
stopclock();
showtime();
}
</script>
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
window.status = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock () {
stopclock();
showtime();
}
</script>
AJO.pl
|
TRO MEDIA
Korzystanie z serwisu oznacza akceptację
regulaminu
.
Polityka prywatności
Regulamin
FAQ
Reklama
Współpraca
Kontakt

