Форум » Скрипты » Кто сможет написать неповторимый скрипт? » Ответить

Кто сможет написать неповторимый скрипт?

Элви: Название темы говорит само за себя))

Ответов - 126, стр: 1 2 3 4 5 6 7 All

DruiD: САЛЮТ НА ТЁМНОМ ФОНЕ <html> <!--Dynamic Drive DHTML Scripts, examples, and tutorials. Copyrighted © 1998--> <head> <meta name="description" content="Live Background Previewer Script"> <meta name="keywords" content="background previewer, thumbnail viewer, "> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- /* Document firework script (By Matt Gabbert, mgabbert@usrtoday.com, http://www.nolag.com) Permission granted to Dynamic Drive to feature script in archive For full source and 100's more DHTML scripts, visit http://dynamicdrive.com */ //set Interval between each firework display, var intervals=2000 var sparksOn = true; var speed = 40; var power = 3; //Dont change these values------- var documentWidth=documentHeight=randomx=randomy=leftcorner=topcorner=0 var ns=(document.layers); var ie=(document.all); var ns6=(document.getElementById&&!document.all); var sparksAflyin = false; var allDivs = new Array(10); var totalSparks = 0; //------------------------------- function initAll(){ if(!ns && !ie &&!ns6){ sparksOn = false; return; } setInterval("firework()",intervals) if (ns) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE); for(dNum=0; dNum<7; ++dNum){ if(ie) allDivs[dNum]=eval('document.all.sDiv'+dNum+'.style'); else if (ns6) allDivs[dNum]=document.getElementById('sDiv'+dNum).style; else allDivs[dNum]=eval('document.layers["sDiv'+dNum+'"]'); } } function firework(){ //below code detects the browser dimenions if (ie){ documentWidth=document.body.clientWidth documentHeight=document.body.clientHeight leftcorner=document.body.scrollLeft topcorner=document.body.scrollTop } else if (ns||ns6){ documentWidth=window.innerWidth documentHeight=window.innerHeight leftcorner=pageXOffset topcorner=pageYOffset } //below code randomly generates a set of coordinates that fall within the dimension randomx=leftcorner+Math.floor(Math.random()*documentWidth) randomy=topcorner+Math.floor(Math.random()*documentHeight) if(sparksOn){ if(!sparksAflyin){ sparksAflyin=true; totalSparks=0; for(var spark=0;spark<=6;spark++){ dx=Math.round(Math.random()*50); dy=Math.round(Math.random()*50); moveTo(spark,randomx,randomy,dx,dy); } } } } function moveTo(i,tempx,tempy,dx,dy){ if(ie){ if(tempy+80>(document.body.offsetHeight+document.body.scrollTop)) tempy=document.body.offsetHeight+document.body.scrollTop-80; if(tempx+80>(document.body.offsetWidth+document.body.scrollLeft)) tempx=document.body.offsetWidth+document.body.scrollLeft-80; } else if(ns6){ if(tempy+80>(window.innerHeight+pageYOffset)) tempy=window.innerHeight+pageYOffset-80; if(tempx+80>(window.innerWidth+pageXOffset)) tempx=window.innerWidth+pageXOffset-80; } if(tempx>-50&&tempy>-50){ tempx+=dx;tempy+=dy; allDivs.left=tempx; allDivs.top=tempy; dx-=power;dy-=power; setTimeout("moveTo("+i+","+tempx+","+tempy+","+dx+","+dy+")",speed) } else ++totalSparks if(totalSparks==7){ sparksAflyin=false; totalSparks=0; } } window.onload=initAll //End--> </script> <style> #sDiv0 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:Aqua; z-index:9;} #sDiv1 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:red; z-index:10;} #sDiv2 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:blue; z-index:11;} #sDiv3 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:orange; z-index:12;} #sDiv4 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:yellow; z-index:13;} #sDiv5 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:lightgreen; z-index:14;} #sDiv6 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:silver; z-index:15;} </style> <title>Dynamic Drive DHTML Script- Document fireworks script</title> </head> <body leftmargin="0" marginwidth="0" bgcolor="#000000" text="#FFFFFF" link="#FFFF00" vlink="#00FF00" alink="#008000"> <div id="sDiv0">*</div> <div id="sDiv1">*</div> <div id="sDiv2">*</div> <div id="sDiv3">*</div> <div id="sDiv4">*</div> <div id="sDiv5">*</div> <div id="sDiv6">*</div> </body> </html> ЗВЁЗДЫ <head> <title>Untitled Document</title> <meta http-equiv="Содержимое-Тип" content="text/html; charset=windows-1251"> <style type="text/css"> body { overflow-x: hidden; } v\:* { behavior: url(#default#VML); } </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <script language="JavaScript"> /* VML Fireworks script -- By Jacco IJzerman (j.ijzerman1@REMOVETHISchello.nl) Permission granted to Dynamicdrive.com to feature script in archive. For full source code, visit http://www.dynamicdrive.com/ */ //Customize fireworks colors: colors = new Array(); colors[0] = new Array('yellow', 'lime'); colors[1] = new Array('lime', 'green') colors[2] = new Array('lime', 'blue'); colors[3] = new Array('lightyellow', 'purple'); colors[4] = new Array('lightblue', 'white'); colors[5] = new Array('blue', 'silver'); colors[6] = new Array('red', 'fuchsia'); colors[7] = new Array('yellow', 'red'); maximum = 1000; vmlobj=''; for(i = 0; i < 12; i++){ vmlobj += '<div id="ster'+i+'" style="position:absolute; left:-50px; top-50px; visibility:hidden; z-index:50;">'; vmlobj += '<v:shape style="width:15px; height:15px;" fillcolor="yellow" coordorigin="0,0" coordsize="200 200">'; vmlobj += '<v:path v="m 8,65 l 72,65, 92,11, 112,65, 174,65, 122,100, 142,155,92,121, 42,155, 60,100 x e"/>'; vmlobj += '<v:stroke on="false" /></v:shape></div>'; } document.write(vmlobj); vmlobj = null; aantal = 0; function begin() { try { if(aantal == maximum){ return;} kleurschema = Math.floor(Math.random() * colors.length); posLinks = Math.floor(Math.random() * (document.body.clientWidth - 180)); posLinks = (posLinks < 170)? 170: posLinks; posBoven = Math.floor(Math.random() * (document.body.clientHeight - 180)); posBoven = (posBoven < 170)? 170: posBoven; straal = 0; uiteen = true; teller = 1; flikkereffect = false; for(var i = 0; i < 12; i++){ document.getElementsByTagName('shape').setAttribute('fillcolor', colors[kleurschema][0]); document.getElementById('ster'+i).style.visibility = 'hidden'; // 5.0 fix document.getElementById('ster'+i).style.left = posLinks; document.getElementById('ster'+i).style.top = posBoven; } document.getElementById('ster0').style.top = (document.body.clientHeight - 20); document.getElementById('ster0').style.visibility = 'visible'; omhoog(); } catch(e){} } function omhoog() { try { positie = parseInt(document.getElementById('ster0').style.top); if(positie > posBoven){ document.getElementById('ster0').style.top = (positie - 25); setTimeout('omhoog()', 50); } else { for(i = 1; i < 12; i++){ document.getElementById('ster'+i).style.top = positie; document.getElementById('ster'+i).style.visibility = 'visible'; } uiteenspatten(); } } catch(e){} } function uiteenspatten() { try { if(straal > 120 && straal % 10 == 0){ flikkereffect = true; teller = (teller == colors[kleurschema].length)? 0: (teller+1); } for(var i = 0; i < 12; i++){ var hoek = i * 30; var piHoek = Math.PI - Math.PI / 180 * hoek; var links = posLinks + Math.round(straal * Math.sin(piHoek)); var boven = positie + Math.round(straal * Math.cos(piHoek)); document.getElementById('ster'+i).style.left = links; document.getElementById('ster'+i).style.top = boven; if(flikkereffect){ document.getElementsByTagName('shape').setAttribute('fillcolor', colors[kleurschema][teller]); } } if(straal < 160 && uiteen){ straal += (straal < 120)? 10: 5; setTimeout('uiteenspatten()', 50); } else if(straal > 120){ uiteen = false; straal -= 5; setTimeout('uiteenspatten()', 50); } else if(straal <= 120){ for(var i = 0; i < 12; i++){ document.getElementById('ster'+i).style.visibility = 'hidden'; } aantal++; setTimeout('begin()', 500); } } catch(e) {} } window.onload=begin; </script> </body> </html>

