FeelingCUTE Help Moderator
Number of posts : 246 Age : 32 Location : Nasa Banda pa may taping pa kasi.. Registration date : 2006-12-21
| Subject: Useful Javascripts! Thu Dec 21, 2006 1:54 am | |
| Blinking Scroll Bar Insert this in <body> tag - Code:
-
<script> var mode=0 function blinkscroll(){ if (mode==0) document.body.style.scrollbarFaceColor="blue" else document.body.style.scrollbarFaceColor="black" mode=(mode==0)? 1 : 0 } setInterval("blinkscroll()",1000) </script>
Right Click = Logout - Code:
-
<script> <var> </script>
Merlin Code - Code:
-
<script> DOC=document;var data, p; var agt=navigator.userAgent.toLowerCase(); p='http'; if((location.href.substr(0,6)=='https:')||(location.href.substr(0,6)=='HTTPS:')) {p='https';} data = '&r=' + escape(DOC.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent) if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)}; </script><br><br><Object></Object> <script> </edit> </script> Status Bar Message - Code:
-
<script>
// set speed of banner (pause in milliseconds between addition of new character) var speed = 10
// decrease value to increase speed (must be positive) // set pause between completion of message and beginning of following message var pause = 1500
// increase value to increase pause // set initial values var timerID = null var bannerRunning = false
// create array var ar = new Array()
// assign the strings to the array's elements ar[0] = "Welcome To My Profile" ar[1] = "Enjoy Surfing Here, And Put A Message In my Cbox" ar[2] = "Bago Umalis Testi Muna Ha!!Luv You^________^" ar[3] = "Geh Kaw Na Bahala Sa Profyl Ko Yngat!!=)"
// assign index of current message var message = 0
// empty string initialization var state = ""
// no value is currently being displayed clearState()
// stop the banner if it is currently running function stopBanner() { // if banner is currently running if (bannerRunning) // stop the banner clearTimeout(timerID) // timer is now stopped timerRunning = false }
// start the banner function startBanner() { // make sure the banner is stopped stopBanner() // start the banner from the current position showBanner() }
// assign state a string of "0" characters of the length of the current message function clearState() { // initialize to empty string state = "" // create string of same length containing 0 digits for (var i = 0; i < ar[message].length; ++i) { state += "0" } }
// display the current message function showBanner() { // if the current message is done if (getString()) { // increment message message++ // if new message is out of range wrap around to first message if (ar.length <= message) message = 0 // new message is first displayed as empty string clearState() // display next character after pause milliseconds timerID = setTimeout("showBanner()", pause) } else { // initialize to empty string var str = "" // built string to be displayed (only character selected thus far are displayed) for (var j = 0; j < state.length; ++j) { str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " " } // partial string is placed in status bar window.status = str // add another character after speed milliseconds timerID = setTimeout("showBanner()", speed) } }
function getString() { // set variable to true (it will stay true unless proven otherwise) var full = true // set variable to false if a free space is found in string (a not-displayed char) for (var j = 0; j <state></script>
I hope This one Helps | |
|
Justine Assistant Administrator
Number of posts : 1494 Location : Cebu Registration date : 2006-12-08
| Subject: Re: Useful Javascripts! Thu Dec 21, 2006 4:23 am | |
| Cool..!! nyc one..are ya good in that just asking.. | |
|
danster Forum Administrator
Number of posts : 576 Age : 32 Registration date : 2006-12-08
| Subject: Re: Useful Javascripts! Thu Dec 21, 2006 9:41 am | |
| He happens to be addicted with HTML.. according to him. Stay active. hehe. Nice one. | |
|
CourtCh13F Site Administrator
Number of posts : 102 Age : 33 Registration date : 2006-12-08
| Subject: Re: Useful Javascripts! Thu Dec 21, 2006 5:33 pm | |
| - Quote :
- editted by danster
no need of quoting long posts Ei,better emphasize on what browser that scripts work..
Last edited by danster on Fri Dec 22, 2006 7:56 pm; edited 1 time in total | |
|
FatalError Newbie
Number of posts : 3 Location : Never Never Land Registration date : 2007-01-02
| Subject: Re: Useful Javascripts! Tue Jan 02, 2007 7:51 pm | |
| | |
|
kylix Newbie
Number of posts : 10 Registration date : 2006-12-25
| Subject: Re: Useful Javascripts! Mon Jan 29, 2007 10:09 am | |
| they're not actually html codes.. perhaps.. java scripts? nice find btw.. | |
|
submersed Senior
Number of posts : 159 Age : 39 Location : zamboanga Registration date : 2007-02-16
| Subject: Re: Useful Javascripts! Sat Mar 03, 2007 8:32 pm | |
| wow thanks for the info.. | |
|
eehjhay Newbie
Number of posts : 16 Location : sydney, australia Registration date : 2007-02-19
| Subject: Re: Useful Javascripts! Fri Mar 09, 2007 3:50 pm | |
| [quote]Right Click = Logout - Code:
-
Code: <script> <var> </script>
[quote] am not sure of this one. is this will work? too short for a scriptight Click = Logout - Code:
-
Code: <script> <var> </script>
[quote] am not sure of this one. is this will work? too short for a script | |
|
Sponsored content
| Subject: Re: Useful Javascripts! | |
| |
|