|
|
Данный скрипт выводит созданное вами сообщение (будь то текст или картинка) перед тем как пользователь попадет на сайт, тоесть пока будет производиться загрузка страницы сайта, пользователь будет видеть Ваше сообщение/картинку. Скрипт выставляете в самый верх кода сайта, выше и . Скрипт нужно установить так, чтобы контент Вашего сайта в html коде был ниже чем скрипт. Загрузить файл из архива parse.zip к себе на сервер (FTP) ссылка ниже! Сам скрипт: Code <style>div#loader { margin: 0 auto 0 auto; margin-top: 10px; width: 1000px; height: 400px;}</style> <script language="javascript" src="parse.js" charset="utf-8" type="text/javascript"></script>
<div id="loader" style="margin: 0 auto 0 auto;margin-top: 10px;width: 1000px;height: 747px;"> <div style="text-align:center; margin-top: 150px; line-height:16px; font-size: 11px;"> <img src="loading.gif" alt="Загрузка" style="margin-bottom: 20px;" /> <br> <span style="color: #6f92a7;">Идет загрузка страницы, пожалуйста, подождите немного.</span> <br> <span style="color: #acacac">Если Вы в первый раз на нашем сайте, загрузка продлится чуть дольше обычного.</span>
</div> </div> |
|
|
Code <CENTER><HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=windows-1251"> <META http-equiv="Content-Style-Type" content="text/css"> <title>Banner Creator|</title> <STYLE type=text/css><!--BODY { scrollbar-base-color: #FF99CC; scrollbar-track-color: #FF99CC; scrollbar-face-color: #FFCCFF; scrollbar-highlight-color: #990099; scrollbar-3d-light-color: #FF0066; scrollbar-darkshadow-color: #990099; scrollbar-shadow-color: #CC0066; scrollbar-arrow-color: #990099; }--></STYLE> </head> <BODY>
<TD> <FONT face="Burlak" size=4><center>
<tr>
<td> <center>
<font color="#834626" style="font-size: 8pt" FACE="Century Gothic "> С помощью этого помощника, Вы сможете быстро составить код своего баннера <SCRIPT language=JavaScript> <!-- function bforma(form){var txt='<a href="'+form.title.value+'"';txt+=' target=_blank><img src="'+form.description.value+'"';txt+=' border="0" title="'+form.keywords.value+'"';txt+=' width='+form.owner.value+' height=';txt+=''+form.auther.value+'></a>\r\n';{txt+='\r\n';}form.result.value=txt;}//--> </SCRIPT> <FORM name=metatagbuild> <CENTER> <TABLE bgColor=#ffffcc style="BORDER-RIGHT: #FC612F 2px dashed; BORDER-TOP: #FC612F 2px dashed; BORDER-LEFT: #FC612F 2px dashed; BORDER-BOTTOM: #FC612F 2px dashed" width=400 border="0" CELLSPACING="2" CELLPADDING="2"> <TR> <TD><CENTER> <font color="#666699" style="font-size: 10pt" FACE="Century Gothic "> <B>Адрес Вашего сайта</B></font> <script language="JavaScript"src="http://xdiz.ucoz.net/grafl.js"></script> <font color="#834626" style="font-size: 10pt" FACE="Century Gothic "> Например, http://swb.3dn.ru
<INPUT maxLength=120 size=50 name=title> <HR> <font color="#666699" style="font-size: 10pt" FACE="Century Gothic "> <B>Адрес картинки для Вашего баннера</B></font>
<font color="#834626" style="font-size: 10pt" FACE="Century Gothic "> Например, http://swb.3dn.ru/b1.gif <TEXTAREA name=description rows=1 wrap=virtual cols=38></TEXTAREA> <HR>
<font color="#666699" style="font-size: 10pt" FACE="Century Gothic "> <B>Надпись при наведении мышки на баннер (Тег TITLE)</B>
<font color="#834626" style="font-size: 10pt" FACE="Century Gothic "> Например, Все для вебмастера и его сайта <TEXTAREA name=keywords rows=1 wrap=virtual cols=38></TEXTAREA> <HR> <font color="#666699" style="font-size: 10pt" FACE="Century Gothic "> <B>Ширина баннера</B>
<font color="#834626" style="font-size: 10pt" FACE="Century Gothic "> Например, 88
<INPUT size=50 name=owner> <HR> <font color="#666699" style="font-size: 10pt" FACE="Century Gothic "> <B>Высота баннера</b>
<font color="#834626" style="font-size: 10pt" FACE="Century Gothic "> Например, 31
<INPUT size=50 name=auther> <HR>
<TEXTAREA name=result rows=3 cols=38></TEXTAREA>
<INPUT onclick=bforma(this.form) type=button value="Получить код" name=create> <input type="reset" value="Очистить форму" class="buton">
</TD></TR></TBODY></TABLE> |
|
|
Эмитирует полоску загрузки, такой эффект часто можно наблюдать при загрузке флэш графики. Code <html> <head> <title>WOscripts.com - JavaScript - LoadingBar</title> <META http-equiv="Content-Type" content="text/html; charset=windows-1251"> <META NAME="description" CONTENT="Коллекции CGI, PHP, JavaScript скриптов, Java апплеты, огромное количество документации по разным языкам программирования, анимированные гифы, фоны, полезные программы, форум, ссылки по теме."> <META NAME="keywords" CONTENT="perl scripts, perl, cgi scripts, cgi, перл, java, java scripts, веб-программирование, web-programming, html, каталог ссылок, документация по веб-программированию, cgi скрипты, java скрипты, игры, java апплеты, апплеты, гифы, скрипты, скрипт, книги по веб-программированию, форум по perl, CGI, Perl, script, HTML">
<!-- HEAD START HERE -->
<style type="text/css"> #divLoadCont {position:absolute; z-index:500; left:0px; top:0px; width:100%; height:98%; clip:rect(0px 100% 100% 0px); background-color:#ffffff; layer-background-color:#ffffff;} #divLoad1 {position:absolute; layer-background-color:silver; background-color:silver;} #divLoad2 {position:absolute; left:0px; top:0px; layer-background-color:navy; background-color:navy;} #divLoadText {position:absolute; background-color:transparent; font-family:arial,helvetica,sans-serif; color:navy; font-size:14px;} </style> <script language="JavaScript" type="text/javascript"> /********************************************************************************** LoadingBar * Copyright (C) 2001 Thomas Brattli * This script was released at WOscripts.com * Visit for more great scripts! * This may be used and changed freely as long as this msg is intact! * We will also appreciate any links you could give us. *********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.in dexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=new lib_bwcheck()
/*VARIABLES TO SET START: */ numImages = 10 //How many images you have in your page loaderWidth = 300 //The width of the loadbar /* All other settings, like colors fonts and stuff like that you have to change in the STYLE section.
IMPORTANT: To make this actually show the correct results you have to place THIS code in all images: onload="loadIt(1)"
Which means that your image should look something like this: <img src="whatever.gif" width="10" border="0" height="10" onload="loadIt(1)">
VARIABLES TO SET END: */
// A unit of measure that will be added when setting the position of a layer. var px = bw.ns4||window.opera?"":"px";
currentImg = 0 //Document size object ******** function lib_doc_size(){ this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0; this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0; if(!this.x2||!this.y2) return message('Document has no width or height') this.x50=this.x2/2;this.y50=this.y2/2; return this; }
//Lib objects ******************** function lib_obj(obj,nest){ nest=(!nest) ? "":'document.'+nest+'.' this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0; this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; this.ref=this.css this.w=this.evnt.offsetWidth||this.css.clip.width|| this.ref.width||this.css.pixelWidth||0; return this } //Moving object to ************** lib_obj.prototype.moveIt = function(x,y){ this.x=x; this.y=y; this.css.left=x+px; this.css.top=y+px; } //Clipping object to ****** lib_obj.prototype.clipTo = function(t,r,b,l,setwidth){ this.ct=t; this.cr=r; this.cb=b; this.cl=l if(bw.ns4){ this.css.clip.top=t;this.css.clip.right=r this.css.clip.bottom=b;this.css.clip.left=l }else{ if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0 this.css.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)"; if (setwidth){ this.css.pixelWidth = r; this.css.pixelHeight = b; this.css.width = r+px; this.css.height = b+px; } } } var oLoad2 function startLoading(){ page = new lib_doc_size() oLoadCont = new lib_obj('divLoadCont') oLoad = new lib_obj('divLoad1','divLoadCont') oLoad2 = new lib_obj('divLoad2','divLoadCont.document.divLoad1') oLoadText = new lib_obj('divLoadText','divLoadCont.document.divLoad1') oLoad.moveIt(page.x50-loaderWidth/2,page.y50-20) oLoadText.moveIt(loaderWidth/2 - oLoadText.w/2,10) oLoad.clipTo(0,loaderWidth,40,0,1) oLoad2.per = loaderWidth/numImages } function loadIt(ok){ currentImg ++ if (oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1) if (!ok){ oLoadCont.css.visibility = "hidden" oLoadCont = null; oLoad1 = null; oLoad2 = null; } }
//DISPLAY FUNCTION - DELETE START -------- DELETE THIS ************* //LEAVE THIS FUNCTION WHILE TESTING. DELETE WHEN READY function loadIt_display(ok){ currentImg ++ if (oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1) if (currentImg<=numImages) setTimeout("loadIt_display(1)",200) else{ oLoadCont.css.visibility = "hidden" } } //DISPLAY FUNCTION - DELETE END ************************************* </script>
<!-- HEAD END HERE -->
</head> <body bgcolor="#737994" text="#FFFFFF" link="#FFFFFF" topmargin="0" leftmargin="0">
<!-- BODY START HERE -->
<!-- ALWAYS HAVE THIS RIGHT AFTER THE BODY START TAG --> <div id="divLoadCont"> <div id="divLoad1"> <div id="divLoad2"></div><br> <div id="divLoadText">Loading...</div> </div> </div> <script> startLoading() //onload=loadIt; //- LEAVE THIS LINE WHILE TESTING. UNCOMMENT WHEN READY loadIt_display(1) //LEAVE THIS LINE WHILE TESTING. DELETE WHEN READY </script>
<!-- BODY END HERE -->
<br><br><br> <center> Содержание страницы <br><br> </center>
</body> </html> |
|
|
Решил выложить очень хороший скрипт Появляются картинки а сверху них текст когда наводишь мышкой на картинку она начинает дражать Вот код: Code <html> <head> <title>Укуренные картинки</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <style type="text/css"> <!-- body {background-color:#FAFDFF; margin:0px; padding:0px; font-size:12px; color:#000; font-family:Georgia, Helvetica, sans-serif;} b {color:#00008B} .promo {color:#AF0032; font-size:12px; text-align:center; margin-top:20px} .promo a:link, .promo a:visited, .promo a:hover {color:#0066CC; text-decoration:underline;} img{position:relative} --> <!-- web-mastery.info --> </style> <script language="JavaScript1.2"> var rector=3 var stopit=0 var a=1
function init(which){ stopit=0 shake=which shake.style.left=0 shake.style.top=0 }
function rattleimage(){ if ((!document.all&&!document.getElementById)||stopit==1) return if (a==1){ shake.style.top=parseInt(shake.style.top)+rector } else if (a==2){ shake.style.left=parseInt(shake.style.left)+rector } else if (a==3){ shake.style.top=parseInt(shake.style.top)-rector } else{ shake.style.left=parseInt(shake.style.left)-rector } if (a<4) a++ else a=1 setTimeout("rattleimage()",50) } function stoprattle(which){ stopit=1 which.style.left=0 which.style.top=0 } </script> </head> <body> <div class="promo" align="center"><br>Тут может быть любой текст<br> <a href="любая ссылка">Тут может быть любой ваш текст <b>Тут может быть любой текст</b></a> </div> <br><br><br><br><br><br> <center> <img src="1.jpg" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)"> <img src="2.jpg" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)"> <img src="3.jpg" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)"> </center> </body> </html> |
|
|
Скрины => http://s56.radikal.ru/i151/1007/9d/3cc1b8947e4d.gif http://s46.radikal.ru/i112/1007/0f/8f203f909e22.gif http://s40.radikal.ru/i087/1007/b5/9bee827595ed.gif http://s44.radikal.ru/i105/1007/a3/63a9ffae407e.jpg состряпал скрипт мини опросов для материалов, в каждом материале автор может создать мини опрос из двух вариантов ответа (да , нет). Правда придётся жертвовать рейтингом материалов. Тестил на модуле блог. Но он спокойно модифицируется под все модули имеющие рейтинг материалов (новости, каталоги и тд). Во общем к делу. Активируем доп.поле #1 в блоге. В него мы будем вводить вопрос. Затем идём в редактор шаблонов, блог-> Страница архива материалов. и перед </body> ставим следующий код. Quote Code <?if($PAGE_ID$='add' || 'edit'=$PAGE_ID$)?> <script type="text/javascript">function funcS() {$('[color=red]#blM61[/color]').toggle();} $('[color=red]#blM61[/color]').hide(); $('[color=red]#blM61[/color]').before('<tr id="blM6_"><td class="manTd" id="blM6_2">Создать мини-опрос:</td><td class="manTd" id="blM6"><input type="checkbox" id="4ekvote" size="35" style="align:left;" name="4ekvote" onchange="funcS();" /></td></tr>');</script> <?endif?> Далее редактируем страницу материалов и коментариев к нему в место где вы хотите видеть опрос устанавливаем этот код. Code <?if($OTHER1$)?> <b>$OTHER1$?</b> <div id="vote12"> <input type="radio" name="voter" value="1"> да<Br> <input type="radio" name="voter" value="0"> нет<Br> <input type="submit" name="zapr" value="Ответить" /> </div>[<a href="javascript:" onclick="var AjCo=$('#AjCont').html();new _uWnd('ResOpros', 'Результаты опроса', 500, 140, {autosize:1,min:1,close:1,resize:0}, AjCo);" title="Результаты">Результаты</a>] <div id="AjCont" style="display:none;"> <?if((-~($RATED$*$RATING$))%($RATED$*$RATING$)=1 && -~($RATED$*$RATING$)!=($RATED$*$RATING$)+1)?> <?if((-~($RATED$*$RATING$))- ($RATED$*$RATING$)>0.5) ?> <table border="0" cellpadding="0"><tr><td width="80%" valign="top"><table border="0" width="100%" cellspacing="1" cellpadding="1" class="myWinPollT"><tr><td class="myWinPollTd"><table border="0" width="100%" cellspacing="0" cellpadding="3"><tr><td width="18" align="right">1.</td><td width="5%" align="center"><table border="0" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td><div style="height:10px;width:10px;background:url('http://sensor.ucoz.com/icon/poll2.gif');"><img alt="" width="10" src="http://s27.ucoz.net/img/1px.gif" /></div></td></tr></table></td><td>Поддерживают</td></tr></table></td><td width="10%" class="myWinPollTd" align="center"><b><?$RATED$-($RATED$*2-(-~($RATED$*$RATING$)-1))?></b></td><td width="10%" class="myWinPollTd" align="center"><span class="procentext"><?($RATED$-($RATED$*2-(-~($RATED$*$RATING$)-1)))/$RATED$*100?></span>%</td></tr> <tr><td class="myWinPollTd"><table border="0" width="100%" cellspacing="0" cellpadding="3"><tr><td width="18" align="right">2.</td><td width="5%" align="center"><table border="0" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td><div style="height:10px;width:10px;background:url('http://sensor.ucoz.com/icon/poll1.gif')"><img alt="" width="10" src="http://s27.ucoz.net/img/1px.gif" /></div></td></tr></table></td><td>Против</td></tr></table></td><td width="10%" class="myWinPollTd" align="center"><b><?$RATED$*2-(-~($RATED$*$RATING$)-1)?></b></td><td width="10%" class="myWinPollTd" align="center"><span class="procentext2"><?100-($RATED$-($RATED$*2-(-~($RATED$*$RATING$)-1)))/$RATED$*100?></span>%</td></tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="50%"> </td><td align="right"> <table border="0" cellspacing="1" cellpadding="3" class="myWinPollT"><tr><td class="myWinPollTd">Всего ответов: <b>$RATED$</b></td></tr></table> </td></tr></table> </td><td align="right" valign="top"><div class="myWinPollG"><table border="0" width="195" height="131" cellspacing="0" cellpadding="0"><tr><td width="50%" align="center" valign="bottom"><table border="0" width="80%" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td style="font-size:0;background:#3a75c4"><img alt="" src="http://s27.ucoz.net/img/1px.gif" width="80" height="<?($RATED$-($RATED$*2-(-~($RATED$*$RATING$)-1)))/$RATED$*129?>" /></td></tr></table></td> <td width="50%" align="center" valign="bottom"><table border="0" width="80%" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td style="font-size:0;background:#e32636"><img alt="" src="http://s27.ucoz.net/img/1px.gif" width="80" height="<?(100-($RATED$-($RATED$*2-(-~($RATED$*$RATING$)-1)))/$RATED$*100)*1.29?>" /></td></tr></table></td> </tr></table></div></td></tr></table> <?else?> <table border="0" cellpadding="0"><tr><td width="80%" valign="top"><table border="0" width="100%" cellspacing="1" cellpadding="1" class="myWinPollT"><tr><td class="myWinPollTd"><table border="0" width="100%" cellspacing="0" cellpadding="3"><tr><td width="18" align="right">1.</td><td width="5%" align="center"><table border="0" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td><div style="height:10px;width:10px;background:url('http://sensor.ucoz.com/icon/poll2.gif');"><img alt="" width="10" src="http://s27.ucoz.net/img/1px.gif" /></div></td></tr></table></td><td>Поддерживают</td></tr></table></td><td width="10%" class="myWinPollTd" align="center"><b><?$RATED$-($RATED$*2-(-~($RATED$*$RATING$)))?></b></td><td width="10%" class="myWinPollTd" align="center"><span class="procentext"><?($RATED$-($RATED$*2-(-~($RATED$*$RATING$))))/$RATED$*100?></span>%</td></tr> <tr><td class="myWinPollTd"><table border="0" width="100%" cellspacing="0" cellpadding="3"><tr><td width="18" align="right">2.</td><td width="5%" align="center"><table border="0" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td><div style="height:10px;width:10px;background:url('http://sensor.ucoz.com/icon/poll1.gif')"><img alt="" width="10" src="http://s27.ucoz.net/img/1px.gif" /></div></td></tr></table></td><td>Против</td></tr></table></td><td width="10%" class="myWinPollTd" align="center"><b><?$RATED$*2-(-~($RATED$*$RATING$))?></b></td><td width="10%" class="myWinPollTd" align="center"><span class="procentext2"><?100-($RATED$-($RATED$*2-(-~($RATED$*$RATING$))))/$RATED$*100?></span>%</td></tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="50%"> </td><td align="right"> <table border="0" cellspacing="1" cellpadding="3" class="myWinPollT"><tr><td class="myWinPollTd">Всего ответов: <b>$RATED$</b></td></tr></table> </td></tr></table> </td><td align="right" valign="top"><div class="myWinPollG"><table border="0" width="195" height="131" cellspacing="0" cellpadding="0"><tr><td width="50%" align="center" valign="bottom"><table border="0" width="80%" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td style="font-size:0;background:#3a75c4"><img alt="" src="http://s27.ucoz.net/img/1px.gif" width="80" height="<?($RATED$-($RATED$*2-(-~($RATED$*$RATING$))))/$RATED$*129?>" /></td></tr></table></td> <td width="50%" align="center" valign="bottom"><table border="0" width="80%" bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td style="font-size:0;background:#e32636"><img alt="" src="http://s27.ucoz.net/img/1px.gif" width="80" height="<?(100-($RATED$-($RATED$*2-(-~($RATED$*$RATING$))))/$RATED$*100)*1.29?>" /></td></tr></table></td> </tr></table></div></td></tr></table> <?endif?> <?else?> <table border="0" cellpadding="0"><tr><td width="80%" valign="top"><table border="0" width="100%" cellspacing="1" cellpadding="1" class="myWinPollT"><tr><td class="myWinPollTd"><table border="0" width="100%" cellspacing="0" cellpadding="3"><tr><td width="18" align="right">1.</td><td width="5%" align="center"><table border="0" bgcolor="#000000" cellspacing="1" cellp
...
Читать дальше »
|
|
|
Скрипт делает на страничке, красивый осенний дождь, ставим куда угодно : Code <SCRIPT LANGUAGE="JavaScript"> var no = 50; var speed = 1; var ns4up = (document.layers) ? 1 : 0; var ie4up = (document.all) ? 1 : 0; var s, x, y, sn, cs; var a, r, cx, cy; var i, doc_width = 800, doc_height = 600;
if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else
if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; }
x = new Array(); y = new Array(); r = new Array(); cx = new Array(); cy = new Array(); s = 8;
for (i = 0; i < no; ++ i) { initRain();
if (ns4up) {
if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"1\" "); document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">"); document.write(",</font></layer>");
} else { document.write("<layer name=\"dot"+ i +"\" left=\"1\" "); document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">"); document.write(",</font></layer>"); } } else
if (ie4up) {
if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">"); document.write(",</font></div>"); }
else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">"); document.write(",</font></div>"); } } }
function initRain() { a = 6; r[i] = 1; sn = Math.sin(a); cs = Math.cos(a); cx[i] = Math.random() * doc_width + 1; cy[i] = Math.random() * doc_height + 1; x[i] = r[i] * sn + cx[i]; y[i] = cy[i]; }
function makeRain() { r[i] = 1; cx[i] = Math.random() * doc_width + 1; cy[i] = 1; x[i] = r[i] * sn + cx[i]; y[i] = r[i] * cs + cy[i]; }
function updateRain() { r[i] += s; x[i] = r[i] * sn + cx[i]; y[i] = r[i] * cs + cy[i]; }
function raindropNS() { for (i = 0; i < no; ++ i) { updateRain(); if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { makeRain(); doc_width = self.innerWidth; doc_height = self.innerHeight; } document.layers["dot"+i].top = y[i]; document.layers["dot"+i].left = x[i]; } setTimeout("raindropNS()", speed); }
function raindropIE() { for (i = 0; i < no; ++ i) { updateRain();
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { makeRain(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } document.all["dot"+i].style.pixelTop = y[i]; document.all["dot"+i].style.pixelLeft = x[i]; } setTimeout("raindropIE()", speed); } if (ns4up) { raindropNS(); } else if (ie4up) { raindropIE(); } </script> |
|
|
Code <!-- Informer www.calend.ru --> <a href=http://www.calend.ru target=_blank><img src=http://www.calend.ru/img/export/informer.png width=189 alt="Праздники сегодня" border=0></a> <!-- // Informer www.calend.ru --> |
|
|
Как мы все знаем, есть куча скриптов "Защиты от копирования html страниц", такие как отключение мыши и похожие... Данный скрипт устроен совсем по другому. При просмотре сайта на котором будет стоять данный скрипт, у юзера, просматривающего сайт, на компьютере будут автоматически отключены PrintScreen и Copy/Past Основные функции скрипта это защита! - Не даёт копировать содержимое страницы!!! - При просмотре сайта отключает функцию копирования!!! (Нельзя ничего копировать пока открыт сайт!) - Отключает кнопку PrintScreen!!! (Сфотографировать экран не получится!!!) ТОЛЬКО В ИЕ 6-7 Code <SCRIPT language=Javascript1.2> <!-- var message='Я те щас по морде дам!!! НЕХОРОШО ВОРОВАТЬ!'; function click(e) {if (document.all) {if (event.button == 2) {alert(message);return false;}} if (document.layers) {if (e.which == 3) {alert(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);} document.onmousedown=click; // --> </SCRIPT> |
|
|
Code <script language="javascript"> // ENTER TEXT BELOW. CAN *NOT* INCLUDE NORMAL HTML CODE. var text='ТУТ СЛОВА НА АНГЛИЙСКОМ'; var delay=40; // SPEED OF TRAIL var Xoff=0; // PIXEL COUNT FROM THE LEFT OF THE CURSOR (- VALUES GO TO LEFT) var Yoff=-30; // PIXEL COUNT FROM THE TOP OF THE CURSOR (- VALUES GO UP) var txtw=14; // AMOUNT OF PIXEL SPACE EACH CHARACTER OCCUPIES var beghtml='<font color="blue"><b>'; // OPTIONAL HTML CODE THAT EFFECTS WHOLE TEXT STRING SUCH AS FONT COLOR, SIZE, ETC. var endhtml='</b></font>'; // END HTML CODE. MOSTLY USED IF ABOVE SETTING IS USED. //********** NO NEED TO EDIT BELOW HERE **********\\ ns4 = (navigator.appName.indexOf("Netscape")>=0 && document.layers)? true : false; ie4 = (document.all && !document.getElementById)? true : false; ie5 = (document.all && document.getElementById)? true : false; ns6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false; var txtA=new Array(); text=text.split(''); var x1=0; var y1=-1000; var t=''; for(i=1;i<=text.length;i++){ t+=(ns4)? '<layer name="txt'+i+'" top="-100" left="0" width="'+txtw+'" height="1">' : '<div id="txt'+i+'" style="position:absolute; top:-100px; left:0px; height:1px; width:'+txtw+'; visibility:visible;">'; t+=beghtml+text[i-1]+endhtml; t+=(ns4)? '</layer>' : '</div>'; } document.write(t); function moveid(id,x,y){ if(ns4)id.moveTo(x,y); else{ id.style.left=x+'px'; id.style.top=y+'px'; }} function animate(evt){ x1=Xoff+((ie4||ie5)?event.clientX+document.body.scrollLeft:evt.pageX); y1=Yoff+((ie4||ie5)?event.clientY+document.body.scrollTop:evt.pageY); } function getidleft(id){ if(ns4)return id.left; else return parseInt(id.style.left); } function getidtop(id){ if(ns4)return id.top; else return parseInt(id.style.top); } function getwindowwidth(){ if(ie4||ie5)return document.body.clientWidth+document.body.scrollLeft; else return window.innerWidth+pageXOffset; } function movetxts(){ for(i=text.length;i>1;i=i-1){ if(getidleft(txtA[i-1])+txtw*2>=getwindowwidth()){ moveid(txtA[i-1],0,-1000); moveid(txtA[i],0,-1000); }else moveid(txtA[i], getidleft(txtA[i-1])+txtw, getidtop(txtA[i-1])); } moveid(txtA[1],x1,y1); } window.onload=function(){ for(i=1;i<=text.length;i++)txtA[i]=(ns4)?document.layers['txt'+i]:(ie4)?document.all['txt'+i]:document.getElementById('txt'+i); if(ns4)document.captureEvents(Event.MOUSEMOVE); document.onmousemove=animate; setInterval('movetxts()',delay); } </script> |
|
|
Представляю вам скрипт рекламы в верху сайта! Скрип не закрывается. Пойдет тока для рекламы программы или сайта! В ставить в Верхняя часть сайта Код: Code <!-- <Баннер в шапке> --> <?if($LOGIN_FORM$)?> <noindex><style type="text/css"> #JaboxAdBarOuter { z-index: 10; position: absolute; left: 0px; top: 0px; width: 100%; height: 21px; }
.JaboxAdBarInner { position: absolute; left: 0px; top: 0px; width: 100%; height: 21px;
background: #FFC; /*CHANGE: фоновый цвет*/ border-bottom: 1px solid #333333; /*CHANGE: цвет линии внизу*/ }
div > div.JaboxAdBarInner { position: absolute; }
#JaboxAdBarPlaceholder { height: 21px; }
#JaboxAdBarText { height: 21px; overflow: hidden; }
#JaboxAdBarText, #JaboxAdBarText a, #JaboxAdBarText a:link, #JaboxAdBarText a:visited, #JaboxAdBarText a:hover { display: block; height: 21px; font-family: tahoma,sans-serif; font-size: 8pt; line-height: 21px; color: #FF0000; /*CHANGE: цвет текста */ text-decoration: none; cursor: pointer; }
#JaboxAdBarText a { margin-right: 0px; }
.JaboxAdBarDwImage { margin: 0px; }
#JaboxAdBarText a:hover { color: HighlightText; background: Highlight url(http://s24.ucoz.net/img/icon/tr.png) no-repeat fixed .3em .3em; } </style> <!--[if gte IE 5.5]><![if lt IE 9]> <style type="text/css"> div#JaboxAdBarOuter { width: expression(((ignoreMe=(document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth))<200?200:ignoreM e)+'px'); position: absolute; } </style> <![endif]><![endif]-->
<div id="JaboxAdBarOuter"><div class="JaboxAdBarInner"><div id="JaboxAdBarText"> <a href="Ссылка на сктраницу" rel="nofollow"> <script language="JavaScript"src="http://xdiz.ucoz.net/grafl.js"></script><img src="http://s24.ucoz.net/img/icon/tr.png" border="0" align="left" class="JaboxAdBarDwImage" style="margin:3px;float:left"><img src="http://sony-ericsson.motol7.info/jabox_img/jimm-icon.gif" border="0" width="90" height="21" align="right" class="JaboxAdBarDwImage" alt="Скачать"> <!-- <Содержиомое> -->
Надпись ля ля ля By mozga.net
<!-- </Содержиомое> --> </a></div></div></div> <div id="JaboxAdBarPlaceholder"></div></noindex> <!-- iebar banner code end --> <?endif?> <!-- </Баннер в шапке> --> Модераторы переместите тему: $USERNAME$ |
« 1 2 ... 23 24 25 26 27 28 29 » |