kisa-72: DruiD чё-то не работает...

DruiD: kisa-72 пишет: чё-то не работает... странно у мну всё пашет


Lu: DruiD у мну тож не работает

DruiD: а что именно не работает?

ОДРИ: Люди!Помогите!Я не могу входить на сайт!

Саши: ОДРИ пишет: Люди!Помогите!Я не могу входить на сайт! Как это? Напиши подробнее.

Koly@n: ВОТ Я НАШОЛ НО ПРИШЛОСЬ НЕМНОГО ПОПРАВИТЬ! ЭТО ИГРА ПРАВДО НЕ ПОМНЮ КАК НАЗЫВАЕТЬСЯ! <div align="center"><h1>Пин понг</h1> Печать начинает играть. Переместите весло, помещая ваш курсор на порывах. <p> <form name="form"> <textarea name="text3" rows="16" cols="34">[ИГРОВОЕ ПОЛЕ]</textarea><p> <p> <a href="" onMouseOver="u =0">\\\</a> <a href="" onMouseOver="u =1">\\\</a> <a href="" onMouseOver="u =2">\\\</a> <a href="" onMouseOver="u =3">\\\</a> <a href="" onMouseOver="u =4">\\\</a> <a href="" onMouseOver="u =5">\\\</a> <a href="" onMouseOver="u =6">\\\</a> <a href="" onMouseOver="u =7">\\\</a> <a href="" onMouseOver="u =8">\\\</a> <a href="" onMouseOver="u =9">\\\</a> <a href="" onMouseOver="u = 10">\\\</a> <a href="" onMouseOver="u = 11">\\\</a> <a href="" onMouseOver="u = 12">\\\</a> <a href="" onMouseOver="u = 13">\\\</a> <a href="" onMouseOver="u = 14">\\\</a> <a href="" onMouseOver="u = 15">\\\</a> <a href="" onMouseOver="u = 15">\\\</a><p> <input type="button" name="button1" value="СТАРТ" onCLick="startclock(this.form)"> Очки: <input type="text" name="score" size="10" value="0"> </form> </div> <script language="JavaScript"> <!-- Begin var crlf = "\r\n"; var x = 1; var y = 1; var dx = 1; var dy = 1; var s = ""; var u = 0; var oops_flag = false; var score = 0; function move1() { x += dx; if (x > 31) { x -= 2 * Math.abs(dx); if (dx > 0) dx = -dx; } if (x < 0) { x += 2 * Math.abs(dx); if (dx < 0) dx = -dx; } y += dy; if (y > 14) { y -= 2 * Math.abs(dy); if (dy > 0) dy = -dy; if (Math.abs(x - 2*u - 1) > 2) { oops_flag = true; } else { score += 1; } } if (y < 0) { y += 2 * Math.abs(dy); if (dy < 0) dy = -dy; } } function display1() { var s1 = ""; var i,j; if (oops_flag) return "Oops!! That one got by you! Feel free to play again!"; for (j=0;j<15;j++) { for (i=0;i<32;i++) { if (j == y && i == x) s1 += "o"; else s1 += "."; } s1 += crlf; } var s2 = ""; for (i=0;i<16;i++) { if (u == i) s2 += "=="; else s2 += ".."; } return (s1+s2); } var timerID = null; var timerRunning = false; var myform; function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false; } function startclock (form) { myform = form; oops_flag = false; if (navigator.userAgent.indexOf("Mac") > 2) crlf = "\n"; stopclock(); dotime(); } function dotime() { move1(); if (myform != null) { myform.text3.value = display1(); myform.score.value = " " + score; } if (!oops_flag) timerID = setTimeout("dotime()",200); timerRunning = true; } // End --> </script>

