Go to Post Aha I just noticed you're from my team. --Petey - Petey [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-11-2006, 19:01
SamC SamC is offline
.
AKA: Sam Couch
FRC #0103 (Cybersonics)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Philadelphia, PA
Posts: 583
SamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond repute
Cool Javascripts...

OK, I started this thread because as we speak I am working on the layout/design/coding of my teams new website. And so I am trying to throw in some cool javascript to add a) functionality and b) good appearance to our site. So it made me think, "What other cool javascripts are other teams using or planning on using?"... So here you can post the actual code (if you are comfortable doing so.), the use of the javascript (an overview of what the script accomplishes), or ideas for something that you have no clue how to make, but want to know if anyone can help you.

-Sam

SIDE NOTE:
If you got your javascript from a website or someone else, be sure to post links.
  #2   Spotlight this post!  
Unread 26-11-2006, 19:27
GRaduns340 GRaduns340 is offline
The Fruit Man
AKA: Gary
FRC #0340 (Greater Rochester Robotics)
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Rochester, NY
Posts: 152
GRaduns340 has a spectacular aura aboutGRaduns340 has a spectacular aura aboutGRaduns340 has a spectacular aura about
Send a message via AIM to GRaduns340
Re: Cool Javascripts...

I'm currently working on an AJAX script to load different frames over a certain portion of our team's site without reloading the entire site, for example login, upcoming events, and one other thing that's slipping my mind right now, will be called up through Javascript rather than the page load. AJAX is great stuff if you have the time to learn it.

I might also use Javascript in the menus, but I haven't decided on that yet. I might try to avoid it for that just because JS menus can become a little overkill for my organizational goal.
  #3   Spotlight this post!  
Unread 26-11-2006, 19:41
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Cool Javascripts...

My personal site has some cool Javascripting using the Moo.fx Javascript library.

http://www.twoplustwoequalsfive.com/

Mouse over the icons, and click and double click the 'twoplustwo'. If you want to do simple animation type things, check out moo.fx. If you want to do complicated animation things, check out Scriptaculous. They are both Javascript libraries that will save you lots of work (but probably still leave you pulling your hair out to get them functioning).
  #4   Spotlight this post!  
Unread 26-11-2006, 20:22
fimmel's Avatar
fimmel fimmel is offline
Founding Mentor, Team 2370
AKA: Forest Immel
FRC #2370 (iBots 2370)
Team Role: Mentor
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Castleton, Vermont
Posts: 325
fimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond repute
Re: Cool Javascripts...

i use some drop down menu scrips for the links on the green team website. i got them from Dynamic Drive most of them work good. they also have the browser capability for each script.
__________________



  #5   Spotlight this post!  
Unread 26-11-2006, 21:24
SamC SamC is offline
.
AKA: Sam Couch
FRC #0103 (Cybersonics)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Philadelphia, PA
Posts: 583
SamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond repute
Re: Cool Javascripts...

Well, I guess i'll post one of the scripts I am trying to integrate into our site. I don't have a link to the js but I will post the code in case anyone else wants to use it.
Code:
  <script type="text/javascript">
    function preloadImages() {
      for(var i = 0; i < arguments.length; ++i)
        (preloadImages.store[preloadImages.store.length] = new Image()).src = arguments[i];
    }
    preloadImages.store = [];

    preloadImages("/path/to/loaded_image.png", "/path/to/mouseover_image.png", "/path/to/timed_image.png");

    window.onload = function() {
      var e = document.images['header_image'];

      new FadableObject(e, 1, 10, 0, 99, false, false);

      e.src = preloadImages.store[0].src;
      e.onmouseover = function() {
        this.fadeThread.fadeOut(function(){
          this.element.src = preloadImages.store[1].src;
          this.fadeIn();
        });
      };
      e.onmouseout = function() {
        function() {
          document.images['header_image'].fadeThread.fadeOut(function(){
            this.element.src = preloadImages.store[0].src;
            this.fadeIn();
          });
      };
      window.setTimeout(
        function() {
          document.images['header_image'].fadeThread.fadeOut(function(){
            this.element.src = preloadImages.store[2].src;
            this.fadeIn();
          });
        },
        3000
      );
      e = null;
    };
  </script>
</head>
<body>
  <h1>
    <img src="/path/to/initial_image.png" id="header_image" alt="Header Text">
  </h1>
This script is modified from this script. Pretty much what it is for, is to make a flash/splash type header. Their are 2 images (3 if you want), 1 that is loaded once you are at the site, 1 that is loaded after 3 seconds of being at the site, then 1 that is loaded when you roll-over the header(i make it return to the 1st image)...I just need to add a skip button to it.
  #6   Spotlight this post!  
Unread 26-11-2006, 22:15
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Cool Javascripts...

Theres alot of cool AJAX stuff you can do if you choose to do that. Just be aware that not everyone has JS enabled, so make sure your site works with and without it. If it doesnt work without it make a simple check on the site and have it tell the user they need to enable it for your site to function properly.
  #7   Spotlight this post!  
Unread 27-11-2006, 01:34
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Cool Javascripts...

I've been able to create XHTML Strict and CSS standards-compliant drop-down menus (with semantic markup) that work flawlessly in Firefox, Opera, Safari, and IE7 without Javascript. The only Javascript I needed was a helper file for Internet Explorer 6. :-/

Remember: don't use Javascript/AJAX just for the sake of using Javascript/AJAX. If it doesn't serve a useful purpose, then it's just a waste of bandwidth. I almost always stick to a maximum file size of 100 kilobytes per page; that number includes everything - the XHTML, CSS, Javascript, and all of the images and graphics. That way, on fast Internet connections the page should load in under 1 second, while even on dial-up the page will still load in under 5-10 seconds.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #8   Spotlight this post!  
Unread 27-11-2006, 12:00
underwood's Avatar
underwood underwood is offline
lead machinist
AKA: alex
FRC #1072 (Harker Robotics)
Team Role: Mechanical
 
Join Date: Jan 2006
Rookie Year: 2005
Location: san jose, CA
Posts: 41
underwood is an unknown quantity at this point
Re: Cool Javascripts...

i dont remember where(who?) this is from, but im pretty sure it was on CD.

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math

put that in your address bar. (works better if you go to a page with many many pictures )
__________________

My Famous Last Words Will Be:
"I dunno, press the button and find out."
If life gives you lemons, find someone who's life has given them vodka and have a party.
"Bad artists copy. Great artists steal."
-Pablo Picasso
"Anyone who has never made a mistake has never tried anything new"
-Albert Einstein

MECHANICAL MONKEYS RULE!!!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ashley Is so Cool... Ashley Christine Chit-Chat 21 04-10-2005 15:41
Cool Game Aaron Lussier Chit-Chat 15 03-08-2003 23:17
Cool Site mjk3730 Website Design/Showcase 0 25-01-2003 13:19
Cool feature... Joe Johnson CD Forum Support 4 01-06-2001 16:45


All times are GMT -5. The time now is 01:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi