ВОЛШЕБНАЯ СТРАНА ЛЮБВИ http://helena.maxbb.ru/ |
|
скрипты для сайта http://helena.maxbb.ru/topic516.html |
Страница 12 из 12 |
Автор: | helena [ 10-02, 00:31 ] |
Заголовок сообщения: | |
Сколько посетителей на сайте <center> <!-- Start FastOnlineUsers.com --> <center><font face="Vernanda" size="4" color="black"><script src=http://fastonlineusers.com/online.php?d=http://webcollection.narod.ru/Skript/skolko.html></script> Посетителей на моём сайте!</a><!-- End FastOnlineUsers.com --> </center> |
Автор: | helena [ 10-02, 00:32 ] |
Заголовок сообщения: | |
Сколько раз Вы были на этой страничке <SCRIPT LANGUAGE="JavaScript"> <!-- // Boolean variable specified if alert should be displayed if cookie exceeds 4KB var caution = false // name - name of the cookie // value - value of the cookie // [expires] - expiration date of the cookie (defaults to end of current session) // [path] - path for which the cookie is valid (defaults to path of calling document) // [domain] - domain for which the cookie is valid (defaults to domain of calling document) // [secure] - Boolean value indicating if the cookie transmission requires a secure transmission // * an argument defaults when it is assigned null as a placeholder // * a null placeholder is not required for trailing omitted arguments function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "") if (!caution || (name + "=" + escape(value)).length <= 4000) document.cookie = curCookie else if (confirm("Cookie exceeds 4KB and will be cut!")) document.cookie = curCookie } // name - name of the desired cookie // * return string containing value of specified cookie or null if cookie does not exist function getCookie(name) { var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) return null var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) } // name - name of the cookie // [path] - path of the cookie (must be same as path used to create cookie) // [domain] - domain of the cookie (must be same as domain used to create cookie) // * path and domain default if assigned null or omitted if no explicit argument proceeds function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT" } } // date - any instance of the Date object // * you should hand all instances of the Date object to this function for "repairs" // * this function is taken from Chapter 14, "Time and Date in JavaScript", in "Learn Advanced JavaScript Programming" function fixDate(date) { var base = new Date(0) var skew = base.getTime() if (skew > 0) date.setTime(date.getTime() - skew) } var now = new Date() fixDate(now) now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000) var visits = getCookie("counter") if (!visits) visits = 1 else visits = parseInt(visits) + 1 setCookie("counter", visits, now) document.write("Вы посетили эту страничку " + visits + " раз(а).") // --> </SCRIPT> |
Автор: | helena [ 10-02, 00:51 ] |
Заголовок сообщения: | |
Меню с подсказкой <SCRIPT language=JavaScript1.2> <!-- offMessage = "здесь можно почитать подсказку" function menuOn(which,message){ if (document.all||document.getElementById){ which.className='BorderOn'//osw if (document.getElementById) {document.getElementById("Message").innerHTML = message} else {Message.innerHTML = message} } } function menuOff(which){ if (document.all||document.getElementById){ which.className='BorderOff' if (document.getElementById) {document.getElementById("Message").innerHTML = offMessage} else {Message.innerHTML = offMessage} } } //--> </SCRIPT> <TABLE align=center class=BorderOff onmouseover="menuOn(this,'Подсказка для ссылки1')" onmouseout=menuOff(this) cellSpacing=0 cellPadding=3> <TR> <TD><A href="index.html"><FONT face=Tahoma size=2><B>Линка1</B></FONT></A></TD></TR></TABLE> <TABLE align=center onmouseover="menuOn(this,'А это Подсказка для ссылки2')" onmouseout=menuOff(this) cellSpacing=0 cellPadding=3> <TR> <TD><A class=mBlue href="index.html"><FONT face=Tahoma size=2><B>Линка2</B></FONT></A></TD></TR></TABLE> <TABLE align=center class=BorderOff onmouseover="menuOn(this,'Подсказка для ссылки3')" onmouseout=menuOff(this) cellSpacing=0 cellPadding=3> <TR> <TD><A class=mGreen href="index.html"><FONT face=Tahoma size=2><B>Линка3</B></FONT></A></TD></TR></TABLE> <br> <TABLE align=center cellSpacing=0 cellPadding=1 bgColor=#ffffff> <TR><TD vAlign=top align=left width=241 height=35><FONT id=Message face=Tahoma color=#0000ff size=1>меню с подсказками</FONT></TD></TR></TABLE> |
Автор: | helena [ 10-02, 00:52 ] |
Заголовок сообщения: | |
Горизонтальное выпадающее меню <SCRIPT LANGUAGE="JavaScript"> var isDOM = false, isNS4 = false; if (document.all) var isDOM = true, docObj = 'document.all.', styObj = '.style'; else if (document.layers) var isNS4 = true, docObj = 'document.', styObj = ''; var popTimer = 0; var litNow = new Array(); function popOver(menuNum, itemNum) { clearTimeout(popTimer); hideAllBut(menuNum); litNow = getTree(menuNum, itemNum); changeCol(litNow, true); targetNum = menu[menuNum][itemNum].target; if (targetNum > 0) { targetName = menu[targetNum][0].id; menuName = menu[menuNum][0].id; menuRef = eval(docObj + menuName + styObj); thisX = parseInt(menuRef.left); thisY = parseInt(menuRef.top); itemPath = docObj;//osw if (isNS4) itemPath += menuName + '.document.'; itemRef = eval(itemPath + menuName + itemNum.toString() + styObj); thisX += parseInt(itemRef.left); thisY += parseInt(itemRef.top); with (eval(docObj + targetName + styObj)) { left = parseInt(thisX + menu[targetNum][0].x); top = parseInt(thisY + menu[targetNum][0].y); visibility = 'visible'; } } } function popOut(menuNum, itemNum) { popTimer = setTimeout('hideAllBut(0)', 500); } function getTree(menuNum, itemNum) { itemArray = new Array(menu.length); while(1) { itemArray[menuNum] = itemNum; if (menuNum == 0) return itemArray; itemNum = menu[menuNum][0].parentItem; menuNum = menu[menuNum][0].parentMenu; } } function changeCol(changeArray, isOver) { for (menuCount = 0; menuCount < changeArray.length; menuCount++) { if (changeArray[menuCount]) { thisMenu = menu[menuCount][0].id; thisItem = thisMenu + changeArray[menuCount].toString(); newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol; if (isDOM) document.all[thisItem].style.backgroundColor = newCol; if (isNS4) document[thisMenu].document[thisItem].bgColor = newCol; } } } function hideAllBut(menuNum) { var keepMenus = getTree(menuNum, 1); for (count = 0; count < menu.length; count++) if (!keepMenus[count]) eval(docObj + menu[count][0].id + styObj + '.visibility = "hidden"'); changeCol(litNow, false); } var endDL = isDOM ? '</div>' : '</layer>'; function Menu(id, x, y, width, overCol, backCol, borderCol) { this.id = id; this.x = x; this.y = y; this.width = width; this.overCol = overCol; this.backCol = backCol; this.borderCol = borderCol; this.parentMenu = null; this.parentItem = null; } function Item(text, href, height, target) { this.text = text; this.href = href; this.height = height; this.target = target; } function startDL(id, x, y, width, height, vis, back, border, zIndex, extraProps) { if (isDOM) { str = '<div id="' + id + '" style="position: absolute; left: ' + x + '; top: ' + y + '; width: ' + width + '; height: ' + height + '; visibility: ' + vis + '; '; if (back) str += 'background: ' + back + '; '; if (border) str += 'padding: 3px; border: 1px solid ' + border + '; '; if (zIndex) str += 'z-index: ' + zIndex + '; '; str += '" '; } if (isNS4) { str = '<layer id="' + id + '" left="' + x + '" top="' + y + '" width="' + width + '" height="' + height + '" visibility="' + vis + '" '; if (back) str += 'bgcolor="' + back + '" '; if (border) str += 'style="border: 1px solid ' + border + '" '; if (zIndex) str += 'z-index="' + zIndex + '" '; } return str + extraProps + '>'; } function mouseProps(currMenu, currItem) { return 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')"'; } function writeMenus(customRoot, popInd) { for (currMenu = 0; currMenu < menu.length; currMenu++) { showMenu = true; if ((currMenu == 0) && customRoot) { document.write(customRoot); showMenu = false; } with (menu[currMenu][0]) { menuHTML = startDL(id, x, y, 0, 0, 'hidden', null, null, 100, ''); var back = backCol, bord = borderCol, currWidth = width - 8; } itemPos = 0; for (currItem = 1; currItem < menu[currMenu].length; currItem++) { trigID = menu[currMenu][0].id + currItem.toString(); with (menu[currMenu][currItem]) { menuHTML += startDL(trigID, 0, itemPos, 0, 0, 'inherit', back, bord, 100, mouseProps(currMenu, currItem)) + '<table width="' + currWidth + '" border="0" cellspacing="0" cellpadding="0"><tr>' + '<td align="left"><a class="Item" href="' + href + '">' + text + '</a></td>' + '<td class="Item" align="right">' + (target ? popInd : '') + '</td></tr></table>' + endDL; if (target > 0) { menu[target][0].parentMenu = currMenu; menu[target][0].parentItem = currItem; } itemPos += height; } } if (showMenu) document.write(menuHTML + endDL); litNow[currMenu] = null; } } </script> <style> <!-- .Item { text-decoration: none; color: #FFFFFF; font: 12px Arial, Helvetica } --> </style> <SCRIPT LANGUAGE="JavaScript"> var menu = new Array(); var defOver = '#666699', defBack = '#003366', defBorder = '#000000'; var defHeight = 22; menu[0] = new Array(); menu[0][0] = new Menu('rootMenu', 0, 0, 80, '#666699', '#666699', defBorder); menu[0][1] = new Item('Linka1', '#', defHeight, 1); menu[0][2] = new Item('Linka2', '#', defHeight, 2); menu[0][3] = new Item('Linka3', '#', defHeight, 3); menu[1] = new Array(); menu[1][0] = new Menu('fileMenu', 0, 22, 80, defOver, defBack, defBorder); menu[1][1] = new Item('Linka4', '#', defHeight, 0); menu[1][2] = new Item('Linka5', '#', defHeight, 0); menu[1][3] = new Item('Linka6', '#', defHeight, 4); menu[1][4] = new Item('Linka7', '#', defHeight, 0); menu[1][5] = new Item('Linka8', '#', defHeight, 0); menu[2] = new Array(); menu[2][0] = new Menu('editMenu', 0, 22, 80, defOver, defBack, defBorder); menu[2][1] = new Item('Linka9', '#', defHeight, 0); menu[2][2] = new Item('Linka10', '#', defHeight, 0); menu[2][3] = new Item('Linka11', '#', defHeight, 0); menu[3] = new Array(); menu[3][0] = new Menu('helpMenu', 0, 22, 80, defOver, defBack, defBorder); menu[3][1] = new Item('Linka12', '#', defHeight, 0); menu[3][2] = new Item('Linka13', '#', defHeight, 0); menu[3][3] = new Item('Linka14', '#', defHeight, 0); menu[4] = new Array();//osw menu[4][0] = new Menu('reopenMenu', 85, 0, 100, '#333366', '#666699', '#666699'); menu[4][1] = new Item('Linka15', '#', defHeight, 0); menu[4][2] = new Item('Linka16', '#', defHeight, 0); menu[4][3] = new Item('Linka17', '#', defHeight, 0); newRoot = startDL('rootMenu', 0, 0, '100%', 17, 'hidden', '#666699', null, 100, ''); newRoot += startDL('rootMenu1', 5, 0, 40, 17, 'inherit', '#666699', null, 100, mouseProps(0, 1)); newRoot += '<span class="Item"> Linka 1</span>' + endDL; newRoot += startDL('rootMenu2', 55, 0, 40, 17, 'inherit', '#666699', null, 100, mouseProps(0, 2)); newRoot += '<span class="Item"> Linkа 2</span>' + endDL; newRoot += startDL('rootMenu3', 105, 0, 40, 17, 'inherit', '#666699', null, 100, mouseProps(0, 3)); newRoot += '<span class="Item"> Linkа 3</span>' + endDL; newRoot += endDL;//osw writeMenus(newRoot, '>'); if (isNS4) document.captureEvents(Event.CLICK); document.onclick = clickHandle; function clickHandle(evt) { if (isNS4) document.routeEvent(evt); hideAllBut(0); } eval(docObj + menu[0][0].id + styObj + '.visibility = "visible"'); function moveRoot() { rM = eval(docObj + menu[0][0].id + styObj); if (parseInt(rM.top) < 40) rM.top = 40; else rM.top = 0; }</script> |
Автор: | helena [ 11-02, 07:37 ] |
Заголовок сообщения: | |
Скрипт не дает возможности копировать HTML страницу <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> 5 <!--[if gte IE 5]><script language="JScript"> 6 createPopup().show( 0, 0, 0, 0, 0 ); 7 </script><![endif]--> 8 <body oncontextmenu="return false;"> 9 10 <title>Запрет на просмотр HTML кода</title> 11 12 </HEAD> 13 <BODY BGCOLOR=#ffffff vlink=#0000ff > 14 15 </body> 16 </html> |
Автор: | helena [ 11-02, 15:17 ] |
Заголовок сообщения: | |
Рисуем кнопку <form action="URL нужной страницы" target="_blank"><div align="center"><input style="WIDTH: 207px; HEIGHT: 39px" type="submit" size="33" value="Надпись на кнопке" /></div></form> |
Автор: | helena [ 11-02, 15:18 ] |
Заголовок сообщения: | |
Таблица с переливающимся ффоном для текста <TABLE style="BORDER-RIGHT: 4px ridge; BORDER-TOP: 4px ridge; BORDER-LEFT: 4px ridge; BORDER-BOTTOM: 4px ridge" cellSpacing=1 cellPadding=0 width="90%" bgColor=#ffffe8 background="http://www.ladylony.com/faixatblgif.gif" border=1> <TBODY> <TR> <TD width="100%"> <P align=center> </P> <CENTER> <p>Тут находиться твой текст на этой таблице</p> </CENTER> <P align="center"> </P> </TD></TR></TBODY></TABLE></DIV></CENTER> </head> |
Автор: | helena [ 11-02, 15:19 ] |
Заголовок сообщения: | |
Автоматическая пересылка на другой ресурс - <META HTTP-EQUIV="REFRESH" CONTENT="1; URL=http://www.куда.пересылать"> <script language="JavaScript"> <!-- window.location.href = "http://www.куда.пересылать" // --> </script> <CENTER><P><B><FONT SIZE=3><A HREF="http://www.куда.пересылать">название сайта куда отсылаем</A></FONT></B></P></CENTER> |
Страница 12 из 12 | Часовой пояс: UTC + 3 часа |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |