Codes For Js - Codes For JS i have managed to pick up

free web hosting
Free Web Hosting > Computers & Tech > Designing

Codes For Js - Codes For JS i have managed to pick up

blackhand101
here is one code i will post another


CODE
<script LANGUAGE="JavaScript">
<!--

// Use these three variables to set the message, scroll speed and start position
var msg = "Your Message Here"  //This is the message that will appear in the status bar.
var delay = 128   //increase to slow down movement
var startPos = 130   //increase to move start position to the right

// Don't touch these variables:
var timerID = null
var timerRunning = false
var pos = 0

// Make it all work
Scrollit()

function Scrollit(){
    // Make sure the clock is stopped
    StopTheClock()

    // Pad the message with spaces to get the "start" position
    for (var i = 0; i < startPos; i++) msg = " " + msg

    // Off we go...
    DoTheScroll()
}

function StopTheClock(){
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function DoTheScroll(){
    if (pos < msg.length)
        self.status = msg.substring(pos, msg.length);
    else
        pos=-1;
    ++pos
    timerRunning = true
    timerID = self.setTimeout("DoTheScroll()", delay)
}
//-->
</SCRIPT>



this makes a message scroll down in the status bar
replace a message in the quotation marks like this: "Your Message Here"

 

 

 


Reply

blackhand101
this next one is not really js but php sendmail code

CODE
<?php
   // Set this to your email address.
   $EMailAddress = "youremail@domain.com";


  if (!isset($_POST["Submit"])) {
     Submit_Screen();
  } else {
    $Value = Check_Submit();
    if ($Value > 0) Submit_Screen($Value);
    else {
      Post_Submit();
      Display_Thankyou();
    }
  }


  function Submit_Screen()
  {
     echo 'You can contact us via the following contact form:<br><br><form method=post>';
     echo '<table border=1 cellpadding=0 cellspacing=0><tr><td><table width=500 border=0 cellpadding=3 cellspacing=0><tr><td>Your Email Address:&nbsp;&nbsp;&nbsp;<input type=text size=50 name=Email value="'.@$_POST['Email'].'"></td></tr>';
     echo '<tr><td >Message:</td></tr><tr><td><textarea cols=60 rows=10 name=Notes>'.@$_POST['Notes'].'</textarea></td></tr>';
     echo '<tr><td align=center ><input name=Submit type=submit value="Contact Us"></td></tr></table></td></tr></table></form>';
  }

  function Display_Thankyou()
  {
      echo "<center><br><br><font class=\"p14\">Thank you for your feedback!</font></center>";
  }

  function Post_Submit()
  {
    global $EMailAddress;
    $Now = date("Y-m-d");
    $Email = addslashes($_POST["Email"]);
    $Notes = addslashes($_POST["Notes"]);
    $Message = "Contact Feedback\n$Email\n\n$Notes";
    @mail($EMailAddress, "Contact ", $Message, "From: ".$_POST['Email']);

  }

  function Check_Submit()
  {
    $Wrong = 0;
    if (!isset($_POST['Email']) || empty($_POST['Email'])) $Wrong |= 2;
    if (!isset($_POST["Notes"]) || empty($_POST["Notes"])) $Wrong |= 1;

    return ($Wrong);
  }

?>



replace your email in the quotation marks like this:
"youremail@domain.com"

 

 

 


Reply

vizskywalker
Those are some pretty useful codes. Personally, I find most status bar updating javascripts to be somewhat of a nuisance when they constantly update, but that doesn't make them any cooler. The mail form is also pretty good, and may help to prevent spambots from finding your email address if a naive spambot that only checks html pages stumbles across your site.

~Viz

Reply

kxrain
yes this are useful codes for my site. I will try to used this one if I build another site again. Thanks for the script dude!!

Reply

Lancer
My name is Lance Flavell. I used to write JavaScript years back when the web was still kind of new.

One of my earlier ones (I think it was 1998 ore there abouts!) was in discovering the new way making dynamic roll-over effects for table cells. In the days when everyone used dial up (I still do oddly enough)... it was a way of having cool menu effects without the wait time for on / off graphics. Back then it was known as JavaScript, although technically, these days you'd more likely call the method DHTML.

CODE
<!--Credit:Lance Flavell-->
<TABLE onMouseover="this.style.backgroundColor='#ff0000'" onMouseout="this.style.backgroundColor='#0000ff'" BGCOLOR="#0000ff" BORDER="4" WIDTH="200">
<TD>
<CENTER><B>DYNAMIC</B></CENTER>
</TD>
</TABLE><BR>

<TABLE onMouseover="this.style.backgroundColor='#ff0000'" onMouseout="this.style.backgroundColor='#0000ff'" BGCOLOR="#0000ff" BORDER="4" WIDTH="200">
<TD>
<CENTER><B>TABLES</B></CENTER>
</TD>
</TABLE><BR>

<TABLE onMouseover="this.style.backgroundColor='#ff0000'" onMouseout="this.style.backgroundColor='#0000ff'" BGCOLOR="#0000ff" BORDER="4" WIDTH="200">
<TD>
<CENTER><B>in</B></CENTER>
</TD>
</TABLE><BR>
</BODY>

<TABLE onMouseover="this.style.backgroundColor='#ff0000'" onMouseout="this.style.backgroundColor='#0000ff'" BGCOLOR="#0000ff" BORDER="4" WIDTH="200">
<TD>
<CENTER><B>INTERNET EXPLORER 4</B></CENTER>
</TD>
</TABLE>


The above code was originally submitted by myself to http://www.javascriptkit.com/script/cut97.shtml... I think they may have called themselves "JavaScript Source" when I originally submitted the code.

Reply

Lancer
Here's another one I also wrote which was mildly popular in the day... plays a game of "Guess my number 1-100".
One thing I don't like about my own code is that when they say they want to play again, it restarts by refreshing the whole webpage. I should have made it just pick a new number. Oh well...

You can see a working example at: http://www.javascriptkit.com/script/script2/ageguess.shtml

Here's the code (Note: in two parts)

CODE
&lt;script LANGUAGE="JavaScript">
<!--;
// numberguess is by Lancer - written 4 Jan 1999
// lancer@kp.planet.gen.nz

var guessme=Math.round(Math.random()*(99)+1);
var speech='Guess my number (from 1 to 100)';

function process(mystery) {
var guess=document.forms.guessquiz.guess.value;
var speech='"'+guess+ '" does not make sense to me.';
document.forms.guessquiz.guess.value='';

if (guess==mystery)
{
document.forms.guessquiz.prompt.value='Congratulations! '+mystery+' is correct!';
alert ('Well done - the mystery number is '+mystery+'! \n\nPress this button to reload the page for another game.');
speech='';
document.location=document.location;
}

if (mystery<guess)
{
speech='Less than '+ guess;
}

if (mystery>guess)
{
speech='Greater than '+ guess;
}

if (guess=='')
{
speech='You didn\'t guess anything!'
}

document.forms.guessquiz.prompt.value=speech; document.forms.guessquiz.guess.focus();

}

// end hide -->
</SCRIPT>
CODE
<FORM onSubmit="" NAME="guessquiz">
<CENTER>
<TABLE ALIGN="CENTER" BGCOLOR="#888888" BORDER="3" CELLPADDING="5">
<TR>
<TD BGCOLOR="#004080">
<FONT COLOR="#ffffff" FACE="Arial"><B>GUESS MY NUMBER (1 - 100)</B></FONT>
</TD>
</TR>
<TR>
<TD>
<CENTER>
<INPUT TYPE="text" NAME="prompt" SIZE="31" MAXLENGTH="40" VALUE="Guess my number (from 1 to 100)"><BR>
<INPUT TYPE="text" NAME="guess" SIZE="3" MAXLENGTH="3" VALUE="">
<INPUT TYPE="button" VALUE="Guess" onClick='process(guessme)'>
</CENTER>
</TD>
</TR>
</TABLE>
</CENTER>
</FORM>


I should also point out that my old kp.planet email address, has long since not been working.

Old old game. :o Enjoy,

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. different strategy on hiding codes on friendster - 133.83 hr back. (1)
  2. friendster js source code - 142.47 hr back. (1)
  3. f4 cant lost tagalog version music codes - 180.95 hr back. (1)
  4. javascript codes for friendster - 12.56 hr back. (2)
  5. html font codes for friendster - 132.59 hr back. (2)
  6. html codes for letters big small color for friendster - 211.56 hr back. (1)
  7. js codes in friendster - 229.95 hr back. (1)
  8. codes for math.round - 232.17 hr back. (1)
  9. friendster-js layouts.com - 251.50 hr back. (1)
  10. friendster js - 273.86 hr back. (1)
  11. js-layouts - 288.14 hr back. (1)
  12. friendster js.com - 295.91 hr back. (1)
  13. js codes - 329.78 hr back. (1)
  14. js source code for friendster - 377.95 hr back. (1)
Similar Topics

Keywords : codes, js, codes, js, managed, pick

  1. Question About Opengl Codes.
    (0)
  2. Common Ftp Server Error Codes
    error codes that you come across (0)
    QUOTE ~~~~~~~~~COMMON FTP ERROR CODES~~~~~~~~~~ # Description 110 Restart marker reply. In
    this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy
    = mmmm where yyyy is User-process data stream marker, and mmmm server's equivalent marker (note
    the spaces between markers and "="). 120 Service ready in nnn minutes. 125 Data connection already
    open; transfer starting. 150 File status okay; about to open data connection. 200 Command okay.
    202 Command not implemented, superfluous at this site. 211 System status, or sy....
  3. Tracing Broadcast Storms
    A poorly managed or configured layer 2 switch may affect network laten (1)
    In some cases, a single layer 2 switching device configured improperly can cause serious
    connectivity problems, especially on a large network. Problems of this nature behave similar to
    Denial of Service (DoS) attacks but are slightly easier to track. Most intranets serve a central
    location where other internal networks are connected. Whether it is a remote off-site location or
    only accessible by taking an underground railway, it's usually the best place to start
    disconnecting backbones to find out which physical subnet is causing the problem. Broadcast storms
    are ge....
  4. Mp3 Codes For Myspace & Friendster
    (0)
    Hi www.mp3-codes.com offers a free mp3 codes for your myspace and friendster accounts. Check them
    out they have tagalog (Philippines) and english music.....
  5. A Tutorial For Html Color Codes
    (7)
    HTML Coloring System - RGB Values RGB which stands for Red, Green, Blue. Each can have a value from
    0 (none of that color) to 255 (fully that color). The format for RGB is - rgb(RED, GREEN, BLUE),
    just like the name implies. Below is an example of RGB in use. Red, Green, and Blue Values:
    bgcolor="rgb(255,255,255)" White bgcolor="rgb(255,0,0)" Red bgcolor="rgb(0,255,0)" Green
    bgcolor="rgb(0,0,255)" Blue HTML Color Code - Breaking the Code The following table shows how
    letters are incorporated into the hexadecimal essentially extending the numbers system to 16 values....
  6. Free Source Codes For C++
    (1)
    Hey, just posting some exercises from Chapter 4 of the old book. CODE /* Chapter 4 Exercise
    11a by Albert Villaroman 11-27-06 */ #include <iostream.h> int main () {     cout
    <<"Enter a non-negative integer: ";         int u;         cin >>u;
        while (u<0) {         cout <<"Enter non-negative integer: ";
              cin >>u;     }          int potentialPrimes=0, loops=0;     for (int f=2;
    f<u; f++) {         if (u%f != 0) {             potentialPrimes++;  ....
  7. Choosing A Linux Distro. Why Should I Pick Yours?
    (10)
    I'm going to install Linux to my primary computer. It'll take about week until I get my new
    hard drive and have the time to start installing. So that's how much time I have to choose a
    distro! People have been debating which distro is best is about as long as there has been
    linux distros, but I want you to recommend a distro for me . Everyone has opinion which distro is
    best, but why I should choose it? First of all I'll tell a little background. I study IT at
    university and will be graduating next year. I'll start to work as a software engin....
  8. Dynamicdrive: Good Site For JavaScript Codes
    (5)
    If anyone needs Javascript codes or similar items for their web page a great place to go is
    http://www.dynamicdrive.com . They have hundreds of codes that are good. I would reccomend them for
    all your javascript needs.....
  9. {} Html'ing & Basic Codes {}
    Basic coding HTML for beginners! (0)
    ** I was looking through the tutorials page and I saw one tutorial on beginning HTML, I thought I
    would expand a little on it and show ya some basic codes you can use for your website if your
    beginning HTML! ** Beginning HTML HTML isnt all that hard. Once you get the hang of it,
    its quite a breeze, but sense your starting out new and would like some basic help on how to do
    simple things regarding HTML heres a little help for you! First off, lets start out with what
    HTML means and what you need to write it. * HTML - H ypertext M arkup L anguage wh....
  10. How Small Can Linux Be?
    And where you managed to stuff your tux? (15)
    I know there are distributions of Linux that fit onto one single FDD. But they are specially
    designed to do so. Have you managed to stuff your ordinary-size Linux into something that was never
    meant to serve under ReiserFS? I did. It all started with Philips MP3 player HDD065 (uncertain of
    model, never mind), like this one: It's got about 2 GB of disc space, pretty much. I took my
    copy of openSUSE 10.0, cut it up a bit so it was about 700 mb big, used 100 mb swap and praying to
    lord I ran an installation. And after restarting my PC, my family thought I finally ....
  11. Linux Distribution Chooser
    Helps you pick a Linux distro (10)
    Linux Distro Chooser ZeGenie Studios, a Norwegian development firm have come up with a very novel
    and immensely useful idea to help new and struggling users of Linux. Their questionnaire based
    selection picker asks the user a series of questions regarding what s/he is looking for in a Linux
    distro and accordingly makes recommendations so the user can make an informed decision about which
    distro would suit their needs best. The following Linux distributions are curently included :
    Fedora Core Mandriva SuSE Debian MEPIS Ubuntu Kubuntu Linspire Xandros PCLinuxOS Yellow....
  12. Where Can I Learn Html Codes ?
    html codes (8)
    does anyone know a good website with html codes?....
  13. Testing Application Codes
    (6)
    To generate an application for free web hosting please click here: Free Web Hosting Request
    Form I would like to request free web hosting from Astahost. Please find my application below.
    Your Registered Domain Name or Desired Astahost Subdomain Name:
    http://shootingstarhaven.astahost.com Account Username: SSH Introduction: I am a
    striving webmaster and I plan on making a site here in Astahost. That's really all you need to
    know of me. You can get to know me more around the forums. Email Address:
    shootingstarhaven@hotmail.com ....
  14. Best Games Of All Time
    Your pick for the best game of all time (5)
    I was just wondering what everyone would put down as the greatest game of all time. I personally
    would rate Final Fantasy 7 as my all time favorite, but I'm sure a lot of people would disagree.
    Here are my reasons for this: 1. for its time it had really stellar graphics and the movies were
    the bomb. 2. Very inventive story line with a lot of side quests going on and things to do. 3.
    Very likeable characters like Cloud and that vampire dude. 4. The game itself didn't feel
    confining and you were free to explore a lot. 5. As you progressed through the game ....
  15. Opera 8.5 Free Reg Codes!
    Opera 8.5 for free (4)
    QUOTE On 20/09/05 Opera Software announced that it was making its award-winning Opera Web
    browser available for free to all users. Previously, Opera had offered two versions of the product,
    a paid version and one that was free but included in-place advertisements. The re-release of Opera
    8.5 signifies an end to that strategy. Now, the company will offer only one free version with no
    ads. Enjoy surfin.... Lol Bhavik Vora -----Did not use Quotes tag. Almost entire post is
    quoted. Do not do this in the future, or you will be banned.-----szupie ....
  16. Where To Get Free Itunes Codes?
    iTunes (0)
    *Note: this seemed like an appropriate place seeing as you download the iTunes program for free.
    Anyway: First, you can get a free iTunes code from Geico. Actually, you get three free songs.
    My question is: does anybody know where else I can get free iTunes codes? I also went and did the
    WellsFargo newsletter sign-up thing, but I can't find the URL for it anymore (sorry)! While
    I'm on the subject of iTunes ... I used to hate this program but when I got this laptop it was
    already installed. I sort of took my sweet time getting around to the uninstall-t....
  17. For Those Who Know Their Html Codes
    html question (6)
    Does anyone know of an html code that flips your page upside, this question is in regards to
    myspace. I want my page to be flipped upside down but I dont know if there is a html code to do
    that. Does anyone know of one?....
  18. The Sco Group Failed To Produce Any Evidence That
    Linux contained copyrighted Unix codes (1)
    QUOTE The e-mail, which was sent to SCO Group CEO Darl McBride by a senior vice president at the
    company, forwards on an e-mail from a SCO engineer. In the Aug. 13, 2002, e-mail, engineer Michael
    Davidson said "At the end, we had found absolutely nothing ie (sic) no evidence of any copyright
    infringement whatsoever." Finally, Linux wins on this war /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> sorry, forgot to post the source
    http://news.com.com/SCO+e-mail+No+smoking+...ml?tag=nefd.top ....
  19. Add More Icons/Smilies And Make Codes For Them
    When it comes to messageboards and forum (1)
    I couldn't find a good answer when I searched through the forum, so I'll just ask; How can I
    add more "smilies" (want to add cards for a pokerforum), and create codes for them? The way I see
    it there is no easy backend feature for this, so I guess I'll have to enter the .html and. php
    and .css files on this, but which ones, and how do I make it so that new codes point to new pictures
    in smilies folder? I'm using a PHP Simpleboard component for Mambo.....
  20. Time To Pick On An Admin (my Website)
    I'm hitting the wall on this one! (2)
    I have my web site hosted on astahost, I just created a new forum and I'm creating the new
    categories and since the only color I changed on the skin is where the logo is I'm looking for
    feedback on where to improve the layout and what color scheme to use. I like it one minute, then
    not to sure the next minute /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'
    /> http://www.ultimatekayakfishing.com/ So if you are interested in kayakfishing join the group
    and chat. If you arent into that just give your opinion. Thanks. Nils....
  21. Poll: Which Is The Best Os
    Pick The Best OS (50)
    Windows Beats All I Think. Expecially XP. Bill Gates and his co-workers are so talented.....
  22. Cool Codes For Html/css Guys?
    (14)
    hi i was just wondering if you guys have any cool effect codes for html/css..im going to use it in
    mypace..its like a networking friend thing....well if you guys have any i would really appreciate it
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> thx peacE!....
  23. Handling Keyboard Input In Win32
    virtal key codes and scan codes (2)
    (Personal note: I am a physics teacher and a hobby programmer. Since I doubt anyone here is
    interested in a physics tutorial I figured it would be better to write a tutorial on something I
    learned while programming.) What I will cover here may be considered something of a lost art since
    keyboard control has been largely replaced by the use of the mouse. A lot of users are bewildered
    by the keyboard and the effort of deciding which one to push. Therefore, point and click has come
    to be considered a superior method of program control. Most programmers only deal with ....
  24. Help Me Pick
    the peices (11)
    Okay i want to but a new PC completely 100% but i dont want anything of the shelf i plan to but all
    the parts from the web and then build it but all the differnt specs dont realy add up to well for me
    so do you guys think you copuld give me any suggesions on places, prices and mostly parts i dont
    want a major super computer just an affordable computer that will run any game or software i want to
    put on there Thanks - Seaworm....
  25. Protect Your Codes
    protection from illegal copying (18)
    Do you know there are programs used to protect php codes from other eyes? this useful if you have
    shared hosting space with others and dont want your work is being copied by them. it changes php
    codes from: $password = "my_secret_password"; into something like this:
    MúºV†H¼ØwÌÝLoT¬ŸõV‘Ð¥ïÚHŒÌ encrypted into humanly-impossible-to-read. this is possible by
    using encoders like Zend Security Suite:
    http://www.zend.com/store/products/zend-safeguard-suite.php this tool can encrypt your php files
    thus preventing from others copying your work. it c....
  26. Cheatcodes Of Commandos Ii (beyond Call Of Duty)
    almost all codes of this game (0)
    hi, my name is Haseeb and i have some cheats of Commandos II and want to share with you.
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> While playing, type
    GONZOOPERA, then enter any of the following: Code: Effect: Shift+E/Ctrl+E Mission Editor
    Shift+F1/F2/F3/F4 Video Mode Shift+V Trace User Shift+X Teleport Ctrl+F9 Show Debug
    Output Ctrl+I Invisibility Ctrl+L Invulnerability Ctrl+shift+N Finishes Mission
    Ctrl+Shift+X Destroy Everything Alt+F11 Ventana Help Alt+I Picture
    I....
  27. http errors codes
    (4)
    http error codes: 400: Bad request 401.1: Logon failed 401.2: Logon failed due to server
    configuration 401.3: Unauthorized due to ACL on resource 401.4: Authorization failed by filter
    401.5: Authorization failed by ISAPI/CGI application 403.1: Execute access forbidden 403.2: Read
    access forbidden 403.3: Write access forbidden 403.4: SSL required 403.5: SSL 128 required 403.6: IP
    address rejected 403.7: Client certificate required 403.8: Site access denied 403.9: Too many users
    403.10: Invalid configuration 403.11: Password change 403.12: Mapper denied access 403.13: Cli....
  28. Hex Color codes
    a list of colors in code (6)
    I have here compiled a list of colors in Hexidecimal code. I have listed them in alphabetical order.
    I put them in three different files so ill put them in three posts. A-D, F-M, N-Y, dont worry i know
    my alphabet, their are just no colors starting with E etc. A-D Aliceblue-F0F8FF
    Antiquewhite-FAEBD7 Aqua-00FFFF Aquamarine-7FFFD4 Azure-F0FFFF Beige-F5F5DC Bisque-FFE4C4
    Black-000000 Blanchedalmond-FFEBCD Blue-0000FF Blueviolet-8A2BE2 Brown-A52A2A Burlywood-DEB887
    Cadetblue-5F9EA0 Chartreuse-7FFF00 Chocolate-D2691E Coral-FF7F50 Cornflowerblue-6495ED
    Cornsilk-FFF8DC ....

    1. Looking for codes, js, codes, js, managed, pick

Searching Video's for codes, js, codes, js, managed, pick
advertisement




Codes For Js - Codes For JS i have managed to pick up



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE