Skrypt na chowanie stopki V1 Cellpic
<!-- Kod Sponsorów --> <div id="hmZ" style="POSITION: relative"> <br> <table class="forumline" cellspacing="1" cellpadding="3" width="100%" align="center" border="0"> <tr> <th class="thCornerL" title="{L_VHIDE}" style="CURSOR: pointer" onclick="javascript:ShowHide('hmZ','hmZ2','hmZ3');" nowrap="nowrap" height="25">Reklama</th> </tr></table> <table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center"> TU TEKST </table> </div> <div id="hmZ2" style="DISPLAY: none; POSITION: relative"> <br> <table class="forumline" cellspacing="1" cellpadding="3" width="100%" align="center" border="0"> <tr> <th class="thCornerL" style="CURSOR: pointer" onclick="javascript:ShowHide('hmZ','hmZ2','hmZ3');" nowrap="nowrap" height="25">Reklama</th> </tr> </table> </div> <br> <script language="javascript" type="text/javascript"> <!-- if(GetCookie('hmZ3') == '2') ShowHide('hmZ', 'hmZ2', 'hmZ3'); //--> </script>
Offline
Skrypt na szukaj:
<form action="search.php?mode=results" method="post" accept-charset="ISO-8859-1" style="margin: 0;"> <input type="text" class="post" id="focus" onFocus="Active(this)" onBlur="NotActive(this)" name="search_keywords" size="30" style="width: 160px;" /> <input type="submit" name="submit" value="Szukaj" class="liteoption" /> <input type="hidden" name="show_results" value="topics"><input type="hidden" name="search_terms" value="any"><input type="hidden" name="search_fields" value="all"> </form>
Offline
Skrypt chowaj±cy stopkę V2 Napis:
<a href="javascript:ShowHide('pokaz2','schowaj');"> <h3> <br><font size=-6>Kliknij, aby zobaczyć polecane strony</font></h3> </a><div id="pokaz2" style="position: relative; display: none;"> Tutaj kody html <a href="javascript:ShowHide('pokaz2','schowaj');"> <h4>Kliknij, aby ukryć</h4> </a></div>
Offline
Fieldset z 2 ramkami:
<fieldset style="width: auto; border: 1px solid #1c415e; padding: 10px;"> <legend style="border: 1px solid #1c415e; padding: 4px; color: #000000;"> <b>{TEXT1}</b></legend>{TEXT2}</fieldset>
Offline
Skrypt na padaj±cy ¶nieg V1:
<script language="JavaScript1.2"> //Autumn leaves- by Kurt Grigg (kurt.grigg@virgin.net) //Modified by Dynamic Drive for NS6 functionality //visit http://www.dynamicdrive.com for this script //Pre-load your image below! grphcs=new Array(1) Image0=new Image(); Image0.src=grphcs[0]="http://img237.imageshack.us/img237/221/starfb3.gif"; Amount=8; //Smoothness depends on image file size, the smaller the size the more you can use! Ypos=new Array(); Xpos=new Array(); Speed=new Array(); Step=new Array(); Cstep=new Array(); ns=(document.layers)?1:0; ns6=(document.getElementById&&!document.all)?1:0; if (ns){ for (i = 0; i < Amount; i++){ var P=Math.floor(Math.random()*grphcs.length); rndPic=grphcs[P]; document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>"); } } else{ document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 0; i < Amount; i++){ var P=Math.floor(Math.random()*grphcs.length); rndPic=grphcs[P]; document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">'); } document.write('</div></div>'); } WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight; WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth; for (i=0; i < Amount; i++){ Ypos[i] = Math.round(Math.random()*WinHeight); Xpos[i] = Math.round(Math.random()*WinWidth); Speed[i]= Math.random()*5+3; Cstep[i]=0; Step[i]=Math.random()*0.1+0.05; } function fall(){ var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight; var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth; var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop; var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft; for (i=0; i < Amount; i++){ sy = Speed[i]*Math.sin(90*Math.PI/180); sx = Speed[i]*Math.cos(Cstep[i]); Ypos[i]+=sy; Xpos[i]+=sx; if (Ypos[i] > WinHeight){ Ypos[i]=-60; Xpos[i]=Math.round(Math.random()*WinWidth); Speed[i]=Math.random()*5+3; } if (ns){ document.layers['sn'+i].left=Xpos[i]; document.layers['sn'+i].top=Ypos[i]+hscrll; } else if (ns6){ document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]); document.getElementById("si"+i).style.top=Ypos[i]+hscrll; } else{ eval("document.all.si"+i).style.left=Xpos[i]; eval("document.all.si"+i).style.top=Ypos[i]+hscrll; } Cstep[i]+=Step[i]; } setTimeout('fall()',20); } window.onload=fall //--> </script>
Offline
Chcecie efektowniejszej reklamy a przy okazji wizualnej poprawy forum? Pokażę Wam trick, który spełnia oczekiwania obu punktów
Wchodzimy do:
1.Panel Admina - Ogólne - Konfiguracja - Strony głównej
2. W stopkę forum wklejamy taki kod:
<table width="100%" cellpadding="5" cellspacing="5" class="bodyline"><tr><td align="center"><span style="font-size: 16px">Dodaj do: <a href="Wykop" title="WypowiedĄ dla Wykop" onclick="window.open('http://www.wykop.pl/dodaj?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Wykop'); return false;"><img src="http://img94.imageshack.us/img94/5212/wykopq.jpg" border="0" alt="WypowiedĄ dla Wykop"></a> <a href="Facebook" title="WypowiedĄ dla Facebook" onclick="window.open('http://www.facebook.com/share.php?u='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Wyczaj'); return false;"><img src="http://img245.imageshack.us/img245/2903/facebookl.png" border="0" alt="WypowiedĄ dla Facebook"></a> <a href="Wyczaj" title="WypowiedĄ dla Wyczaj.to" onclick="window.open('http://wyczaj.to/api/external/add_external.html?full_url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Wyczaj'); return false;"><img src="http://img42.imageshack.us/img42/7158/wyczajto.png" border="0" alt="WypowiedĄ dla Wyczaj.to"></a> <a href="Gwar" title="WypowiedĄ dla Gwar" onclick="window.open('http://www.gwar.pl/DodajGwar.html?u='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Gwar'); return false;"><img src="http://img153.imageshack.us/img153/8481/gwar.jpg" border="0" alt="WypowiedĄ dla Gwar"></a> <a href="Delicious" title="WypowiedĄ dla Delicious" onclick="window.open('http://del.icio.us/post?v=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Delicious'); return false;"><img src="http://img442.imageshack.us/img442/3716/deliciousj.jpg" border="0" alt="WypowiedĄ dla Delicious"></a> <a href="Digg" title="WypowiedĄ dla Digg" onclick="window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Digg'); return false;"><img src="http://img638.imageshack.us/img638/2774/digg.jpg" border="0" alt="WypowiedĄ dla Digg"></a> <a href="Furl" title="WypowiedĄ dla Furl" onclick="window.open('http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title), 'Furl'); return false;"><img src="http://img294.imageshack.us/img294/7967/furl.jpg" border="0" alt="WypowiedĄ dla Furl"></a> <a href="Google" title="WypowiedĄ dla Google" onclick="window.open('http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Google'); return false;"><img src="http://img148.imageshack.us/img148/3933/googler.jpg" border="0" alt="WypowiedĄ dla Google"></a> <a href="Magnolia" title="WypowiedĄ dla Magnolia" onclick="window.open('http://ma.gnolia.com/bookmarklet/addĄurl='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Magnolia'); return false;"><img src="http://img708.imageshack.us/img708/3715/magnoliaz.jpg" border="0" alt="WypowiedĄ dla Magnolia"></a> <a href="Reddit" title="WypowiedĄ dla Reddit" onclick="window.open('http://reddit.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Reddit'); return false;"><img src="http://img828.imageshack.us/img828/932/reddit.jpg" border="0" alt="WypowiedĄ dla Reddit"></a> <a href="Simpy" title="WypowiedĄ dla Simpy" onclick="window.open('http://simpy.com/simpy/LinkAdd.do?href='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Simpy'); return false;"><img src="http://img713.imageshack.us/img713/8997/simpy.jpg" border="0" alt="WypowiedĄ dla Simpy"></a> <a href="Slashdot" title="WypowiedĄ dla Slashdot" onclick="window.open('http://slashdot.org/bookmark.pl?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Slashdot'); return false;"><img src="http://img507.imageshack.us/img507/5550/slashdot.jpg" border="0" alt="WypowiedĄ dla Slashdot"></a> <a href="Technorati" title="WypowiedĄ dla Technorati" onclick="window.open('http://technorati.com/faves?add='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'Technorati'); return false;"><img src="http://img693.imageshack.us/img693/5216/technorati.jpg" border="0" alt="WypowiedĄ dla Technorati"></a> <a href="YahooMyWeb" title="WypowiedĄ dla YahooMyWeb" onclick="window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title), 'YahooMyWeb'); return false;"><img src="http://img833.imageshack.us/img833/3306/yahoomyweb.jpg" border="0" alt="WypowiedĄ dla YahooMyWeb"></a></span></td></tr></table>
Możemy zmienić na inne tylko pamiętać trzeba o ikonce
Offline
Jak zmienić kolor tabeli po najechaniu myszki
Kolor można zmienić
<table><td OnClick="location.href='http://webmastering.tnb.pl/news.php'" onMouseOver="this.style.background='#FFFF00'"onMouseOut="this.style.background='FF0000'" >Odno¶nik</table>
Offline
W jaki sposób uzależnić wy¶wietlenie strony od rozdzielczo¶ci
W sekcji BODY wpisujemy:
<script language="javascript" type="text/javascript"> <!-- var Wide = screen.width; if (Wide <= 640) window.location = "640.html"; else if (Wide <= 800) window.location = "800.html"; else if (Wide <= 1024) window.location = "1024.html"; else window.location = "1152.html"; //--> </script>
Offline
Okno wy¶wietlaj±ce się do czasu wczytywania strony
Jeżeli nasza strona się długo ładuje, a nie chcemy aby odwiedzaj±cy j± wył±czył możemy wstawić w sekcji <body> aplet który wy¶wietla się do momentu wczytania strony:
<script language="javascript"> <!-- function zapowiedz(stan) { if (document.getElementById) { if (stan==1) document.getElementById("hello").style.visibility="visible"; else document.getElementById("hello").style.visibility="hidden"; } } if (document.getElementById) { styl="font-size:13px;font-weight:bold;font-family:Arial;position:absolute;background-color:#FFFFFF;padding:5px;"; styl=styl+"left:35%;top:20%;visibility:hidden;border:1px solid gray;"; var info="Nie opuszczaj nas, trwa wczytywanie strony ..."; document.write('<div id="hello" style="'+styl+'">'+info+'</div>'); zapowiedz(1); } // --> </script>
Offline
Jak otworzyć nowe okno bez paska narzędzi itp?
Należy jako link wpisać poniższy kod gdzie scrollbars odpowiada za pasek przewijania, status za pasek statusu strony a toolbar za pasek narzędzi. Wszędzie można stosować opcje: wł±czony - yes, wył±czony - no.
javascript:void(window.open('plik.php/','nazwa','scrollbars=yes,status=yes,toolbar=yes,width=500,height=300'))
Offline