[b](UPDATED : NULL PROBLEM, FIXED)[/b]
This is another code that i got from [url=http://www.dynamicdrive.com]DYNAMIC DRIVE[/url]
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 .[b]HTM [/b]FORMAT
eg : welcomepage.htm
[spoiler]<html>
<head>
<title>[b]THE TITLE OF THE PAGE[/b]</title>
<style type="text/css">
body { background-color:[b]#HEX VALUE[/b]; color:black; overflow:hidden }
#skipDiv {position:absolute; visibility:hidden; width:80px; }
#skipDiv a:link, #skipDiv a:visited {
font-family: 'century gothic';
font-size:[b]10[/b]pt; color:[b]#HEX VALUE[/b]; }
#wipeDiv1 { position:absolute; visibility:hidden; left:0px; top:0px;
width:1px; height:1px; z-index:1; }
.wipe { color:[b]#HEX VALUE[/b];
font-family: 'century gothic'; }
.wipe1 { font-size:[b]36[/b]pt; }
.wipe2 { font-size:[b]22[/b]pt; }
.wipe3 { font-size:[b]10[/b]pt; }
</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(
'[b]URL OF IMAGE[/b]'
);
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">[b]<img src="IMAGE URL"/>[/b]</span>',1000,
'<span class="wipe3">[b]TEXT[/b]</span>',2500,
'<span class="wipe2">[b]TEXT[/b]</span>',2500,
'<span class="wipe3">[b]TEXT[/b]</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=[b]YOUR USER ID[/b]";
}
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>[/spoiler]
edit the [b]bold[/b] part
2. UPLOAD IT IN THE WEB HOSTING
3. PUT THIS CODE IN UR EXTERNAL JS CODE ([color=red][b]above your OnLoadHandler[/b][/color])
[spoiler]
place=document.location.href
if(place=="http://profiles.friendster.com/user.php?uid="+pageOwnerID){
}
else{
top.location.href="[b]THE URL OF UR WELCOMEPAGE.HTM[/b]"
}
[/spoiler]
4. DONE !
PREVIEW :[url=http://profiles.friendster.com/61181648]PREVIEW PAGE[/url]
credit to
dynamic drive
[b]bang kanal[/b], for fixing the null problem
[quote][color=red][b]U R NOT ALLOWED TO USE SINGLE QUOTE IN THE TEXT FIELD[/b][/color][/quote]
Last edited by andHa (2008-05-19 17:26:24)