Simple alerts In js
Page 1 of 1
Simple alerts In js
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:
- alert("Blah blah"+pageViewerFName+"!" + '\n' + "Blah blahBlah blahBlah blah" + '\n' + "Blah blahBlah blahBlah blahBlah blah"); alert("Blah blahBlah blahBlah blahBlah blahBlah blahBlah blah" + '\n' + "Blah blahBlah blahBlah blahBlah blahBlah blah" + '\n' + "Blah blahBlah blahBlah blahBlah blah!!");
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- Moderator
-
Number of posts : 62
Age : 31
Registration date : 2008-10-10
Similar topics
» Simple things that must be followed in this forum..Must read..XD
» Follow this simple format in posting You're picture..please read this.
» Follow this simple format in posting You're picture..please read this.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum