friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

  • JavaScript
  •  » Welcome Page Trick (UPDATED : May, 5th)

#1  2008-01-20 07:45:37

andHa
» Moderator
andHa's display avatar
ﺃ ﻧﺪ
Class-S
Location: unable to locate
Registered: 2007-05-23
Posts: 4055
Reputation: 157

Welcome Page Trick (UPDATED : May, 5th)

(UPDATED : NULL PROBLEM, FIXED)

This is another code that i got from DYNAMIC DRIVE
just want to share it with u guys.


here is the tutorial to apply the welcome page in your css profile.

1. SAVE THE CODE BELOW IN NOTEPAD WITH .HTM FORMAT
eg : welcomepage.htm

<html>
<head>
<title>THE TITLE OF THE PAGE</title>
<style type="text/css">

body    { background-color:#HEX VALUE; color:black; overflow:hidden }
#skipDiv    {position:absolute; visibility:hidden; width:80px; }
#skipDiv a:link, #skipDiv a:visited    {
    font-family: 'century gothic';
  font-size:10pt; color:#HEX VALUE; }

#wipeDiv1    { position:absolute; visibility:hidden; left:0px; top:0px;
    width:1px; height:1px; z-index:1; }
   

.wipe { color:#HEX VALUE;
    font-family: 'century gothic'; }   
   
.wipe1    { font-size:36pt; }   
.wipe2    { font-size:22pt; }
.wipe3    { font-size:10pt; }
   
   

</style>
<script src="http://www.freewebs.com/andh4/wipes.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!--



dom = (document.getElementById) ? true : false;
ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
ns4 = (document.layers && !dom) ? true : false;
ie4 = (document.all && !dom) ? true : false;
opr=  navigator.userAgent.indexOf("Opera")!=-1
nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;


// PUT THE URL OF IMAGES IN THE BOLD PART BELOW, SEPERATED BY COMMAS

var wipe_imgs=new Array(
    'URL OF IMAGE'
);
if (document.images) {
    var theImgs=new Array();
    for (var i=0;i<wipe_imgs.length;i++) {
        theImgs[i]=new Image();
        theImgs[i].src=wipe_imgs[i];
    }
}

// THE WIPE WELCOME PAGE CONTENT
// U CAN PUT TEXT AT THE BOLD PART
// U ALSO CAN PUT IMAGE, MAKE SURE THE URL OF IMAGE SAME WITH THE URL OF IMAGE AT THE BOLD PART ABOVE

var wipe_array=new Array(
    '<span class="wipe1"><img src="IMAGE URL"/></span>',1000,
    '<span class="wipe3">TEXT</span>',2500,
    '<span class="wipe2">TEXT</span>',2500,
    '<span class="wipe3">TEXT</span>',2500
);

var wipe_final=new Array('Click here',2500);


var wipe_in_delay=1000;           
var wipe_out_delay=1200;       

var wipe_out_dv=2.5;   
var dest_delay=0;           

// PUT YOUR FRIENDSTER USER ID IN THE BOLD PART BELOW

function setDest() {
    window.location = "http://profiles.friendster.com/user.php?uid=YOUR USER ID";
}


if (opr||nodyn)
setDest()

function initDynLyrs() {

    if (nodyn) setDest();
    positionBotmRt('skipDiv');
    wipeLyr1 = new dynObj('wipeDiv1');
    wipeLyr1.centerIn(window);
    wipeLyr1.show();
    //wipeLyr2 = new dynObj('wipeDiv2');
    //wipeLyr2.centerIn(window);
    doWipes();
}

window.onload=initDynLyrs;

</script>
</head>
<body>

   
<div id="wipeDiv1"></div>


<div id="skipDiv">
    <a id="skipLnk" href="javascript:setDest()">skip intro</a>
</div>
</body>
</html>

edit the bold part  :thumbsup:

2. UPLOAD IT IN THE WEB HOSTING

3. PUT THIS CODE IN UR EXTERNAL JS CODE (above your OnLoadHandler)




place=document.location.href
if(place=="http://profiles.friendster.com/user.php?uid="+pageOwnerID){
}
else{
top.location.href="THE URL OF UR WELCOMEPAGE.HTM"
}

4. DONE !

PREVIEW :PREVIEW PAGE


credit to
:arrow:  dynamic drive
:arrow:  bang kanal, for fixing the null problem



U R NOT ALLOWED TO USE SINGLE QUOTE IN THE TEXT FIELD

Last edited by andHa (2008-05-19 21:26:24)



mine is none of your business !

#2  2008-01-20 07:55:08

NOSIOJ
» Promoter
NOSIOJ's display avatar
X:
Laymakers Society
Location: Nowhere
Registered: 2007-03-31
Posts: 2745
Reputation: 160
???

Re: Welcome Page Trick (UPDATED : May, 5th)

Wow~
Thanks for sharing!

#3  2008-01-20 08:29:34

bles_212000
» FriendsterWhiz
bles_212000's display avatar
gray mushroom
.White Protector.
Location: LOST
Registered: 2007-09-25
Posts: 3368
Reputation: 139

Re: Welcome Page Trick (UPDATED : May, 5th)

this is cool! thanks for sharing! :lol:


#4  2008-01-20 08:50:17

regiehiozn
» FriendsterWhiz
regiehiozn's display avatar
friendship :]
Location: your place
Registered: 2007-08-27
Posts: 3054
Reputation: 79
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

wow thanks for the share!!!

#5  2008-01-20 09:10:24

kreela1522
» FriendsterNewbie
kreela1522's display avatar
still me..
Alchemy Explicit AE
Location: cavite
Registered: 2007-11-29
Posts: 44
Last visit: 2008-11-29
Reputation: ~
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

thanks for sharing...

#6  2008-01-20 09:51:59

kyuubi_naruto91
» FriendsterAddict
kyuubi_naruto91's display avatar
Am I Cute?
Naruto Fanz-ShinobiElite
Location: Hidden In d Leaves
Registered: 2007-11-14
Posts: 445
Last visit: 2008-11-22
Reputation: 7
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

nice..

but tnx for sharing this =)

....



                              My Compiled Layouts

#7  2008-01-20 09:53:20

IvErOoh
» FriendsterTalker
IvErOoh's display avatar
Try TO kiLL me..
Location: CitY of Death--
Registered: 2007-11-13
Posts: 174
Last visit: 2008-11-04
Reputation: ~
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

nice!  :thumbsup:

Last edited by IvErOoh (2008-01-27 09:22:39)




^~^dark_oxygen1991@yahoo.com^~^

HeLp!

#8  2008-01-20 09:53:33

chiepenk
» FriendsterNewbie
Registered: 2007-11-03
Posts: 9
Last visit: 2008-11-13
Reputation: -1

Re: Welcome Page Trick (UPDATED : May, 5th)

Wuuw.... Nice.. i will try it.. your code,.,  where i can found to image?

#9  2008-01-20 09:55:53

j0hnc3na
» FriendsterAddict
j0hnc3na's display avatar
U Cant See Me!!!
Location: The Squared Circle
Registered: 2007-09-29
Posts: 377
Last visit: Yesterday
Reputation: 3
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

nc code!!  :thumbsup:




Read the rules or be WARNED...
much worst , be
BANNED...

#10  2008-01-20 10:04:33

khey88
» FriendsterNewbie
khey88's display avatar
a simple me
Registered: 2007-10-16
Posts: 12
Last visit: 2008-11-11
Reputation: ~

Re: Welcome Page Trick (UPDATED : May, 5th)

nice! tnx foe sharing  :thumbsup:


#11  2008-01-20 10:44:52

Shirow Masamune
» Moderator
Shirow Masamune's display avatar
Loop
Class-S
Location: Castle Belphegor
Registered: 2007-07-26
Posts: 4416
Reputation: 204
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

^ kindly avoid Double Posting!!! next time...  :|




With your wings... We will fly together...

#12  2008-01-20 12:32:21

marose21
» FriendsterNewbie
marose21's display avatar
Registered: 2008-01-05
Posts: 67
Last visit: 2008-10-14
Reputation: ~

Re: Welcome Page Trick (UPDATED : May, 5th)

thnx for sharing...


#13  2008-01-20 12:48:42

roysmith
» FriendsterAddict
roysmith's display avatar
Location: Malaysia
Registered: 2007-10-03
Posts: 489
Last visit: Today
Reputation: 2
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

Cool dude...


The Greatest Man Is Even Greater....

#14  2008-01-20 15:07:56

ducheszv
» Moderator
ducheszv's display avatar
[ E:// i love you ]
Class-S
Location: up there, down ere
Registered: 2007-06-01
Posts: 7565
Reputation: 296

Re: Welcome Page Trick (UPDATED : May, 5th)

:eh: :thumbsup: nice one andha!  is this compatible in all browsers?




I love you. More than I show you. More than you know. I love you so much :kiss:

#15  2008-01-20 15:12:39

andHa
» Moderator
andHa's display avatar
ﺃ ﻧﺪ
Class-S
Location: unable to locate
Registered: 2007-05-23
Posts: 4055
Reputation: 157

Re: Welcome Page Trick (UPDATED : May, 5th)

^

i have tried to see it with IE and FF.

and the code's working in both browser.

i haven't tried to see it with opera or the other browser.  :rolleyes:



mine is none of your business !

#16  2008-01-20 17:56:54

bloodythoughts
» FriendsterTalker
bloodythoughts's display avatar
_I_am_Lost
Location: Philippines
Registered: 2007-11-13
Posts: 272
Last visit: 2008-11-23
Reputation: 10
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

pls help with mine.

ive tried using it but what only shows is black and doesnt redirect me to my prof.

pls help.

pls.

here is my prof's email

sabaynemo_group@yahoo.com

cant give u my link because it is overlapped by the htm's url.
cant memorize it.

sori.

but pls do help me.



                      IM TRYING TO BE MYSELF AGAIN.

#17  2008-01-20 18:11:34

bloodythoughts
» FriendsterTalker
bloodythoughts's display avatar
_I_am_Lost
Location: Philippines
Registered: 2007-11-13
Posts: 272
Last visit: 2008-11-23
Reputation: 10
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

i fixed it! but found another problem..

my IE always closes after the welcome page.

explorer always encounters error.

what should be done?



                      IM TRYING TO BE MYSELF AGAIN.

#18  2008-01-20 19:22:05

BwizetT
» FriendsterGeek
BwizetT's display avatar
**We*Are*SoliD**
Rockstars
Location: Basta my Allergy
Registered: 2007-09-19
Posts: 1090
Reputation: 49

Re: Welcome Page Trick (UPDATED : May, 5th)

agaian andha this is great tnx men u'r the best  :eh:  :D

#19  2008-01-20 23:12:18

Refresh/Reload
» FriendsterManiac
Refresh/Reload's display avatar
choose now!!
Location: Philippines
Registered: 2007-03-22
Posts: 716
Last visit: 2008-10-29
Reputation: 15
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

errr.. bro... have you tried this on your main page...?
i mean... where lots of your js are compiled....

coz i tried this on my test page with minimal js and it works
but when i tried it on my main profile... where lots of scripts
compiled in there... it gives me an error that prompt me to
close my browser... both in IE and FF... is there any possible
codes that conflicts with this redirection script...

var myplace = document.location.href;
if (myplace == "http://profiles.friendster.com/user.php?uid=YOUR USER ID"){
}


else if (myplace == "http://profiles.friendster.com/user.php?uid=YOUR USER ID"){
}

else {
    location.href = "THE URL OF UR WELCOMEPAGE.HTM";
}

I tried trial and error to find the conflicts but i can't find it...
hope u know the conflicting codes if there is one...  =(


#20  2008-01-20 23:32:55

Chezter18
» Cursed Member
Chezter18's display avatar
Registered: 2007-09-19
Posts: 756
Reputation: 5
Friendster

Re: Welcome Page Trick (UPDATED : May, 5th)

nice codeill try diz later!!

  • JavaScript
  •  » Welcome Page Trick (UPDATED : May, 5th)

Search Friendstertalk

Board footer

FriendsterTalk is not affiliated with Friendster.com
Copyright © 2002–2008 PunBB

[ 28 queries - 1.090 second ]

Pay Per Click Ads by pay per click advertising by Kontera

FriendsterTalk.com x

Welcome to FriendsterTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)