![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() |
![]()
Сообщение
#1
|
|
![]() Федр Сумкин ![]() Группа: Global moder Сообщений: 826 Регистрация: 19.9.2005 Из: Москва-Чебоксары Пользователь №: 73 ![]() |
Нужен скрипт или защита от просмотра html кода
Затем скрипт часов цифровых желательно! Побыстрее если можно! ![]() -------------------- бышое девушко сейчас в марийском лесу 5 шагов от дерева.... крест на GPS:uTopia
правила написаны кровью таких админов как я! © FEDERAL |
|
|
![]() |
![]()
Сообщение
#2
|
|
![]() Продвинутый пользователь ![]() ![]() ![]() Группа: Posters Сообщений: 212 Регистрация: 31.8.2007 Пользователь №: 8,995 ![]() |
Скрипты
Разрешение экрана <html> <head> <script language="JavaScript"> var height=0; var width=0; if (self.screen) { // for NN4 and IE4 width = screen.width height = screen.height } else if (self.java) { // for NN3 with enabled Java var jkit = java.awt.Toolkit.getDefaultToolkit(); var scrsize = jkit.getScreenSize(); width = scrsize.width; height = scrsize.height; } </script> </head> <body> <script language="JavaScript"> <!-- if (width > 0 && height > 0) { document.writeln ('Ваше разрешение: ',width,'x',height) } else { document.writeln('Я не знаю вашего разрешени\я') } //--> </script> </body> </html> Скрипт выдачи случайных ссылок <html> <head> <title>Скрипт выдачи случайных ссылок.</title> <script language="JavaScript"> <!-- This script and many more are available free online at --> <!-- Begin function go_to(url) { window.location=url; } function rand_link() { var a; a = 1+Math.round(Math.random()*4); // a = random number between 1-4 if (a==1) go_to("http://script.ru/index.shtml"); if (a==2) go_to("http://yndex.ru/"); if (a==3) go_to("http://rambler.ru/"); if (a==4) go_to("http://studia.script.ru/"); } // End --> </SCRIPT> </head> <body> <CENTER> <FORM NAME="myForm"> <INPUT TYPE="button" NAME="myButton" VALUE="Случайная ссылка" onClick="rand_link()"> </FORM> </CENTER> </body> </html> Печатающиеся ссылки <html> <head> <title>Печатающиеся ссылки.</title> </head> <script language="javascript"> <!-- var delay=20; var nextm=0; var link=1; zeilen=4; //hier angeben wieviele Zeilen du benutzt. var msg=new Array ( 'Надписи', 'Оформление фона', 'Можно использовать как меню', 'Компактное и удобное' ); function start_ticker() { do_ticker(msg[0], 0, 1); } function do_ticker(text, pos, dir) { var out='<font face="Arial, Helvetica">[ <font color=#808080><font size=-1><A HREF="java script:klick()">'+text.substring(0, pos)+'</A></font></font> ]</font>'; if(navigator.appName=="Netscape") with(document.ticker.document) { open(); write(out); close(); } else ticker.innerHTML=out; pos+=dir; if(pos>text.length) setTimeout('do_ticker("'+text+'",'+pos+','+(-dir)+')', delay*100); else { if(pos<0) { if(++nextm>=msg.length) nextm=0; link=link+1 if (link>=zeilen+1) link=1; text=msg[nextm]; dir=-dir; } setTimeout('do_ticker("'+text+'",'+pos+','+dir+')', delay); } } function klick() { //hier die links. if (link==1) location.href="term.htm" //Dort Link 1 eintragen if (link==2) location.href="background.htm" //Dort Link 2 eintragen if (link==3) location.href="menu.htm" //Dort Link 3 eintragen if (link==4) location.href="index.htm" //Dort Link 4 eintrage } // --> </script> <body onload="start_ticker()"> <div align="center" id="ticker" style="LEFT: 195px; POSITION: absolute; TOP: 15px"></div><br> </body> </html> Салют при наведении на ссылку <html> <head> <title>Салют при наведении на ссылку</title> <script> <!-- var debrisnumber=40 var debriscolor=new Array() debriscolor[0]="FFAAAA" debriscolor[1]="AA0000" debriscolor[2]="770000" debriscolor[3]="AA4444" debriscolor[4]="EE4422" var x_debrispos var y_debrispos var x,y var x_random=new Array() var y_random=new Array() var max_explsteps=20 var i_explsteps=0 var i_color=0 var pause=10 function checkbrowser() { i_explsteps=0 x_debrispos=x y_debrispos=y for (i=0;i<=debrisnumber;i++) { x_random[i]=Math.ceil(40*Math.random())-20 y_random[i]=Math.ceil(40*Math.random())-20 } if (document.all) { for (i=0;i<=debrisnumber;i++) { var thisspan=eval("document.all.span"+i+".style") thisspan.visibility="VISIBLE" thisspan.posLeft=x_debrispos thisspan.posTop=y_debrispos } explode_IE() } if (document.layers) { for (i=0;i<=debrisnumber;i++) { var thisspan=eval("document.span"+i) thisspan.visibility="VISIBLE" thisspan.left=x_debrispos thisspan.top=y_debrispos } explode_NN() } } function explode_IE() { if (i_explsteps<=max_explsteps) { for (i=0;i<=debrisnumber;i++) { var thisspan=eval("document.all.span"+i+".style") thisspan.posLeft+=x_random[i] thisspan.posTop+=y_random[i] } i_explsteps++ var timer=setTimeout("explode_IE()",pause) } else { for (i=0;i<=debrisnumber;i++) { var thisspan=eval("document.all.span"+i+".style") thisspan.visibility="HIDDEN" } clearTimeout(timer) } } function explode_NN() { if (i_explsteps<=max_explsteps) { for (i=0;i<=debrisnumber;i++) { var thisspan=eval("document.span"+i) thisspan.left+=x_random[i] thisspan.top+=y_random[i] } i_explsteps++ var timer=setTimeout("explode_NN()",pause) } else { for (i=0;i<=debrisnumber;i++) { var thisspan=eval("document.span"+i) thisspan.visibility="HIDDEN" } clearTimeout(timer) } } function handlerMM(e){ x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY } if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; // - End of JavaScript - --> </script> <style> .spanstyle { position:absolute; visibility:hidden;} </style> </head> <body> <script> <!-- Beginning of JavaScript - for (i=0;i<=debrisnumber;i++) { document.write("<div id='span"+i+"' class='spanstyle'>") document.write("<table cellpadding=0 cellspacing=0>") document.write("<tr><td bgcolor="+debriscolor[i_color]+">") document.write("<img src='emptypixel236.gif' width=3>") document.write("</td></tr></table>") document.write("</div>") i_color++ if (i_color>=debriscolor.length) {i_color=0} } // - End of JavaScript - --> </script> <DIV id="redir" style="position:absolute; top:10px; left:5px; visibility:visible;"> <div align="center"><a href="http://scriptic.ru" onMouseOver="checkbrowser()"> Подведите мышь к ссылке</a></div> </DIV> </body> </html> |
|
|
![]() ![]() |
![]() |
Текстовая версия | Сейчас: 21st August 2025 - 12:53 |