Fiat Lux academe
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Gallery


Simple alerts In js Empty

Simple alerts In js

Go down

Simple alerts In js Empty Simple alerts In js

Post by ayeh-empty Mon Oct 27, 2008 6:29 am

ALERTS JS CODE


CREDITS:Ephemeral & Hartzell

some live preview: http://profiles.friendster.com/77603685

Just Change the message w/o removing d "
Apply this code in your External JS File



WELCOME ALERT


jst edit the "blah blah" ayt!!

Spoiler:

Simple wecome Alert


alert("Welcome to my profile"+pageViewerFName+"!");


Special Alert Box ...Pop-ups Only to Specific Users.jst add the user id of ur special someone LOL



if(pageViewerID=="USER ID"){
alert("??");
}


Double Welcome Alert


alert("Welcome to my profile "+pageViewerFName+"!"); alert("BLAH blah?");


GOODBYE ALERT



window.onbeforeunload = function (evt) {
var message = 'bye bye, tnx for dropping by to my page '+pageViewerFName+'';
if (typeof evt == 'undefined') {
evt = window.event;
}
if (evt) {
evt.returnValue = message;
}
return message;
}

good morning / good afternoon / good evning ALERT


<!-- Begin
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour > 18) display = "Good Evening";
else if (thehour >12) display = "Good Afternoon";
else display = "Good Morning!";
alert(display);
// End -->
ayeh-empty
ayeh-empty
Moderator
Moderator

Male
Number of posts : 62
Age : 31
Registration date : 2008-10-10

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum