n00bfest.com
Home Forum phpBB3 Shoutbox Servers Teamspeak Admins Donate FAQ
Sign Up
Stats Contact Us!

 

View unanswered posts | View active topics It is currently Tue Apr 30, 2024 8:49 am



Reply to topic  [ 2 posts ] 
 JavaScript Help 
Author Message
n00bfest Council
User avatar

Joined: Mon Jul 05, 2010 1:18 am
Posts: 1740
Post JavaScript Help
Okay... so this is my lab for tomorrow...

Objectives
In this lab you will learn about

JavaScript

Program Specification
The purpose of this lab is for you to learn about building active Web pages using JavaScript.

Design Details
You can use Eclipse, notepad, emacs, or any other text editor for this lab. Do not use Wordpad and be careful of the text editor on a Mac, because its default is RichText, not plain text.

The Web page should be password-protected. The page should have

a text field
two buttons that turn the page background red and green, respectively
an if-else statement that gets a users' age and, depending on whether the user is a pre-teenager or older than a teenager, prints out an appropriate message about Miley Cyrus
a drop-down menu with at least three choices, each of which causes a new page to appear.

WE HAVE LEARNED JACK SHIT ABOUT THIS! I AM GOING TO BASICALLY GO INTO THIS BLIND... need a widdle bit of help..

_________________
http://steamcommunity.com/id/Hito1220/wishlist
http://www.twitch.tv/hito1220


Wed Nov 16, 2011 1:20 am
Profile
Game Server Admin
User avatar

Joined: Thu Jan 14, 2010 10:57 am
Posts: 904
Post Re: JavaScript Help
In short for those tasks you need to use combination of:

1) id, onclick, getElementById, style
2) id, onclick, getElementById, parseInt, validate NaN, alert / innerHTML / innerText
3) this, options, selectedIndex, onchange, window, open

The whole semi-wroking solution is below. The method is DES, the key is you.

---- START HERE ----
QNw5YaEYy4PR7I7Ou7Gs8vyJehzm4DLurBVCUnfP5dnWpPsBSPQqtAJnioVkyQjPichjedxyWsmZ5FR2+R7kvBg8/HFJWsJysEUAWL6AwSZPRAh2q4idCK9/4zb4oGB3CfxBpL5Loh8aEJlWmMh724B5JE6Days24MpGiarEKmbnFC/D0wWHi0f4ASrtpKo/T1XrO+Wa/3lWoJCOMJUeGDRavSsr5TbkNAmBECtfLhOyb9K64MEW/floFVeGPaVLBPiDxk5LMDmKim1iTbBh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1ocmQ60Uiscb02FzQt8vvsRSPj90LBqo2l/HRGYNXUWM4k4zjE
---- STOP HERE ----

gl

_________________
Image


Wed Nov 16, 2011 11:14 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.