Jump to content
xisto Community
alexia

6 Script Clock / Password / BookMark / FavIcon / Back and forward but

Recommended Posts

1 - Script Back And forward Button

<script LANGUAGE="JavaScript"><!-- hide this script tag's contents from old browsersfunction goHist(a){ history.go(a);// Go back one.} //<!-- done hiding from old browsers --></script> <form METHOD="post"><input TYPE="button" VALUE="BACK" onClick="goHist(-1)"><input TYPE="button" VALUE="FORWARD" onClick="goHist(1)"></form><!-- -->

2 - Diable right Mouse button
<script language=JavaScript><!--var message="Function Disabled!";///////////////////////////////////function clickIE4(){if (event.button==2){alert(message);return false;}}function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){alert(message);return false;}}}if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}document.oncontextmenu=new Function("alert(message);return false")// --> </script>

3 - User / Password
<script>function submitentry(){password = document.password1.password2.value.toLowerCase()username = document.password1.username2.value.toLowerCase()passcode = 1usercode = 1for(i = 0; i < password.length; i++) {passcode *= password.charCodeAt(i);}for(x = 0; x < username.length; x++) {usercode *= username.charCodeAt(x);}//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORDif(usercode==134603040&&passcode==126906300)//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD{window.location=password+".htm"}else{alert("password/username combination wrong")}}</script><form name="password1"><strong>Enter username: </strong><input type="text" name="username2" size="15"><br><strong>Enter password: </strong><input type="password" name="password2" size="15"><input type="button" value="Submit" onClick="submitentry()"></form>

4 - Doc in doc
<object type="text/x-scriptlet" width=100% height="250" data="Your Html File (TextFile )"></object>

5 - Fav Icon Copy in <head> U Must Make ico Icon And Put to root File (www) folder ON host
<head><link rel="shortcut ico" href="http://forums.xisto.com/no_longer_exists/;&;'>http://forums.xisto.com/no_longer_exists/;&;

6 - Time And Clock I Find it on internet ::
<script type="text/javascript">// please keep these lines on when you copy the source// made by: Nicolas - http://forums.xisto.com/no_longer_exists/ == "Netscape") {//document.write('<layer id="clockanz"></layer><br>');//}//if (navigator.appVersion.indexOf("MSIE") != -1){//document.write('<span id="clockanz"></span><br>');//}function upclock(){ var dte = new Date();var hrs = dte.getHours();var min = dte.getMinutes(); var sec = dte.getSeconds();var col = ":";var spc = " ";var apm;if (12 < hrs) { apm="PM";hrs-=12;}else {apm="AM";}if (hrs == 0) hrs=12;if (min<=9) min="0"+min;if (sec<=9) sec="0"+sec;if(navigator.appName == "Netscape") {document.clockanz.document.write(hrs+col+min+col+sec+spc+apm);document.clockanz.document.close();}if (navigator.appVersion.indexOf("MSIE") != -1){clockanz.innerHTML = hrs+col+min+col+sec+spc+apm;}} setInterval("upclock()",1000);//Specify display mode. 3 possible values are://1) "always"- This makes the fade-in box load each time the page is displayed//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...// For example, 2 would display the box about (1/2) 50% of the time the page loads.var displaymode="always"var enablefade="yes" //("yes" to enable fade in effect, "no" to disable)var autohidebox=["no", 5] //Automatically hide box after x seconds? [yes/no, if_yes_hide_after_seconds]var showonscroll="yes" //Should box remain visible even when user scrolls page? ("yes"/"no)var IEfadelength=1 //fade in duration for IE, in secondsvar Mozfadedegree=0.05 //fade in degree for NS6+ (number between 0 and 1. Recommended max: 0.2)////////No need to edit beyond here///////////if (parseInt(displaymode)!=NaN)var random_num=Math.floor(Math.random()*displaymode)function displayfadeinbox(){var ie=document.all && !window.operavar dom=document.getElementByIdiebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.bodyobjref=(dom)? document.getElementById("fadeinbox") : document.all.fadeinboxvar scroll_top=(ie)? iebody.scrollTop : window.pageYOffsetvar docwidth=(ie)? iebody.clientWidth : window.innerWidthdocheight=(ie)? iebody.clientHeight: window.innerHeightvar objwidth=objref.offsetWidthobjheight=objref.offsetHeight//objref.style.left=docwidth/2-objwidth/2+"px"objref.style.left=0//objref.style.top=scroll_top+docheight/2-objheight/2+"px"objref.style.top=scroll_top+docheight/8-objheight/2+"px"if (showonscroll=="yes")showonscrollvar=setInterval("staticfadebox()", 50)if (enablefade=="yes" && objref.filters){objref.filters[0].duration=IEfadelengthobjref.filters[0].Apply()objref.filters[0].Play()}objref.style.visibility="visible"if (objref.style.MozOpacity){if (enablefade=="yes")mozfadevar=setInterval("mozfadefx()", 90)else{objref.style.MozOpacity=1controlledhidebox()}}elsecontrolledhidebox()}function mozfadefx(){if (parseFloat(objref.style.MozOpacity)<1)objref.style.MozOpacity=parseFloat(objref.style.MozOpacity)+Mozfadedegreeelse{clearInterval(mozfadevar)controlledhidebox()}}function staticfadebox(){var ie=document.all && !window.operavar scroll_top=(ie)? iebody.scrollTop : window.pageYOffset//objref.style.top=scroll_top+docheight/2-objheight/2+"px"objref.style.top=scroll_top+docheight/8-objheight/2+"px"}function hidefadebox(){objref.style.visibility="hidden"if (typeof showonscrollvar!="undefined")clearInterval(showonscrollvar)}function controlledhidebox(){if (autohidebox[0]=="yes"){var delayvar=(enablefade=="yes" && objref.filters)? (autohidebox[1]+objref.filters[0].duration)*1000 : autohidebox[1]*1000setTimeout("hidefadebox()", delayvar)}}function initfunction(){setTimeout("displayfadeinbox()", 100)}function get_cookie(Name) {var search = Name + "="var returnvalue = ""if (document.cookie.length > 0) {offset = document.cookie.indexOf(search)if (offset != -1) {offset += search.lengthend = document.cookie.indexOf(";", offset)if (end == -1)end = document.cookie.length;returnvalue=unescape(document.cookie.substring(offset, end))}}return returnvalue;}if (displaymode=="oncepersession" && get_cookie("fadedin")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){if (window.addEventListener)window.addEventListener("load", initfunction, false)else if (window.attachEvent)window.attachEvent("onload", initfunction)else if (document.getElementById)window.onload=initfunctiondocument.cookie="fadedin=yes"}</script><style type="text/css">#fadeinbox{position:absolute;width: 150px;left: 4;top: -150px;border: 2px solid black;background-color: lightyellow;padding: 4px;z-index: 100;visibility:hidden;}</style></head><body>  <DIV id="fadeinbox" style="filter:progid:DXImageTransform.Microsoft.RandomDissolve(duration=1) progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135); -moz-opacity:0">  Zeit: <span id="clockanz"></span>  </DIV><br></body></html>

Notice from snlildude87:
ALL 6 SCRIPTS COPIED FROM dynamicdrive!

Edited by snlildude87 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.