Google
 

Go Back   NackVision > Website Related > Friendster Overlay

Friendster Overlay Codes and tutorials on overlay

Reply
 
Thread Tools
Old 06-05-2006, 11:56 AM   #1
Melancholic
Member
 
Melancholic's Avatar
 
Join Date: Jun 2006
Location: Manila
Posts: 80
Send a message via Yahoo to Melancholic
FADE-AWAY CURSOR TRAIL SCRIPT

Author: Dave Collins





Description: "This is one of the most spetacular, efficient cursor trail scripts you'll find. I learned the technique and code for creating it from the site SiteExpert, and thought I might share the results with the visitors of Dynamic Drive. The trail you see is constructed using 5 images of descending sizes, each following closely the other. Enjoy!"



Step 1: Save the following 6 images, and upload them into your webpage directory (by right clicking image, and selecting "Save as"). Note that the last one is a transparent gif.

65432 1

Rename it to IMAGE1,2 so on


Step 2: Add the below to the <head> section of your page:

<SCRIPT language="Javascript1.2">
<!--


var isNS = (navigator.appName == "Netscape");
layerRef = (isNS) ? "document" : "document.all";
styleRef = (isNS) ? "" : ".style";

var queue = new Array();
var NUM_OF_TRAIL_PARTS = 5
for (x=1; x < 6; x++) {
eval("trailSpriteFrame" + x + " = new Image(28,36);");
eval("trailSpriteFrame" + x + ".src = 'trailgif" + x + ".gif';");
}


function trailSpriteObj(anID) {
this.trailSpriteID = "trailSprite" + anID;
this.imgRef = "trailSprite" + anID + "img";
this.currentFrame = 1;
this.animateTrailSprite = animateTrailSprite;
}

function animateTrailSprite() {
if (this.currentFrame <6 ) {
if (isNS) {
eval("document." + this.trailSpriteID +".document['"+ this.imgRef + "'].src = trailSpriteFrame" + this.currentFrame + ".src");
} else {
eval("document['" + this.imgRef + "'].src = trailSpriteFrame" + this.currentFrame + ".src");
}
this.currentFrame ++;
} else {
eval(layerRef + '.' + this.trailSpriteID + styleRef + '.visibility = "hidden"');
}
}


function processAnim() {
for(x=0; x < NUM_OF_TRAIL_PARTS; x++)
queue[x].animateTrailSprite();
}

function processMouse(e) {
currentObj = shuffleQueue();
if (isNS) {
eval("document." + currentObj + ".left = e.pageX - 10 ;");
eval("document." + currentObj + ".top = e.pageY + 10;");
} else {
eval("document.all." + currentObj + ".style.pixelLeft = event.clientX + document.body.scrollLeft - 10 ;");
eval("document.all." + currentObj + ".style.pixelTop = event.clientY + document.body.scrollTop + 10;");
}
}

function shuffleQueue() {
lastItemPos = queue.length - 1;
lastItem = queue[lastItemPos];
for (i = lastItemPos; i>0; i--)
queue[i] = queue[i-1];
queue[0] = lastItem;

queue[0].currentFrame = 1;
eval(layerRef + '.' + queue[0].trailSpriteID + styleRef + '.visibility = "visible"');

return queue[0].trailSpriteID;
}

function init() {

for(x=0; x<NUM_OF_TRAIL_PARTS; x++)
queue[x] = new trailSpriteObj(x+1) ;

if (isNS) { document.captureEvents(Event.MOUSEMOVE); }
document.onmousemove = processMouse;

setInterval("processAnim();",25);
}
if (document.all||document.layers)
window.onload = init;

//-->
</SCRIPT>




Step 3: Add the following to the <body> section, immediately following the <body> tag itself:

<DIV id="trailSprite1" style="position: absolute; height:28px; width:36px;z-index: 100">
<img src="blanktrail.gif" height=28 width=36 border=0 name="IMAGE1">
</DIV>
<DIV id="trailSprite2" style="position: absolute; height:28px; width:26px;z-index: 10">
<img src="blanktrail.gif" height=28 width=36 border=0 name="IMAGE2">
</DIV>
<DIV id="trailSprite3" style="position: absolute; height:28px; width:36px;z-index: 10">
<img src="blanktrail.gif" height=28 width=36 border=0 name="IMAGE3">
</DIV>
<DIV id="trailSprite4" style="position: absolute; height:28px; width:36px;z-index: 10">
<img src="blanktrail.gif" height=28 width=36 border=0 name="IMAGE4">
</DIV>
<DIV id="trailSprite5" style="position: absolute; height:28px; width:36px;z-index: 10">
<img src="blanktrail.gif" height=28 width=36 border=0 name="IMGAE5">
</DIV>
<script language="JavaScript1.2">
if (document.all&&window.print)
document.body.style.cssText="overflow-x:hidden;overflow-y:scroll"
</script>