Koly@n: я еще нашол там около 1000 скриптов но их надо исправить

Koly@n: меня постоянно не хотят оценить!

Саши: Koly@n пишет: меня постоянно не хотят оценить! Зря ты так, просто тут не каждый день все бывают. Я вот очень занята, сам видешь не появляюсь почти. Так что двай без обид, и наберись терпения. Тебе обязательно помогут.!!!

Koly@n: я не обижаюсь! а вот насчет редко бывают это да!

гость: DruiD приветик,у меня такая просьбочка..если можешь, напиши для меня скрипт,который не позволяет тырить с моего чата кнопочки и фон,вот ведь правильно,лучше бы попросили..я бы сама дала и фон и прочее,ещё и помогла бы в выборе,а так ведь обидно даже как-то....мне дали скриптик один,но он не работает в опере и мазиле((( заранее спасибки

Koly@n: Гость, у меня есть один! но я его еще не пробовал а говорят работает отменно! скоро найду и выложу! ок?

Phantom of Darkness: Саши, а тебе отдельное ня, енто для Вас)

Phantom of Darkness: Но вот только малость у вас всё же не в тему... Тема: Кто сможет написать неповторимый скрипт? а вы все так же пишите чужие скрипты с каких-то левых сайтов... чё к чему....

St@rla: чтоб написать свой скрипт, тут не только НТМЛ нужно знать, но и язык Java Script а можно и РНР для полного результата. Кста, в РНР код отвечающий за приветствие с именем (ником) пользователя (можете назвать его скриптом) типа "привет Саши" где "Саши" меняеться в зависимости от имени участника, записываеться в одну строчьку.

St@rla: А вот и то, о чем я вам говорила... Это скрипт эфекта с экраном(взят с этого сайта): </p> <style> <!-- .intro{ position:absolute; left:0; top:0; layer-background-color:yellow; background-color:yellow; border:0.1px solid yellow; z-index:10; } --> </style> <div id="i1" class="intro"></div><div id="i2" class="intro"></div> <script language="JavaScript1.2"> /* Top-Down Curtain Script- By Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, and TOS, visit http://www.dynamicdrive.com */ var ns4=document.layers?1:0 var ie4=document.all?1:0 var ns6=document.getElementById&&!document.all?1:0 var speed=20 var temp=new Array() var temp2=new Array() if (ns4){ for (i=1;i<=2;i++){ temp=eval("document.i"+i+".clip") temp2=eval("document.i"+i) temp.width=window.innerWidth temp.height=window.innerHeight/2 temp2.top=(i-1)*temp.height } } else if (ie4||ns6){ var clipbottom=ns6?parseInt(window.innerHeight)/2:document.body.offsetHeight/2 cliptop=0 for (i=1;i<=2;i++){ temp=ns6?document.getElementById("i"+i).style:eval("document.all.i"+i+".style") temp.width=ns6?window.innerWidth-15:document.body.clientWidth temp.height=ns6?window.innerHeight/2:document.body.offsetHeight/2 temp.top=(i-1)*parseInt(temp.height) } } function openit(){ window.scrollTo(0,0) if (ns4){ temp[1].bottom-=speed temp[2].top+=speed if (temp[1].bottom<=0) clearInterval(stopit) } else if (ie4||ns6){ clipbottom-=speed temp[1].clip="rect(0 auto "+clipbottom+" 0)" cliptop+=speed temp[2].clip="rect("+cliptop+" auto auto auto)" if (clipbottom<=-5){ clearInterval(stopit) if (ns6){ temp[1].display="none" temp[2].display="none" } } } } function gogo(){ stopit=setInterval("openit()",100) } gogo() </script> <a href="http://sababa.webhost.ru" target=_blank> <img src="http://sababa.webhost.ru/image/banner8831.gif" border="0"alt=" Cкрипты, шаблоны, курсоры, часы и знаменитости." width=88height=31></a></center> ну я думаю понятно, что значить эта строчька...

Phantom of Darkness: хм... и что этот код делает я так и не понял толком с твоих слов... напиши его у себя в новом документе и запусти его и проверь будет ли тот эффект, который ты ожидаешь))) а вот на её сайте St@rla пишет: код отвечающий за приветствие с именем (ником) пользователя, типа "привет Саши" где "Саши" меняеться в зависимости от имени участника, записываеться в одну строчьку. это не на JavaScripte написано и для других целей) тот код, который ты написала выше служит для выравнивания объекктов, которые пмещены в секции <div>объект</div>, но не ля вывода имени (ника) чела,зашедшего на сайт :) ВотЬ

St@rla: тО, что приведено выше, это код одного из этих эфектов: http://sababa.webhost.ru/Efekt-s-fonami.html (какой, точно не помню) Но а впринцыпе... Если мой пример не подходит, посмотри любой скрипт приведенный в этой теме. и там найдешь эту волшебную строчечьку... Phantom of Darkness пишет: тот код, который ты написала выше служит для выравнивания объекктов, которые пмещены в секции <div>объект</div>, но не ля вывода имени (ника) чела,зашедшего на сайт :) ВотЬ Я же писала двумя сообщениями выше, что тот код выполняеться в РНР, а в приведеном коде РНР и не пахнет. Ктому-же, в начале сообщения было сказано: St@rla пишет: Это скрипт эфекта с экраном(взят с этого сайта): так что...



полная версия страницы