Hekp Me / Javascript codes :)

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Hekp Me / Javascript codes :)

    brb
    i just need a javascript forum code



    Edited By ??? at ??? = Reset cfm {(ColdFusion)}
    ?ark Templer Guest

  2. Similar Questions and Discussions

    1. Hex codes instead of chars problem
      Hi I need to write a little Windows utility in C++ to retrieve data from a mysql database that belongs to a Linux backup program called Bacula....
    2. missing html codes
      Although I am learning fast, there are still some things I need to know about HTML codes and Meta tags. My web site layout is done using the table...
    3. Need help finishing codes
      I have a website that I have been working on until one important team member for personal reasons is unable to continue with the task, now I am kind...
    4. Locale-Codes 2.07
      Version 2.07 of the Locale-Codes distribution is now on CPAN: file: $CPAN/authors/id/N/NE/NEILB/Locale-Codes-2.07.tar.gz size: 25886 bytes md5:...
    5. Two files get zip codes???
      Using Filemaker 5.0 on PC. I have two files, each containing contacts with addresses and zip codes. I would like to find all of the zip codes in...
  3. #2

    Default Re: Hekp Me / Javascript codes :)

    here :) are some code



    here is the watermark code

    <DIV CLASS="jsbrand" ID="jsbrand"
    STYLE="position:absolute;top:1;visibility:hide;" zIndex="1000" ALIGN="right">
    <A HREF="http://www.javascript-page.com" TARGET="_top"><IMG SRC="jsnow.gif"
    ALT="Nic's Javascript Page" BORDER="0"></A>
    </DIV>
    <script language="Javascript1.2">
    <!--
    // you must keep the following lines on when you use this
    // original idea from the Geocities Watermark
    // ? Nicolas - [url]http://www.javascript-page.com[/url]

    var window_says = "Nic's Javascript Page";
    var image_width = 88;
    var image_height = 31;
    var left_from_corner = 0;
    var up_from_corner = 0;

    var JH = 0;
    var JW = 0;
    var JX = 0;
    var JY = 0;
    var left = image_width + left_from_corner + 17;
    var up = image_height + up_from_corner + 15;

    if(navigator.appName == "Netscape") {
    var wm = document.jsbrand;
    }

    if (navigator.appVersion.indexOf("MSIE") != -1){
    var wm = document.all.jsbrand;
    }

    wm.onmouseover = msover
    wm.onmouseout = msout

    function watermark() {

    if(navigator.appName == "Netscape") {
    JH = window.innerHeight
    JW = window.innerWidth
    JX = window.pageXOffset
    JY = window.pageYOffset
    wm.visibility = "hide"
    wm.top = (JH+JY-up)
    wm.left = (JW+JX-left)
    wm.visibility= "show"
    }

    if (navigator.appVersion.indexOf("MSIE") != -1){
    if (navigator.appVersion.indexOf("Mac") == -1){
    wm.style.display = "none";
    JH = document.body.clientHeight;
    JW = document.body.clientWidth;
    JX = document.body.scrollLeft;
    JY = document.body.scrollTop;
    wm.style.top = (JH+JY-up);
    wm.style.left =(JW+JX-left);
    wm.style.display = "";
    }
    }
    }

    function msover(){
    window.status = window_says
    return true;
    }

    function msout(){
    window.status = ""
    return true;
    }

    setInterval("watermark()",100);
    //-->
    </script>

    The color text changing code

    <script language="Javascript1.2">
    <!--
    // please keep these lines on when you copy the source
    // made by: Nicolas - [url]http://www.javascript-page.com[/url]

    function initArray() {

    this.length = initArray.arguments.length;
    for (var i = 0; i < this.length; i++) {
    this[i] = initArray.arguments[i];
    }
    }

    var ctext = "Welcome"
    var speed = 1

    var x = 0

    var color = new initArray("red",
    "blue",
    "green",
    "white"
    );

    if(navigator.appName == "Netscape") {
    document.write('<layer id="c">'+ctext+'</layer><br>');
    }

    if (navigator.appVersion.indexOf("MSIE") != -1){
    document.write('<div id="c">'+ctext+'</div>');
    }

    function chcolor(){

    if(navigator.appName == "Netscape") {
    document.c.document.write('<font color="'+color[x]+'">'
    +ctext+'</font>');
    document.c.document.close();
    }

    else if (navigator.appVersion.indexOf("MSIE") != -1){
    document.all.c.style.color = color[x];
    }

    (x < color.length-1) ? x++ : x=0;
    }

    setInterval("chcolor()",1000)
    //-->
    </script>

    another code

    <style type="text/css">
    <!--
    .myCrosshair {
    cursor: crosshair;
    }
    -->
    </style>

    <p class="myCrosshair">This should show a crosshair!</p>

    another code

    <body bgcolor=Black>
    <CENTER><FONT FACE="Verdana" Size="+3" COLOR="red">
    <script>

    // (C) 2001 [url]www.CodeLifter.com[/url]
    // [url]http://www.codelifter.com[/url]
    // Free for all users, but leave in this header

    var whatName=prompt("Please type in your name:","");
    function doName(theName){
    if ((whatName != "")&&(whatName !=null)){
    // you can modify this as needed
    // this is the message if a name is typed in
    document.writeln("Welcome "+whatName+" To The subpanel. "+whatName+" You
    May Have To Leave if your not an admin")
    }else{
    // you can modify this as needed
    // this is the message if a name is *not* typed in
    document.writeln("Welcome Guest")
    }
    }

    doName(whatName);

    </script>
    </CENTER></FONT>

    ?ark Templer Guest

  4. #3

    Default Re: Hekp Me / Javascript codes :)

    more codes

    <font color= White>
    <SCRIPT>
    <!-- Begin
    function right(e) {
    if (navigator.appName == 'Netscape' &&
    (e.which == 3 || e.which == 2))
    return false;
    else if (navigator.appName == 'Microsoft Internet Explorer' &&
    (event.button == 2 || event.button == 3)) {
    alert("Caught You");
    return false;
    }
    return true;
    }

    document.onmousedown=right;
    document.onmouseup=right;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (document.layers) window.captureEvents(Event.MOUSEUP);
    window.onmousedown=right;
    window.onmouseup=right;
    // End -->
    </SCRIPT>

    another code

    <script language="JavaScript">
    <!--

    function WM_checkIn(WM_id) {

    /*
    WM_checkIn()
    Takes the ID of a positioned HTML element and returns an object reference.

    Source: Webmonkey Code Library
    ([url]http://www.hotwired.com/webmonkey/javascript/code_library/[/url])

    Author: Taylor
    Author Email: [email]taylor@wired.com[/email]
    Author URL: [url]http://www.taylor.org/[/url]

    Usage: WM_checkIn('id')
    */

    // First we initialize all the variables.
    var theObj,ss,sr,i,j,WM_layers=new Array();
    // This chunk handles the IE portion of the checkIn code.
    if (document.all) {
    // This checks to see if the inline style declaration has
    // a position property associated with it. If not, it will
    // scan the global stylesheets for the ID.
    if((document.all[WM_id].style.position != 'absolute') &&
    (document.all[WM_id].style.position != 'relative')){
    // This little loop I'm very proud of, because it's kinda
    // slick and I wrote it all myself. It loops through all
    // global stylesheets and all the rules in each stylesheet,
    // tests for the selected ID, then returns that as the object.
    for (ss=0 ; ss < document.styleSheets.length; ss++) {
    for (sr=0 ; sr < document.styleSheets(ss).rules.length; sr++) {
    if (document.styleSheets(ss).rules(sr).selectorText == '#' + WM_id) {
    theObj = document.styleSheets(ss).rules(sr).style;
    break;
    }
    }
    }
    } else {
    // This works the same as in the light version, so you can
    // use inline styles.
    theObj = document.all[WM_id].style;
    }
    } else if(document.layers) {
    // Now we're in Netscapeland. The main problem here
    // is finding the object in a maze of hierarchy.
    // I wish I could say that I'm proud of this code,
    // because it's really slick. Unfortunately, I ripped
    // it off from Macromedia Dreamweaver's drag layer code
    // (with permission, of course :-)
    // Dreamweaver/Configuration/Behaviors/Actions/Drag Layer.htm
    // It works wonderfully and solves the problem.
    WM_layers = new Array();
    with (document) {
    for (i=0; i<layers.length; i++) WM_layers[i]=layers[i]; {
    for (i=0; i<WM_layers.length; i++) {
    if (WM_layers[i].document && WM_layers[i].document.layers) {
    for (j=0; j<WM_layers[i].document.layers.length; j++) {
    WM_layers[WM_layers.length] = WM_layers[i].document.layers[j];
    }
    if(WM_layers[i].name == WM_id){
    // So if the code matches the name of the layer,
    // return the reference.
    theObj = WM_layers[i];
    }
    }
    }
    }
    }
    }
    return theObj;
    }


    // -->

    </script>

    ?ark Templer Guest

  5. #4

    Default Re: Hekp Me / Javascript codes :)

    some more

    <script language="JavaScript">
    <!--

    /*
    WM_setCookie(), WM_readCookie(), WM_killCookie()
    A set of functions that eases the pain of using cookies.

    Source: Webmonkey Code Library
    ([url]http://www.hotwired.com/webmonkey/javascript/code_library/[/url])

    Author: Nadav Savio
    Author Email: [email]nadav@wired.com[/email]
    */


    // This next little bit of code tests whether the user accepts cookies.
    var WM_acceptsCookies = false;
    if(document.cookie == '') {
    document.cookie = 'WM_acceptsCookies=yes'; // Try to set a cookie.
    if(document.cookie.indexOf('WM_acceptsCookies=yes' ) != -1) {
    WM_acceptsCookies = true;
    }// If it succeeds, set variable
    } else { // there was already a cookie
    WM_acceptsCookies = true;
    }


    function WM_setCookie (name, value, hours, path, domain, secure) {
    if (WM_acceptsCookies) { // Don't waste your time if the browser doesn't
    accept cookies.
    var not_NN2 = (navigator && navigator.appName
    && (navigator.appName == 'Netscape')
    && navigator.appVersion
    && (parseInt(navigator.appVersion) == 2))?false:true;

    if(hours && not_NN2) { // NN2 cannot handle Dates, so skip this part
    if ( (typeof(hours) == 'string') && Date.parse(hours) ) { // already a
    Date string
    var numHours = hours;
    } else if (typeof(hours) == 'number') { // calculate Date from number of
    hours
    var numHours = (new Date((new Date()).getTime() +
    hours*3600000)).toGMTString();
    }
    }
    document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' +
    numHours):'') + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'')
    + ((secure && (secure == true))?'; secure':''); // Set the cookie, adding any
    parameters that were specified.
    }
    } // WM_setCookie


    function WM_readCookie(name) {
    if(document.cookie == '') { // there's no cookie, so go no further
    return false;
    } else { // there is a cookie
    var firstChar, lastChar;
    var theBigCookie = document.cookie;
    firstChar = theBigCookie.indexOf(name); // find the start of 'name'
    var NN2Hack = firstChar + name.length;
    if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) { // if you
    found the cookie
    firstChar += name.length + 1; // skip 'name' and '='
    lastChar = theBigCookie.indexOf(';', firstChar); // Find the end of the
    value string (i.e. the next ';').
    if(lastChar == -1) lastChar = theBigCookie.length;
    return unescape(theBigCookie.substring(firstChar, lastChar));
    } else { // If there was no cookie of that name, return false.
    return false;
    }
    }
    } // WM_readCookie

    function WM_killCookie(name, path, domain) {
    var theValue = WM_readCookie(name); // We need the value to kill the cookie
    if(theValue) {
    document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970
    00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' +
    domain:''); // set an already-expired cookie
    }
    } // WM_killCookie


    // -->

    </script>

    another code

    ?ark Templer Guest

  6. #5

    Default Re: Hekp Me / Javascript codes :)

    some more codes

    <CENTER><FONT FACE="Verdana" Size="+2" COLOR="Blue">
    <SCRIPT>

    today=new Date();
    day=today.getDate();
    year=today.getYear();
    month=today.getMonth()+1;
    if (day==1) end=("st");
    else if (day==2) end=("nd");
    else if (day==3) end=("rd");
    else if (day==21) end=("st");
    else if (day==22) end=("nd");
    else if (day==23) end=("rd");
    else if (day==31) end=("st");
    else end=("th");
    if (month==1) name=("January");
    else if (month==2) name=("February");
    else if (month==3) name=("March");
    else if (month==4) name=("April");
    else if (month==5) name=("May");
    else if (month==6) name=("June");
    else if (month==7) name=("July");
    else if (month==8) name=("August");
    else if (month==9) name=("September");
    else if (month==10) name=("October");
    else if (month==11) name=("November");
    else name=("December");
    if (year<100) year="19" + year;
    document.write(name + " " + day + end + "&nbsp; " + year);

    </SCRIPT>


    <SCRIPT>

    function MakeArrayday(size) {
    this.length = size;
    for(var i = 1; i <= size; i++) {
    this[i] = "";
    }
    return this;
    }
    function MakeArraymonth(size) {
    this.length = size;
    for(var i = 1; i <= size; i++) {
    this[i] = "";
    }
    return this;
    }
    function funClock() {
    if (!document.layers && !document.all)
    return;
    var runTime = new Date();
    var hours = runTime.getHours();
    var minutes = runTime.getMinutes();
    var seconds = runTime.getSeconds();
    var dn = "am";
    if (hours > 12) {
    dn = "pm";
    hours = hours - 12;
    }
    if (hours == 0) {
    hours = 12;
    }
    if (minutes <= 9) {
    minutes = "0" + minutes;
    }
    if (seconds <= 9) {
    seconds = "0" + seconds;
    }
    movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
    if (document.layers) {
    document.layers.clock.document.write(movingtime);
    document.layers.clock.document.close();
    }
    else if (document.all) {
    clock.innerHTML = movingtime;
    }
    setTimeout("funClock()", 1000)
    }
    window.onload = funClock;

    </SCRIPT>
    </FONT>

    <TABLE BGCOLOR=#000000 BORDER=0><TR>
    <TD BGCOLOR=#000000>
    <FONT SIZE=5 COLOR=#FFFFFF>
    <span id=clock style="position:relative;"></span>
    </FONT></TD></TR></TABLE>

    <SCRIPT language=javascript>

    {
    tensmin=""; tenssec=""; mark=" am";
    months = new
    Array("January","February","March","April","May"," June","July","August","Septemb
    er","October","November","December");
    todaysdate=new Date();
    hour=todaysdate.getHours();
    minutes=todaysdate.getMinutes();
    seconds=todaysdate.getSeconds();
    if (hour>12) {hour-=12; mark=" pm"};
    if (hour==0) hour=12;
    if (minutes<10) tensmin="0";
    if (seconds<10) tenssec="0";
    document.write(hour+"<blink>:</blink>"+tensmin+minutes+mark+" &nbsp;");
    document.write(months[todaysdate.getMonth()]+" "+todaysdate.getDate()+"
    &nbsp;"+todaysdate.getYear()+" &nbsp;");
    // setTimeout('window.location=windowloc',61000-(seconds*1000))
    }

    </SCRIPT>



    <SCRIPT language=javascript>

    {
    tensmin=""; tenssec=""; mark=" am";
    months = new
    Array("January","February","March","April","May"," June","July","August","Septemb
    er","October","November","December");
    todaysdate=new Date();
    hour=todaysdate.getHours();
    minutes=todaysdate.getMinutes();
    seconds=todaysdate.getSeconds();
    if (hour>12) {hour-=12; mark=" pm"};
    if (hour==0) hour=12;
    if (minutes<10) tensmin="0";
    if (seconds<10) tenssec="0";
    document.write(hour+"<blink>:</blink>"+tensmin+minutes+mark+" &nbsp;<br>");
    document.write(months[todaysdate.getMonth()]+" "+todaysdate.getDate()+"
    &nbsp;"+todaysdate.getYear()+" &nbsp;");
    // setTimeout('window.location=windowloc',61000-(seconds*1000))
    }

    </SCRIPT>

    ?ark Templer Guest

  7. #6

    Default Re: Hekp Me / Javascript codes :)

    some more codes

    <SCRIPT LANGUAGE="LiveScript">
    <!--
    step = 0;
    diff=3;
    // change board when button is clicked
    function clear_all(form) {
    step = 0;
    for (i=0;i<9; ++i) {
    position="a"+i;
    form[position].value="";
    }
    }
    // change board when button is clicked
    function clickit(field) {
    if (step == -1) {alert("Reset to play again"); return;}
    position=field.name.substring(1,2,1);
    position = 'a'+position;
    if (field.form[position].value !="") {alert("Can't go there"); return;}
    field.form[position].value="X";
    if (eval_pos(field.form)) {
    field.form.output.value="You Win!";
    step = -1;
    return;
    }
    position=get_move(field.form);
    field.form.output.value='I moved to ' + position.substring(1,2,1);
    if (position=="") {
    field.form.output.value="Draw!";
    step = -1;
    return;
    }
    field.form[position].value="O";
    if (eval_pos(field.form)) {
    field.form.output.value="Sorry You Lose";
    step = -1;
    }
    }

    // see if there is a winner
    function eval_pos(form) {
    if ((form.a0.value!="" &&
    form.a0.value==form.a3.value && form.a0.value==form.a6.value)||
    (form.a0.value!=""
    && form.a0.value==form.a1.value && form.a0.value==form.a2.value) ||
    (form.a0.value!=""
    && form.a0.value==form.a4.value && form.a0.value==form.a8.value) ||
    (form.a1.value!=""
    && form.a1.value==form.a4.value && form.a1.value==form.a7.value) ||
    (form.a2.value!=""
    && form.a2.value==form.a5.value && form.a2.value==form.a8.value) ||
    (form.a2.value!=""
    && form.a2.value==form.a4.value && form.a2.value==form.a6.value) ||
    (form.a3.value!=""
    && form.a3.value==form.a4.value && form.a3.value==form.a5.value) ||
    (form.a6.value!=""
    && form.a6.value==form.a7.value && form.a6.value==form.a8.value))
    return true;
    else
    return false;
    }

    function f(a) {
    if (a == "") return "."; else return a;
    }

    // get position for move.
    function comp_move(form,player,weight,depth) {
    var cost;
    var bestcost=-2;
    var position;
    var newplayer;
    if (player=="X") newplayer="X"; else newplayer="X";
    if (depth==diff) return 0;
    if (eval_pos(form)) return 1;
    for (var i=0; i<9; ++i) {
    position='a'+i;
    if (form[position].value != "")
    continue;
    form[position].value=player;
    cost = comp_move(form,newplayer, -weight, depth+1);
    if (cost > bestcost) {
    bestcost=cost;
    if (cost==1) i=9;
    }
    form[position].value="";
    }
    if (bestcost==-2) bestcost=0;
    return(-bestcost);
    }

    // get position for move.
    function get_move(form) {
    var cost;
    var bestcost=-2;
    bestmove="";
    // don't think about first move.
    if (step++ == 0)
    if (form.a4.value=="")
    return "a4";
    else
    if (form.a0.value=="")
    return "a0";

    for (var i=0; i<9; ++i) {
    localposition='a'+i;
    if (form[localposition].value != "")
    continue;
    form[localposition].value="O";
    cost=comp_move(form,"X", -1, 0);
    if (cost > bestcost) {
    if (cost==1) i=9;
    bestmove=localposition;
    bestcost=cost;
    }
    form[localposition].value="";
    }
    return bestmove;
    }

    // complain if user attempts to change board
    function complain(field) {
    field.form.output.focus(); // put focus eleswhere
    alert("CHEATER!!!!!!!!!");
    }
    //a href="http://www.ucsd.edu/
    // the end -->
    </SCRIPT>
    </head>

    ?ark Templer Guest

  8. #7

    Default Re: Hekp Me / Javascript codes :)

    This code belongs in the above post

    <BODY BGCOLOR="#FFFFFF">
    <center>
    <!-- <SERVICE NAME="geoguide"> -->

    <!-- </SERVICE> -->
    </center>

    <H1> A JavaScript Tic Tac Toe Game </H1>
    Click on the button next to each position to put an X there.
    <hr>
    <FORM>


    <INPUT SIZE=1 NAME="a0" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b0" OnClick="clickit(this)">
    <INPUT SIZE=1 NAME="a1" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b1" OnClick="clickit(this)">
    <INPUT SIZE=1 NAME="a2" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b2" OnClick="clickit(this)">
    <BR>

    <INPUT SIZE=1 NAME="a3" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b3" OnClick="clickit(this)">
    <INPUT SIZE=1 NAME="a4" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b4" OnClick="clickit(this)">
    <INPUT SIZE=1 NAME="a5" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b5" OnClick="clickit(this)">
    <BR>

    <INPUT SIZE=1 NAME="a6" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b6" OnClick="clickit(this)">
    <INPUT SIZE=1 NAME="a7" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b7" OnClick="clickit(this)">
    <INPUT SIZE=1 NAME="a8" OnFocus="complain(this)">
    <INPUT TYPE="button" NAME="b8" OnClick="clickit(this)">
    <BR>
    <BR>
    <BR>


    Message: <INPUT NAME="output" TYPE="text"><BR>
    <BR>
    Difficulty: <SELECT NAME="difficulty"
    OnChange="diff=form.difficulty[form.difficulty.selectedIndex].value;">
    <OPTION VALUE=1> Very Easy
    <OPTION VALUE=2> Easy
    <OPTION VALUE=3 SELECTED> Medium
    <OPTION VALUE=4> Hard (may think a long time)
    </SELECT>
    <BR><INPUT TYPE="button" VALUE="Computer Moves First" OnClick="
    if (!step++) this.form.a4.value='O';">

    <BR><INPUT TYPE="reset" VALUE="Restart" OnClick="clear_all(this.form)">

    ?ark Templer Guest

  9. #8

    Default Re: Hekp Me / Javascript codes :)

    the last of my codes

    <!-- Beginning of JavaScript Applet -------------------



    /* Copyright (C)1996 Web Integration Systems, Inc. DBA Websys, Inc.

    All Rights Reserved.





    This applet can be re-used or modified, if credit is given in

    the source code.



    We will not be held responsible for any unwanted effects due to the

    usage of this applet or any derivative. No warrantees for usability

    for any specific application are given or implied.



    Chris Skinner, January 30th, 1996.





    Hacked by Derek Siker--June 6, 2002

    */



    function scrollit_r2l(seed)

    {

    var m1 = " Welcome To My Site ";

    var m2 = " its Currently Down on Maintence. ";

    var m3 = " enjoy the games and other stuff ";



    var msg=m1+m2+m3;

    var out = " ";

    var c = 1;



    if (seed > 100) {

    seed--;

    var cmd="scrollit_r2l(" + seed + ")";

    timerTwo=window.setTimeout(cmd,100);

    }

    else if (seed <= 100 && seed > 0) {

    for (c=0 ; c < seed ; c++) {

    out+=" ";

    }

    out+=msg;

    seed--;

    var cmd="scrollit_r2l(" + seed + ")";

    window.status=out;

    timerTwo=window.setTimeout(cmd,100);

    }

    else if (seed <= 0) {

    if (-seed < msg.length) {

    out+=msg.substring(-seed,msg.length);

    seed--;

    var cmd="scrollit_r2l(" + seed + ")";

    window.status=out;

    timerTwo=window.setTimeout(cmd,100);

    }

    else {

    window.status=" ";

    timerTwo=window.setTimeout("scrollit_r2l(100)",75) ;

    }

    }

    }

    // -- End of JavaScript code ---------------->



    </SCRIPT>



    <BODY BACKGROUND BGCOLOR="black" LINK="blue" VLINK="green" TEXT="green"
    onLoad="timerONE=window.setTimeout('scrollit_r2l(1 0)',100);">
    </HEAD>

    <script language="Javascript">

    <!--
    // please keep these lines on when you copy the source
    // made by: Nicolas - [url]http://www.javascript-page.com[/url]

    var goodURL = "advpassword2.html"

    alert("To access the following document, you must pass a "
    +"members-only, authorization test.\n \n At the appropriate "
    +"time, enter in your username and password.")

    var username = prompt("Enter in your username","")
    var password = prompt("Enter in your password","")

    if (username == null || password == null) {

    alert("Authenification failed!!!")
    history.back();
    }

    else {
    var combo = username + password
    var total = combo.toLowerCase()


    if (total == "mynamemypass" || total == "name2pass2") {

    alert("You passed authenification! Come right in")

    location = goodURL

    }


    else {

    alert("Authenification failed!!!")
    history.back();
    }
    }

    //-->
    </script>



    <style type="text/css">
    <!--
    .myCrosshair {
    cursor: crosshair;
    }
    -->
    </style>

    <p class="myCrosshair">This should show a crosshair!</p>



    ?ark Templer Guest

  10. #9

    Default Re: Hekp Me / Javascript codes :)

    LOL, thats great man, but...to make this shorter, why not just put this all in
    one .txt file and zip it. Then add it as a download soemthere or something.
    Like on your site or whatever, but those scripts are nice tho.

    mdev_resources Guest

  11. #10

    Default Re: Hekp Me / Javascript codes :)

    they banned my id? well ill do it
    masterHacker2 Guest

  12. #11

    Default Re: Hekp Me / Javascript codes :)

    If you are going to keep pestering with off topic questions, after being
    warned by macromedia employees and others to not do those things, and after
    having those web-forum ID's erased by THE OWNER'S of this forum: I would
    strongly urge all readers of your posts to simply ignore anything you post
    under a quickee new id. No further comments-

    I don't know why you are here- you don't know what "here" is.
    I don't know what you are asking, or hope to obtain for advice.

    I shun thee.

    > they banned my id? well ill do it
    Alan Ames Guest

  13. #12

    Default Re: Hekp Me / Javascript codes :)

    >
    > I don't know why you are here- you don't know what "here" is.
    > I don't know what you are asking, or hope to obtain for advice.
    Here is some info, hopefully you will go where you can find the information
    you are after

    a) i just need a javascript forum code

    There aren't any. JavaScript can't create or save to files on a server-
    JavaScript in a browser is Client-side.
    To make a forum, you have to use Server-Side scripting, like ASP or php or
    ColdFusion or cgi in different available languages. Those are all run on the
    server, before any html is sent to the browser.
    Common free souce code for forums-
    phpbb ikonboard snitz
    You can find those and others in the correct categories at
    [url]http://hotscripts.com[/url]

    b) places to find those scripts and tutorials-
    [url]http://hotscripts.com[/url]
    [url]http://www.htmlgoodies.com[/url]
    [url]http://www.webdevelopersjournal.com/[/url]
    [url]http://www.freewebmasterhelp.com[/url]

    and can also just use a good search engine.

    If the computer you are using at home or school has those domains blocked-
    take the problem up with the people who control that computer.

    Alan Ames Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139