************************************************** ********************

for newbies!~
just in case you want to try


1. go to notepad
2. type :
<html>
<head>
<titile>im cool</title>
</head>

<body>


</body>

</html>


3. then save
4. name it : im_cool.html
5. dont forget the symbol "." in your name file ..this will served as the kind of file.. dunno..


6. open it..!
7. you can edit it by "right click" your file, then "open with" ,then, "notepad". easy huh!?




thank me if i help
__________________
Love all, trust a few, do wrong to none.
*************************
http://www.friendster.com/jeffsensei
~Monstersgame~Click Below!!! Hot!
http://world2.monstersgame.co.uk/?ac=vid&vid=31044305

Last edited by Melancholic; 06-05-2006 at 07:09 PM.
(Offline)
 
Reply With Quote
Old 06-05-2006, 12:21 PM   #2
krizhana
Member
 
krizhana's Avatar
 
Join Date: May 2006
Posts: 45
wat'z its all bout??
(Offline)
 
Reply With Quote
Old 06-05-2006, 12:53 PM   #3
Melancholic
Member
 
Melancholic's Avatar
 
Join Date: Jun 2006
Location: Manila
Posts: 80
Send a message via Yahoo to Melancholic
just read the instruction and the discription po..if still not work for you.. sorry :)
__________________
Love all, trust a few, do wrong to none.
*************************
http://www.friendster.com/jeffsensei
~Monstersgame~Click Below!!! Hot!
http://world2.monstersgame.co.uk/?ac=vid&vid=31044305
(Offline)
 
Reply With Quote
Old 06-05-2006, 02:54 PM   #4
bRownSugaH
Junior Member
 
bRownSugaH's Avatar
 
Join Date: Dec 2005
Location: Toronto
Posts: 8
hi guys just want to ask a question about the no right click java script code on friendster i have one but i dont know where i am going to paste my code ? can anybody help me pls thanks

this is my No right click javascript code ...

<script language="JavaScript">
// distributed by http://hypergurl.com <!-- var popup="Sorry, right-click
is disabled.\n\nThis Site Copyright ©2000"; function noway(go) { if
(document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers)
{ if (go.which == 3) { alert(popup); return false; } } } if (document.layers)
{ document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // -->
</script>
__________________
(¯`·.¸» Unique Simple & Scorpio BaBy «¸.·´¯)
(Offline)
 
Reply With Quote
Old 06-05-2006, 04:59 PM   #5
dashling
Senior Member
 
dashling's Avatar
 
Join Date: May 2006
Location: secrEt
Posts: 488
hulaan ........ ko lng ..... sa dynamic drive yan noh.........
__________________
[ Bleach ] [ I dont Love You ]
(Offline)
 
Reply With Quote
Old 06-05-2006, 06:47 PM   #6
Melancholic
Member
 
Melancholic's Avatar
 
Join Date: Jun 2006
Location: Manila
Posts: 80
Send a message via Yahoo to Melancholic
yea..para di na nagpupunta dun..hehehe
__________________
Love all, trust a few, do wrong to none.
*************************
http://www.friendster.com/jeffsensei
~Monstersgame~Click Below!!! Hot!
http://world2.monstersgame.co.uk/?ac=vid&vid=31044305
(Offline)
 
Reply With Quote
Old 06-05-2006, 06:51 PM   #7
Melancholic
Member
 
Melancholic's Avatar
 
Join Date: Jun 2006
Location: Manila
Posts: 80
Send a message via Yahoo to Melancholic
@at brownsugah...you can paste the no right click script anywhere in the <body> section of your page...


example..
<html>

<head>
<titile>im sweet brownsugah..</title>
</head>
<body>


<script language="JavaScript">
// distributed by http://hypergurl.com <!-- var popup="Sorry, right-click
is disabled.\n\nThis Site Copyright ©2000"; function noway(go) { if
(document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers)
{ if (go.which == 3) { alert(popup); return false; } } } if (document.layers)
{ document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // -->
</script>




<!----------this is body of your page----------->



</body>
</html>





__________________
Love all, trust a few, do wrong to none.
*************************
http://www.friendster.com/jeffsensei
~Monstersgame~Click Below!!! Hot!
http://world2.monstersgame.co.uk/?ac=vid&vid=31044305

Last edited by Melancholic; 06-05-2006 at 06:55 PM.
(Offline)
 
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 02:59 AM.