UNLEASHED YOUR CREATIVITY!
You'll need to login or register in order to fully use all the features and view all the sections of this site.
Thank you.
Regards: FSMANIA Team

UNLEASHED YOUR CREATIVITY!


 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in

 

[Advance many Alert scripts](js)

View previous topic View next topic Go down 
Author Message
ayeh
Global Moderator

avatar

Male
Age : 25 Registration date : 2009-03-03 Number of posts : 11 Location : cavite Job/hobbies : student lang. Humor : Know me :]

PostSubject: [Advance many Alert scripts](js)   Fri Mar 06, 2009 12:23 am

Credit's all to ---xXirukiTepe--- and for here trick's preview..

First thingy: Ignore this if it's already yet posted or kindly close it and trashed..

Requirement's:

*Common sense

*Follow the Note below

*patient

*Must have knowledge in compiling and editing Some of code's

Note: this thingy is JS code,so compile it in yer js file's..and also edit the part's of the code in which u should edit it..LOLXD

Quote :
Note from miss ---xXirukiTepe---: Some of the codes are gained through zip files. Do not remove any stated credits inside the scripts...
If you do so, A punishment can/could be marked to your reputation as a person.
And, do not expect that all of the scripts are compatible with your default browser.



==> Alert scripts

* Fake virus alert:preview here


Code:

alert ("Error: 107x has occurred.  A virus has begun to infect your hard drive.  Please erase all infected files");
var answer = confirm ("Please inform the the hardware vendor of this error.")
if (answer)
alert ("The virus has been contained but the browser will shutdown to check for and prevent further internal damages.")
else
alert ("The problem has not been fixed, the browser must be shut downtown to prevent further contamination.");


* Ur choice script (redirection version):preview here

Code:
/*This script by: Tony Rengel and Danny Duran  Email us at: customjava@hotmail.com 
We will make CUSTOM java scripts for your website!!
just keep this header up here! up here!
Thanks.  Have a GREAT day!
To edit its pretty simple, just see where the text or URL is
any questions, e-mail customjava@hotmail.com */
function ask()
{
      var enter=prompt("You have 3 options:  Type 1 for more info. Type 2 to continue. Type 3 to drop some comments."," ");
        var yes = 1
            if (enter == 1)
            {
              alert('This page: is best viewed in FF. Have fun and enjoy!Tc=)  :-)');
            }
            else if (enter == 2)
            {
              parent.location.href = "http://profiles.friendster.com/user id here"
            }
            else if (enter == 3)
            {
              parent.location.href = "http://www.friendster.com/comments.php?uid=user id here"
            }
      else
            {
              alert('invalid number, try again');
              ask()
            }
         
   
}
ask()

* Ur history (came from alert):preview here


Code:
var name = prompt("What is your name, friendster user?")
alert("Hello "+name+" and welcome to my page. You have a "+navigator.appName+" version: "+navigator.appVersion+" and you came from "+document.referrer+". Have fun!")

* Fooling Someone Alert (multiple version):Preview here

Code:

var name=prompt ('Enter your nickname..');alert('Welcome,'+name+'!');var email=prompt ('What Is Your E-Mail Address?');alert(' '+email+' ,Is A Cool E-Mail Address,'+name+'!?');alert('Wakokoko '+name+'!');alert('Gettin mad?'+name+'!');alert('Tired!!huh?');alert(''+name+'..is a loser');alert('Huhuhu!');alert('Okay ill let you go');var enter=prompt ('But first tell me that u love me!');alert('Haha...What a fool!');

* Whats the password alert!:Preview here

Code:
var password;
var pass1="daniel";
password=prompt('Oops. Password is required! Hint: the 1st name of Harry Potter in real lyf =)');
if (password==pass1)
alert('YAY you got it right! Click OK to enter!');
else
{
alert('Oops!wrong!!!prrrrttt...');
}


* No active X event alert:Preview here

Code:
function doSomething()
{
    foobar.Version();
}

function MyEventHandler(stuff)
{
  alert("Event");
}

try
{
  x = new ActiveXObject("Microsoft.XMLHTTP");
  x.onreadystatechange = MyEventHandler;
  alert('Works fine for XMLHTTP');
 
  o = new ActiveXObject("CrossAx.TestCtrl");
  o.MyEvent = MyEventHandler;
  alert('This never works');
 
}
catch (e)
{
  alert(e);
}

* Overloaded alert (almost everything is here):Preview here

