advance many alert try this its nice

Discussion in 'Web Development and Programming' started by spongebob na warriors!!!, Nov 2, 2008.

  1. spongebob na warriors!!!

    spongebob na warriors!!! Regular Member

    Joined:
    Oct 31, 2008
    Messages:
    37
    Likes Received:
    0
    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..

    * Fake virus alert:
    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):
    Code:
    /*This script by: Tony Rengel and Danny Duran  Email us at: [url=http://codecdesignz.1talk.net/mailto:[email protected]][email protected][/url]  
    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 [url=http://codecdesignz.1talk.net/mailto:[email protected]][email protected][/url] */
    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 = "[url=http://profiles.friendster.com/user]http://profiles.friendster.com/user[/url] id here"
                }
                else if (enter == 3)
                {
                  parent.location.href = "[url=http://www.friendster.com/comments.php?uid=user]http://www.friendster.com/comments.php?uid=user[/url] id here"
                }
          else
                {
                  alert('invalid number, try again');
                  ask()
                }
              
        
    }
    ask()
    * Ur history (came from alert):
    Code:
    var name = prompt("What is your name, friendster user?")
    alert("Hello "+name+" and [attach=full]24052[/attach] to my page. You have a "+navigator.appName+" version: "+navigator.appVersion+" and you came from "+document.referrer+". Have fun!")
    
    * Fooling Someone Alert (multiple version):
    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!:
    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...');
    }
    * Overloaded alert (almost everything is 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('<body onLoad="set();showAlert()">') ;
    
    *costumize simple alert:
    [code:nqfd555m]<style />
    /*no right clicking */
    body{right:expr/**/ession(
    function rightclick() {if (event.button==2)
    {alert('right click text here;)!')}}
    document.onmousedown=rightclick);}
    /* ar14.imgfast.net_users_1413_11_23_17_smiles_232637.gif ALERT BOX */
    body {
    height:expr/**/ession(
    function ar14.imgfast.net_users_1413_11_23_17_smiles_232637.gif ()
    {alert(' welcum text here  '+pageViewerFName+' text ');}
    window.onload= ar14.imgfast.net_users_1413_11_23_17_smiles_232637.gif );
    }
    /* GOODBYE ALERT BOX */
    body {
    left:expr/**/ession(
    function goodbye() {
    alert(' goodbye text alert here  '+pageViewerFName+' text ');
    }
    window.onunload=goodbye);
    }

    </style>[/code]

    [color=olive:nqfd555m]credits: to ayeh ([color:8a04=#fff][color=orange:nqfd555m]a3*aYeH-eMpTy-O.Gcursed[/color][/color:nqfd555m] )</font>
    HCG fam.
    kabute me hahaha
     

Share This Page