Коды
оставь свой код
...:::Интер:::... |
Привет, Гость! Войдите или зарегистрируйтесь.
Вы здесь » ...:::Интер:::... » Программирование » Html и JS коды
Коды
оставь свой код
Код чат для сайта <iframe frameborder=0 scrolling=no width=180 height=395 src=http://kahoxa.ru/widget/chat/chat.php></iframe> <a href="http://vitcoff.narod.ru/radio/hip-hop/ZaycevFM-RnB.html">Слушать радио Зайцев.ФМ хип-хоп</a> <!-- TWO STEPS TO INSTALL QUARTERLY CALENDAR: 1. Paste the specified coding into the HEAD of your HTML document 2. Put the last code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin var flg = 0; var fs = 1; var bg = "cyan"; M = new Array("January","February", "March","April","May","June", "July","August","September", "October","November","December"); D = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat"); function getBgn() { pdy = new Date(); // today pmo = pdy.getMonth(); // present month pyr = pdy.getYear(); // present year if (pyr < 2000) // Y2K Fix, Isaac Powell pyr = pyr + 1900; // http://onyx.idbsu.edu/~ipowell yr = yr1 = (pmo==0?pyr-1:pyr); // last month's year mo = (pmo==0?11:pmo-1); // last month bgn = new Date(M[mo]+" 1,"+yr1); // assign to date document.write('<TABLE BORDER=0><TR><TD VALIGN=TOP>'); Calendar(); // Send last month to screen document.write('</TD><TD VALIGN=TOP>'); yr = pyr; // present year mo = pmo; // present month bgn = new Date(M[mo]+" 1,"+yr); // assign to date Calendar(); // Send this month to screen document.write('</TD><TD VALIGN=TOP>'); yr = (pmo==11?pyr+1:pyr); // next month's year mo = (pmo==11?0:pmo+1); // next month bgn = new Date(M[mo]+" 1,"+yr); // assign to date Calendar(); // Send next month to screen document.write('</TD></TR></TABLE>'); // Finish up } function Calendar(){ dy = bgn.getDay(); yr = eval(yr); d = "312831303130313130313031"; if (yr / 4 == Math.floor(yr / 4)) { d = d.substring(0, 2) + "29" + d.substring(4, d.length); } pos = (mo * 2); ld = eval(d.substring(pos, pos + 2)); document.write("<TABLE BORDER=1" + " BGCOLOR='" + bg + "'><TR><TD ALIGN=CENTER COLSPAN=7>" + "<FONT SIZE=" + fs + ">" + M[mo] + " " + yr + "</FONT></TD></TR><TR><TR>"); for (var i = 0;i < 7;i ++) { document.write("<TD ALIGN=CENTER>" +"<FONT SIZE=1>" + D[i] + "</FONT></TD>"); } document.write("</TR><TR>"); ctr = 0; for (var i = 0;i < 7; i++){ if (i < dy) { document.write("<TD ALIGN=CENTER>" +"<FONT SIZE=" + fs + "> </FONT>" +"</TD>"); } else { ctr++; document.write("<TD ALIGN=CENTER>" + "<FONT SIZE=" + fs + ">" + ctr + "</FONT>" + "</TD>"); } } document.write("</TR><TR>"); while (ctr < ld) { for (var i = 0;i < 7; i++){ ctr++; if (ctr > ld){ document.write("<TD ALIGN=CENTER>" + " </TD>"); } else { document.write("<TD ALIGN=CENTER>" + "<FONT SIZE=" + fs + ">" + ctr + "</FONT>" + "</TD>"); } } document.write("</TR><TR>"); } document.write("</TR></TABLE>"); } // End --> </SCRIPT> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <CENTER> <P><B>JavaScript Quarterly Calendar</B> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin getBgn(); // End --> </SCRIPT> </CENTER> <!-- Script Size: 2.49 KB -->
код для сайта Радио
<center><a href=http://isucoz.ru/files/902-kod-pleera-radio-dlya-sayta.html><b>Radio Zabawa</b></a><br> <noindex><object id="audioplayer475" width="200" height="45"><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://radiozabawa.net/pleer/uppod.swf" /><param name="flashvars" value="st=http://radiozabawa.net/pleer/audio56-1161.txt&pl=http://radiozabawa.net/pleer/playlist_audio56-475.txt" /><embed src="http://radiozabawa.net/pleer/uppod.swf" type="application/x-shockwave-flash" allowscriptaccess="always" flashvars="st=http://radiozabawa.net/pleer/audio56-1161.txt&pl=http://radiozabawa.net/pleer/playlist_audio56-475.txt" bgcolor="#ffffff" width="200" height="45"></embed></object><br> <a href="http://radiozabawa.net/radiozabawa.net/pleer rek.html" onclick="popupWin = window.open(this.href, 'contacts', 'width=250, height=200, top=0'); popupWin.focus(); return false;" target="_blank" title="Заказать песню"><b>Заказать песню</b></a></center></noindex>
Код для сайта Часы
<embed width="299" height="342" type="application/x-shockwave-flash" src="http://dezzi.ru/images/clock3.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="window" loop="true" autoplay="true" quality="high">
Код Чат
<script type="text/javascript" src="http://chatyer.chatovod.ru/widget.js?height=450" charset="UTF-8"></script><p><a href="http://www.chatovod.ru/">Чат создан с помощью Chatovod.ru.</a></p>
Запрет копирования текста на странице
<span oncontextmenu="return false;" ondragstart="return false";><img src="picture.jpg" galleryimg="no"></span>
код канкулятор
<style type="text/css"> .tblCalc{ border:1px solid gray; margin:0; padding:0; width:250px; text-align:center; } .tblCalc input{ border:1px solid gray; width:30px; margin:4px; } #btnWide{ width:80px; } #editWide{ width:250px; } </style> <form name="calc" action=""> <table class="tblCalc" cellpadding=0 cellspacing=0> <tr> <td colspan=5 align=middle> <input id="editWide" name="ReadOut" type="Text" size=28 value="0" width="250px"> </td> </tr> <tr> <td colspan="3"></td> <td><input name="btnClear" type="Button" value="C" onclick="Clear()" /></td> <td><input name="btnClearEntry" type="Button" value="CE" onclick="ClearEntry()" /></td> </tr> <tr> <td><input name="btnSeven" type="Button" value="7" onclick="NumPressed(7)"></td> <td><input name="btnEight" type="Button" value="8" onclick="NumPressed(8)"></td> <td><input name="btnNine" type="Button" value="9" onclick="NumPressed(9)"></td> <td><input name="btnPlus" type="Button" value="+" onclick="Operation('+')" /></td> <td><input name="btnMultiply" type="Button" value="*" onclick="Operation('*')" /></td> </tr> <tr> <td><input name="btnFour" type="Button" value="4" onclick="NumPressed(4)"></td> <td><input name="btnFive" type="Button" value="5" onclick="NumPressed(5)"></td> <td><input name="btnSix" type="Button" value="6" onclick="NumPressed(6)"></td> <td><input name="btnMinus" type="Button" value="-" onclick="Operation('-')" /></td> <td align=middle><input name="btnDivide" type="Button" value=" / " onclick="Operation('/')" /></td> </tr> <tr> <td><input name="btnOne" type="Button" value="1" onclick="NumPressed(1)"></td> <td><input name="btnTwo" type="Button" value="2" onclick="NumPressed(2)"></td> <td><input name="btnThree" type="Button" value="3" onclick="NumPressed(3)"></td> <td><input name="btnPercent" type="Button" value="%" onclick="Percent()" /></td> <td align=middle> </td> </tr> <tr> <td><input name="btnZero" type="Button" value="0" onclick="NumPressed(0)"></td> <td><input name="btnDecimal" type="Button" value="." onclick="Decimal()"></td> <td><input name="btnNeg" type="button" value="+/-" onclick="Neg()" /></td> <td colspan="2"><input id="btnWide" name="btnEquals" type="Button" value="=" onclick="Operation('=')"></td> </tr> </table> </form>
Код на часы украинские
<script src="http://weatherandtime.net/swfobject.js" type="text/javascript" ></script><div id="div_clock_01" style="text-align:center; margin:auto auto;width:145px; height:185px;"><div style="padding:0px 1px 1px 1px;position:absolute; z-index:100; color:#D1A8F0; text-align:center; width:145px;height:auto;"><a style="color:#D1A8F0; text-decoration:none;font-size:12px;" href="http://weatherandtime.net/ru/Europe/Ukraine/Luhansk-324763-time.html" title="Время в Луганске">Время в Луганске</a></div><span id="swf_clock_01"> </span></div><script type="text/javascript" language="Javascript">swfobject.embedSWF("http://weatherandtime.net/clock_01.swf", "swf_clock_01", "145", "185", "10","clock_01.swf", {city: "49495",lang:"ru",color:"#D1A8F0"}, {menu:"false",wmode:"transparent",allowScriptAccess:"always"}, {id:"clock_01",name:"clock_01"});</script>
Простейший код , прямо здесь написал:
<html> <head> <script type="text/javascript"> function vavv() { alert("Привет, интер!") } </script> <noscript>Включите JavaScript!</noscript> <title>Приветствие</title> </head> <body> <div align="center"> <form> <input type="button" value="Нажми на меня" onClick="vavv()"> </form><br> <a href="vk.com/thedimzone">Моя страница</a> </div> </body> </html>
В последнее время у меня проблемы с кодировкой, что бы отображался русский, ставим UTF-8
Вы здесь » ...:::Интер:::... » Программирование » Html и JS коды
© 2000 Сервис форумов «LiFeForums»
Создать форум бесплатно | Домен за 149 руб
Разместить рекламу * Пожаловаться на форум * Политика конфиденциальности