Code:
var newline = "\n\n";
var now = new Date();
var millinow=now.getTime()/1000;
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
now.setHours(now.getHours()+1);
var min=60*now.getUTCHours()+now.getUTCMinutes() + now.getUTCSeconds()/60;
var internetTime=(min/1.44);
internetTime="Internet Time: @"+Math.floor(internetTime);
var clock = "It's exactly "+hours+":"+minutes+":"+seconds+" hours";
var browser = "You are using " + navigator.appName +" "+navigator.appVersion;
var winwidth= window.screen.width;
var winheight= window.screen.height;
var screenresolution= "Screen resolution: "+window.screen.width+" x "+window.screen.height;
var lastdoc = "You came from: "+document.referrer;
var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function Who(info){
var VisitorName = GetCookie('VisitorName')
if (VisitorName == null) {
VisitorName = "stranger";
SetCookie ('VisitorName', VisitorName, exp);
}
return VisitorName;
}

function When(info){
var rightNow = new Date()
var WWHTime = 0;
WWHTime = GetCookie('WWhenH')
var lastHereFormatting = new Date(WWHTime); // Date-i-fy that number
//alert(WWHTime);
var intLastVisit = (lastHereFormatting.getYear() * 10000)+(lastHereFormatting.getMonth() * 100) + lastHereFormatting.getDate()
var lastHereInDateFormat = "" + lastHereFormatting; // Gotta use substring functions
var dayOfWeek = lastHereInDateFormat.substring(0,3)
var dateMonth = lastHereInDateFormat.substring(4,11)
var timeOfDay = lastHereInDateFormat.substring(11,16)
var year = lastHereInDateFormat.substring(23,25)
var WWHText = dayOfWeek + ", " + dateMonth + " at " + timeOfDay // display
SetCookie ("WWhenH", rightNow.getTime(), exp)
//alert(WWHText);
return WWHText;

}
function Count(info){
var psj=0;
// How many times
var WWHCount = GetCookie('WWHCount')
if (WWHCount == null) {
WWHCount = 0;
}
else{
WWHCount++;
}
SetCookie ('WWHCount', WWHCount, exp);
return WWHCount;
}
function set(){
VisitorName = prompt("Who are you?",'');
SetCookie ('VisitorName', VisitorName, exp);
SetCookie ('WWHCount', 0, exp);
SetCookie ('WWhenH', 0, exp);
return VisitorName;

}

function getCookieVal (offset) {
var endstr = document·cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document·cookie.length;
return unescape(document·cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document·cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document·cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document·cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document·cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
// This cookie is history
var cval = GetCookie (name);
document·cookie = name + "=" + cval + "; expires=" + exp.toGMTString();

}
var countvisits="You've been here " + Count() + " time(s). Last time was " + When() +"."
if (navigator.javaEnabled()) {
var javaenabled="Your browser is able to run java-applets";
}
else {
var javaenabled="Your browser is not able to run java-applets";
}
function showAlert() {
var later = new Date()
var millilater=later.getTime()/1000
var loadTime=(Math.floor((millilater-millinow)*100))/100
var loadTimeResult= "It took you "+loadTime+" seconds to load this page"
var babiesborn=Math.ceil(loadTime*4.18)



var babiesbornresult="While this page was loading "+babiesborn+" babies have been born"
if (babiesborn==1){babiesbornresult="While this page was loading "+babiesborn+" baby has been born"}
alert(newline+newline+"Welcome "+VisitorName+"!"+newline+newline+browser+newline+clock+newline+loadTimeResult+newline+internetTime+
newline+screenresolution+newline+lastdoc+newline+countvisits+newline+javaenabled+newline+
babiesbornresult+newline+newline)
}
document.write('') ;

*good bye alert (timer alert):Preview here

Code:
 var onHours = " ";

 var onMinutes = " ";

 var onSeconds = " ";

 var offHours = 0;

 var offMinutes = 0;

 var offSeconds = 0;

 var logSeconds = 0;

 var logMinutes = 0;

 var logHours = 0;

 var OnTimeValue = " ";

 var OffTimeValue = " ";

 var PageTimeValue = " ";

 // Back to previous page.

 function WinOpen()

    {

    getLogoffTime();

    }

 // Loads HTML page to full window for View Source.

 function WinOpen1()

    {

    alert('\nPage will load to full screen.\n\nUse View/Document Source from menu bar to view source.\n\nClose new window to return to this page. ');

    window.open("js-timer.htm","DisplayWindow","menubar=yes,scrollbars=yes");

    window.open("js-timer.htm","DisplayWindow","menubar=yes,scrollbars=yes"); 

    }


 // Captures logon time.

 function getLogonTime()

    {

    var now = new Date();

    // Used to display logon time.

    var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."

    var Hours = now.getHours();

          Hours = ((Hours > 12) ? Hours - 12 : Hours);

    var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();

    var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

    // String to display log-on time.

    OnTimeValue =(" "

        + Hours

        + Minutes

        + Seconds

        + " "

        + ampm);

    // Capture logon time for use in timer().

    onHours = now.getHours();

    onMinutes = now.getMinutes();

    onSeconds = now.getSeconds(); 

    }

 function getLogoffTime()

    {

    var now = new Date();

    // Used to display logoff time.

    var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."

    var Hours = now.getHours();

          Hours = ((Hours > 12) ? Hours - 12 : Hours);

    var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();

    var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

    // String to display log-off time.

    OffTimeValue =(" "

        + Hours

        + Minutes

        + Seconds

        + " "

        + ampm);

    // Capture logoff time for use in timer().

    offHours = now.getHours();

    offMinutes = now.getMinutes();

    offSeconds = now.getSeconds();

    timer();

    }

 // Compute difference between logoff time and logon time.

 function timer()

    {

    if (offSeconds >= onSeconds)

      { logSeconds = offSeconds - onSeconds; }

    else

      {

      offMinutes -= 1;

      logSeconds = (offSeconds + 60) - onSeconds;     

      }

    if (offMinutes >= onMinutes)

      { logMinutes = offMinutes - onMinutes; }

    else

      {

      offHours -= 1;

      logMinutes = (offMinutes + 60) - onMinutes;

      }

    logHours = offHours - onHours;

    // Used to display time on page.

    logHours =  ((logHours < 10) ? "0" : ":") + logHours;

    logMinutes = ((logMinutes < 10) ? ":0" : ":") + logMinutes;

    logSeconds = ((logSeconds < 10) ? ":0" : ":") +logSeconds;

    // String to display time on page.

    PageTimeValue =(" "

        + logHours

        + logMinutes

        + logSeconds);

    displayTimes();

    }

 function displayTimes()

    {

    alert("Thank you for visiting my Site\  \nLOG ON TIME    : " +OnTimeValue+"\n\nLOG OFF TIME  : "+OffTimeValue+"\n\nTIME ON PAGE : " + PageTimeValue);

    }
document.write('') ;


* Time Lived alert:Preview here

Code:

var nam=''
var ask=''
var sure=''
function calculate(){
var sec=ask*365*24*60*60;
var min=ask*365*24*60;
var hr=ask*365*24;
var day=ask*365;
alert(nam+', you have lived '+day+' days, '+hr+' hours, '+min+' minutes and '+sec+' seconds.');
}
function tellResult(){
nam=prompt("PLEASE ENTER YOUR NAME!!!");
ask=prompt("PLEASE ENTER YOUR AGE!!!");
if (!ask)                                                   
must();
else
sure=confirm("ARE YOU SURE?");
if (!nam)
nam='Well';
if (!sure)
tellResult();
else
calculate();
}
function must(){
alert("You must enter your age!!!");ask=prompt("PLEASE ENTER YOUR AGE!!!");
if (!ask)
must();
else
sure=confirm("ARE YOU SURE?");
}
document.write('') ;


* Any click Alert (Lol. this is not obligatory) with disadvantage ..Nwei, just wanna share this code;Preview here

Code:

function stayaway()
{
alert("Are you trying to steal my scripts, dude!?\rWell, back off! Don't make me call security!")
}
document.write('') ;

* Ip blocker alert>Feature's:If you want to block a specific user, With a specific ip address...then
use this one.. This can be considered as an ENEMY ALERT..


Quote :
var ip = ''
if (ip == 'IP ADDRESS OF UR ENEMY HIR') {
alert("STOP! You are viewing this page from an IP address that is not allowed!");
alert("Why can't you guys just leave me alone?");
if (confirm("Do you want to leave peacefully? Or will I have to help you?"))
{location.href="ANY HTTP:// LINK OF A SITE HERE" } else { ("OK you choose I don't care! Bye bye! Don't come back!"); {location.href="ANY HTTP:// LINK OF A SITE HERE" }} }
Back to top Go down
View user profile http://friendster.com/ayehempty
danz
Webmaster

avatar

Male
Age : 27 Registration date : 2009-03-02 Number of posts : 86 Location : Dimatagpuan City,lolz Job/hobbies : LAYOUT DESIGNING Humor : very happy

PostSubject: Re: [Advance many Alert scripts](js)   Mon Mar 09, 2009 2:56 am

tnx... again for sharing.. ayeh
great help for me..since my file accounts have been suspended and i dont have a back up file on it.. so thnx for this..
great compilation.
Back to top Go down
View user profile http://profiles.friendster.com/danilodeleon
[AKOSIAMICK]
VIP

avatar


Age : 22 Registration date : 2009-03-11 Number of posts : 60 Location : Job/hobbies : Humor :

PostSubject: Re: [Advance many Alert scripts](js)   Fri Mar 13, 2009 1:44 am

thanks for this
Back to top Go down
View user profile
Sponsored content





PostSubject: Re: [Advance many Alert scripts](js)   

Back to top Go down

[Advance many Alert scripts](js)

View previous topic View next topic Back to top 
Page 1 of 1
Friendster Mania Members
Follow the rules of this forum!

Permissions in this forum: You cannot reply to topics in this forum
UNLEASHED YOUR CREATIVITY! :: FSMANIA DESIGN AND DEVELOPMENT :: JAVASCRIPT -