THE RIGHT PLACE TO MEET NEW FRIENDS

WELCOME TO FRiENDSTER PEEPS!!!
 
HomePortalCalendarFAQSearchRegisterMemberlistUsergroupsLog in

Share | 
 

 Useful Javascripts!

Go down 
AuthorMessage
FeelingCUTE
Help Moderator
Help Moderator
avatar

Male Number of posts : 246
Age : 26
Location : Nasa Banda pa may taping pa kasi..
Registration date : 2006-12-21

PostSubject: 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 Very Happy
Back to top Go down
View user profile http://www.friendsteroverlay.jconserv.net
Justine
Assistant Administrator
Assistant Administrator
avatar

Male Number of posts : 1494
Location : Cebu
Registration date : 2006-12-08

PostSubject: Re: Useful Javascripts!   Thu Dec 21, 2006 4:23 am

Cool..!! nyc one..are ya good in that just asking..Very Happy

_________________
Back to top Go down
View user profile http://www.friendster.com/myblackheart
danster
Forum Administrator
Forum Administrator
avatar

Male Number of posts : 576
Age : 27
Registration date : 2006-12-08

PostSubject: 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. Smile

_________________
Danster's signatures
http://www.friendster.com/danfourth
http://www.friendster.com/dansixth
Back to top Go down
View user profile http://www.friendster.com/dansixth
CourtCh13F
Site Administrator
Site Administrator
avatar

Male Number of posts : 102
Age : 28
Registration date : 2006-12-08

PostSubject: 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..Very Happy

_________________

Experience is the best teacher..
My website : http://courtchief.co.nr
My friendster profile : http://friendster.com/courtch13f
My multiply page : http://juneil13.multiply.com


Last edited by danster on Fri Dec 22, 2006 7:56 pm; edited 1 time in total
Back to top Go down
View user profile http://courtchief.co.nr
FatalError
Newbie
Newbie


Male Number of posts : 3
Location : Never Never Land
Registration date : 2007-01-02

PostSubject: Re: Useful Javascripts!   Tue Jan 02, 2007 7:51 pm

CourtCh13F wrote:
Quote :
editted by danster
no need of quoting long posts

Ei,better emphasize on what browser that scripts work..Very Happy
Certainly it will work in IE. Most animations will only work in IE. pig lol!
Back to top Go down
View user profile http://mabzicle.hack-inter.net
kylix
Newbie
Newbie


Number of posts : 10
Registration date : 2006-12-25

PostSubject: Re: Useful Javascripts!   Mon Jan 29, 2007 10:09 am

they're not actually html codes.. perhaps.. java scripts? nice find btw..
Back to top Go down
View user profile
submersed
Senior
Senior
avatar

Male Number of posts : 159
Age : 33
Location : zamboanga
Registration date : 2007-02-16

PostSubject: Re: Useful Javascripts!   Sat Mar 03, 2007 8:32 pm

wow thanks for the info.. Wink
Back to top Go down
View user profile http://www.myspace.com/anonymouz
eehjhay
Newbie
Newbie
avatar

Male Number of posts : 16
Location : sydney, australia
Registration date : 2007-02-19

PostSubject: Re: Useful Javascripts!   Fri Mar 09, 2007 3:50 pm

[quote]Right Click = Logout


Code:
Code:
&lt;script&gt;
&lt;var&gt;
&lt;/script&gt;

[quote]
am not sure of this one. is this will work? too short for a scriptight Click = Logout


Code:
Code:
&lt;script&gt;
&lt;var&gt;
&lt;/script&gt;

[quote]
am not sure of this one. is this will work? too short for a script
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Useful Javascripts!   

Back to top Go down
 
Useful Javascripts!
Back to top 
Page 1 of 1
 Similar topics
-
» Strange problem with HTML page...javascripts doesnt seem to load...

Permissions in this forum:You cannot reply to topics in this forum
THE RIGHT PLACE TO MEET NEW FRIENDS :: Friendster Design :: Tutorials-
Jump to: