JhaykE member
Number of posts : 55 Age : 39 Location : SwitzErLanD Registration date : 2007-11-18
| Subject: Welcome Page Trick Tue Jan 29, 2008 2:02 pm | |
| This is another code that i got from DYNAMIC DRIVEjust 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 - Quote :
- <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">TEXT OR IMAGE</span>',1000, '<span class="wipe3">TEXT OR IMAGE</span>',2500, '<span class="wipe2">TEXT OR IMAGE</span>',2500, '<span class="wipe3">TEXT OR IMAGE</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'); http://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 2. UPLOAD IT IN THE WEB HOSTING 3. PUT THIS CODE IN UR EXTERNAL JS CODE - Quote :
- 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"; } 4. DONE ! PREVIEW : JhaykE Profile!credit to dynamic drive all ft members who are involved in the redirect code | |
|
_XiRuKi_ NEWBIE
Number of posts : 4 Age : 32 Registration date : 2008-04-12
| Subject: Re: Welcome Page Trick Sat Apr 12, 2008 4:32 am | |
| common but its, helpful
thanks for sharing | |
|