Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Signup for Free!
-More Features-
-Far Less Ads-
About   Users   Help
Users & Guests Online
On Page: 1
Directory: 141
Entire Site: 5 & 926
Page Staff: pokemon x, pennylessz, Barathemos, tgags123, alexanyways, supercool22, RavusRat,
03-28-24 09:27 AM

Thread Information

Views
13,337
Replies
95
Rating
1
Status
OPEN STICKY
Thread
Creator
septembern
04-24-10 04:01 PM
Last
Post
pennylessz
01-01-20 07:12 PM
Additional Thread Details
Views: 5,151
Today: 1
Users: 14 unique
Last User View
06-03-23
pokemon x

Thread Actions

Order
Posts


<<
5 Pages
 

Official HTML/CSS and Javascript thread

 

06-30-12 11:31 PM
soxfan849 is Offline
| ID: 609430 | 45 Words

soxfan849
Level: 76


POSTS: 752/1490
POST EXP: 106261
LVL EXP: 3995696
CP: 5193.6
VIZ: 222680

Likes: 0  Dislikes: 0
starwars293 :

First off, don't set the width to 50%. Just get rid of the part where you stretch the image (background-size:100% 100%).

Second off, a text box is only a box with font in it. I'm not sure what you're saying the problem is.
starwars293 :

First off, don't set the width to 50%. Just get rid of the part where you stretch the image (background-size:100% 100%).

Second off, a text box is only a box with font in it. I'm not sure what you're saying the problem is.
Vizzed Elite
The Reaper


Affected by 'Laziness Syndrome'

Registered: 01-09-11
Location: soxfan849
Last Post: 2690 days
Last Active: 2527 days

(edited by soxfan849 on 06-30-12 11:32 PM)    

07-01-12 08:05 AM
starwars293 is Offline
| ID: 609718 | 23 Words

starwars293
Level: 109


POSTS: 2586/3425
POST EXP: 104399
LVL EXP: 13642644
CP: 3101.7
VIZ: 139637

Likes: 0  Dislikes: 0
soxfan849 : No, you know the textbox that catfight09 has for his layout? Well, I don't have that textbox. Plus, it's unreadable to me.
soxfan849 : No, you know the textbox that catfight09 has for his layout? Well, I don't have that textbox. Plus, it's unreadable to me.
Trusted Member

Affected by 'Laziness Syndrome'

Registered: 07-22-11
Location: Canada
Last Post: 2779 days
Last Active: 1225 days

09-11-12 04:25 PM
coolJDL is Offline
| ID: 651141 | 10 Words

coolJDL
Level: 13

POSTS: 24/28
POST EXP: 534
LVL EXP: 9847
CP: 72.0
VIZ: 4686

Likes: 0  Dislikes: 0
This is very help full thanks for the guide dude! 
This is very help full thanks for the guide dude! 
Member

Affected by 'Laziness Syndrome'

Registered: 02-22-12
Last Post: 4170 days
Last Active: 1816 days

02-28-14 08:22 PM
tgags123 is Offline
| ID: 982690 | 40 Words

tgags123
Davideo123
Level: 161


POSTS: 4213/9012
POST EXP: 545798
LVL EXP: 54033000
CP: 35987.1
VIZ: 4584657

Likes: 0  Dislikes: 0
It's a shame that this thread hasn't been used for a long time. I am going to bump it because it could be a very helpful thread. I will be favoriting it, and answering any questions that people may have.
It's a shame that this thread hasn't been used for a long time. I am going to bump it because it could be a very helpful thread. I will be favoriting it, and answering any questions that people may have.
Local Moderator
Winter 2019 TdV Winner


Affected by 'Laziness Syndrome'

Registered: 04-26-13
Location: Long Island, NY
Last Post: 31 days
Last Active: 17 hours

03-23-14 01:29 PM
thomas147 is Offline
| ID: 993700 | 44 Words

thomas147
Level: 16

POSTS: 39/43
POST EXP: 1070
LVL EXP: 17875
CP: 992.7
VIZ: 43343

Likes: 0  Dislikes: 0
i have just read a bit of the comments but i dont understand anything of it i can only program C and C++ ( i study it ) but maybe someone can try to help me with java it looks close to C ?
i have just read a bit of the comments but i dont understand anything of it i can only program C and C++ ( i study it ) but maybe someone can try to help me with java it looks close to C ?
Member

Affected by 'Laziness Syndrome'

Registered: 03-27-13
Last Post: 3645 days
Last Active: 2791 days

03-25-14 07:16 PM
Blubcreator is Offline
| ID: 994757 | 75 Words

Blubcreator
Level: 69


POSTS: 346/1292
POST EXP: 98435
LVL EXP: 2838955
CP: 3464.1
VIZ: 58218

Likes: 0  Dislikes: 0
I have a java question can anyone attempt to debug this and tell me whats wrong?

var red = [0, 100, 63];
var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55];
var purple = [280, 50, 60];

var myName = "Batpig";
var lettercolors = [black, black, black, black, black];

if(10 < 3) {
bubbleShape = 'triangle';
}
else {
bubbleShape = 'circle';
}

drawName(myName, letterColors);
bounceBubbles();
I have a java question can anyone attempt to debug this and tell me whats wrong?

var red = [0, 100, 63];
var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55];
var purple = [280, 50, 60];

var myName = "Batpig";
var lettercolors = [black, black, black, black, black];

if(10 < 3) {
bubbleShape = 'triangle';
}
else {
bubbleShape = 'circle';
}

drawName(myName, letterColors);
bounceBubbles();
Trusted Member
Pessemistic, British, Insomniac


Affected by 'Laziness Syndrome'

Registered: 01-03-14
Location: The Peoples Republic Of China
Last Post: 955 days
Last Active: 909 days

03-27-14 11:29 AM
Juliet is Offline
| ID: 995491 | 155 Words

Juliet
Level: 149


POSTS: 5748/6750
POST EXP: 348455
LVL EXP: 40889145
CP: 10703.4
VIZ: 1377371

Likes: 0  Dislikes: 0
Blubcreator : What should be the output of the code first? Are you sure you're asking about "Java" and not "Javascript"? They're totally different... but I'd assume it's Javascript since you're not using the variable types(ie. int, char, double, float... etc.) for initialization.

Also, can you post your whole code for this? I'm assuming you already know how to make different files for different codes and then link them together through HTML? Maybe you can give me a zipped version.

Lastly, if you're using bubble.js, then you'd need Jquery for it to work. Before that you'd have to have a good foundation in javascript as they're just basically the same (except for Jquery being generally shorter in syntax and fancier). If you don't understand Javascript, you can't learn Jquery.

thomas147 : I'd be happy to help, Java is one of my weak spots though... I just can't bring myself to love the syntax.
Blubcreator : What should be the output of the code first? Are you sure you're asking about "Java" and not "Javascript"? They're totally different... but I'd assume it's Javascript since you're not using the variable types(ie. int, char, double, float... etc.) for initialization.

Also, can you post your whole code for this? I'm assuming you already know how to make different files for different codes and then link them together through HTML? Maybe you can give me a zipped version.

Lastly, if you're using bubble.js, then you'd need Jquery for it to work. Before that you'd have to have a good foundation in javascript as they're just basically the same (except for Jquery being generally shorter in syntax and fancier). If you don't understand Javascript, you can't learn Jquery.

thomas147 : I'd be happy to help, Java is one of my weak spots though... I just can't bring myself to love the syntax.
Vizzed Elite

3rd Place in the July 2009 VCS Competition!




Affected by 'Laziness Syndrome'

Registered: 05-10-09
Location: Manila, PH (Asia)
Last Post: 1542 days
Last Active: 92 days

(edited by Juliet on 03-27-14 11:34 AM)    

03-27-14 11:52 AM
Blubcreator is Offline
| ID: 995502 | 44 Words

Blubcreator
Level: 69


POSTS: 352/1292
POST EXP: 98435
LVL EXP: 2838955
CP: 3464.1
VIZ: 58218

Likes: 0  Dislikes: 0
Juliet : The code is actually javascript sorry about that. I also managed to figure out what was wrong. It was actually a stupid mistake. My variable "lettercolors" doesn't match with drawName(myName, letterColors);

I forgot to capitalize the C which is quite sad
Juliet : The code is actually javascript sorry about that. I also managed to figure out what was wrong. It was actually a stupid mistake. My variable "lettercolors" doesn't match with drawName(myName, letterColors);

I forgot to capitalize the C which is quite sad
Trusted Member
Pessemistic, British, Insomniac


Affected by 'Laziness Syndrome'

Registered: 01-03-14
Location: The Peoples Republic Of China
Last Post: 955 days
Last Active: 909 days

(edited by Blubcreator on 03-27-14 11:57 AM)    

03-27-14 12:03 PM
Juliet is Offline
| ID: 995508 | 18 Words

Juliet
Level: 149


POSTS: 5750/6750
POST EXP: 348455
LVL EXP: 40889145
CP: 10703.4
VIZ: 1377371

Likes: 0  Dislikes: 0
Blubcreator : I see... Case sensitivity sure is inconvenient when coding. Good to hear it's already been solved.
Blubcreator : I see... Case sensitivity sure is inconvenient when coding. Good to hear it's already been solved.
Vizzed Elite

3rd Place in the July 2009 VCS Competition!




Affected by 'Laziness Syndrome'

Registered: 05-10-09
Location: Manila, PH (Asia)
Last Post: 1542 days
Last Active: 92 days

10-06-14 09:01 AM
Blubcreator is Offline
| ID: 1087113 | 57 Words

Blubcreator
Level: 69


POSTS: 918/1292
POST EXP: 98435
LVL EXP: 2838955
CP: 3464.1
VIZ: 58218

Likes: 0  Dislikes: 0
I have to create a few examples in Javascript and one of them is a rock, paper, scissors game which is simple. But when I try and generate the computers choice it keeps outputting scissors to the screen when I log it. I assume it has something to do with how my conditions are set up.

http://pastebin.com/iHGj4MnN
I have to create a few examples in Javascript and one of them is a rock, paper, scissors game which is simple. But when I try and generate the computers choice it keeps outputting scissors to the screen when I log it. I assume it has something to do with how my conditions are set up.

http://pastebin.com/iHGj4MnN
Trusted Member
Pessemistic, British, Insomniac


Affected by 'Laziness Syndrome'

Registered: 01-03-14
Location: The Peoples Republic Of China
Last Post: 955 days
Last Active: 909 days

(edited by Blubcreator on 10-06-14 09:11 AM)    

10-06-14 10:31 PM
EideticMemory is Offline
| ID: 1087356 | 134 Words

EideticMemory
Level: 137


POSTS: 4185/6326
POST EXP: 427597
LVL EXP: 30771735
CP: 26372.5
VIZ: 1209954

Likes: 0  Dislikes: 0
Blubcreator :

I'm not exactly sure why it's not working.

Since I don't know if this is time-sensitive and anyone will answer quickly enough, I went ahead and messed with code from what I could find from both online resources and what you provided. (I don't know Javascript at all)

But I did manage to get it to work using the following code. Perhaps it could help you.

Edit - I messed with your numbers so that they apply for all cases as well.

<button onclick="myFunction()">Show Answer</button>
<p id="rps"></p>
<script>
function myFunction() {
var userChoice = prompt("Do you choose rock, paper or scissors?")
computerChoice = Math.random(0, 1)

if (computerChoice <= 0.33 && computerChoice >= 0)
{
computerChoice = "Rock";
}

else if (computerChoice <= 0.66 && computerChoice > 0.33)
{
computerChoice = "Paper";
}

else if (computerChoice <= 1 && computerChoice > 0.66)
{
computerChoice = "Scissors";
}
document.getElementById("rps").innerHTML = computerChoice;
}
</script>
Blubcreator :

I'm not exactly sure why it's not working.

Since I don't know if this is time-sensitive and anyone will answer quickly enough, I went ahead and messed with code from what I could find from both online resources and what you provided. (I don't know Javascript at all)

But I did manage to get it to work using the following code. Perhaps it could help you.

Edit - I messed with your numbers so that they apply for all cases as well.

<button onclick="myFunction()">Show Answer</button>
<p id="rps"></p>
<script>
function myFunction() {
var userChoice = prompt("Do you choose rock, paper or scissors?")
computerChoice = Math.random(0, 1)

if (computerChoice <= 0.33 && computerChoice >= 0)
{
computerChoice = "Rock";
}

else if (computerChoice <= 0.66 && computerChoice > 0.33)
{
computerChoice = "Paper";
}

else if (computerChoice <= 1 && computerChoice > 0.66)
{
computerChoice = "Scissors";
}
document.getElementById("rps").innerHTML = computerChoice;
}
</script>
Vizzed Elite

Affected by 'Laziness Syndrome'

Registered: 12-30-13
Location: North Carolina, USA
Last Post: 154 days
Last Active: 154 days

(edited by EideticMemory on 10-06-14 10:34 PM)    

10-06-14 11:14 PM
thephantombrain is Offline
| ID: 1087382 | 96 Words

Level: 68


POSTS: 1098/1206
POST EXP: 117889
LVL EXP: 2616403
CP: 5815.1
VIZ: 125359

Likes: 1  Dislikes: 0
Blubcreator:

var userChoice = prompt("Do you choose rock, paper or scissors?");
//(0, 1) doesn't need to be specified for

//Math.random because that is default.
computerChoice = Math.random();

//Use if/else if/else
if (computerChoice <= 0.33) {
   computerChoice = "rock";
} else if (computerChoice >= 0.67) {
   computerChoice = "scissors";
} else {
   computerChoice = "paper";
};

//Why put > 0 or < 1 when Math.random doesn't
//go below 0 or above 1 anyhow?

//I did this lesson at Codecademy a while back
//and I really need to finish my tutorial.
//Answering this question makes me want to
//finish. Thanks!
Blubcreator:

var userChoice = prompt("Do you choose rock, paper or scissors?");
//(0, 1) doesn't need to be specified for

//Math.random because that is default.
computerChoice = Math.random();

//Use if/else if/else
if (computerChoice <= 0.33) {
   computerChoice = "rock";
} else if (computerChoice >= 0.67) {
   computerChoice = "scissors";
} else {
   computerChoice = "paper";
};

//Why put > 0 or < 1 when Math.random doesn't
//go below 0 or above 1 anyhow?

//I did this lesson at Codecademy a while back
//and I really need to finish my tutorial.
//Answering this question makes me want to
//finish. Thanks!
Trusted Member
Guaranteed fresh by 01/08/17


Affected by 'Laziness Syndrome'

Registered: 07-21-13
Location: Wichita, Kansas, USA
Last Post: 1461 days
Last Active: 354 days

(edited by thephantombrain on 10-06-14 11:20 PM)     Post Rating: 1   Liked By: EideticMemory,

01-11-15 09:26 AM
CheeseTyme is Offline
| ID: 1124169 | 134 Words

CheeseTyme
hckarbiter
Level: 16


POSTS: 28/40
POST EXP: 3031
LVL EXP: 17294
CP: 962.4
VIZ: 65521

Likes: 0  Dislikes: 0
If you haven't heard about CodeCademy then you're missing out. They have Hands-On tutorials on most web development languages including (but not limited to):
    HTML & CSS
    Javascript
    jQuery
    PHP
    Python
    and Ruby
I've completed the first three courses and am working on Ruby and Python atm. CodeCademy really helped me out because it's not text-book reading. It's setup with an automated training room where in order to progress the course, you must code and code correctly. Their output handler for showing results is very useful and their community is great.
Check them out.
++++++++++
Some other resources I like to use are TutsPlus and Udemy. Both are paid subscription for a lot of their courses but they also have a lot of good free tutorials and articles that you can view.
TutsPlus
Udemy
If you haven't heard about CodeCademy then you're missing out. They have Hands-On tutorials on most web development languages including (but not limited to):
    HTML & CSS
    Javascript
    jQuery
    PHP
    Python
    and Ruby
I've completed the first three courses and am working on Ruby and Python atm. CodeCademy really helped me out because it's not text-book reading. It's setup with an automated training room where in order to progress the course, you must code and code correctly. Their output handler for showing results is very useful and their community is great.
Check them out.
++++++++++
Some other resources I like to use are TutsPlus and Udemy. Both are paid subscription for a lot of their courses but they also have a lot of good free tutorials and articles that you can view.
TutsPlus
Udemy
Member

Affected by 'Laziness Syndrome'

Registered: 06-11-11
Location: Atlanta
Last Post: 2124 days
Last Active: 936 days

02-20-15 11:45 AM
Sandvalanche is Offline
| ID: 1139261 | 115 Words

Sandvalanche
Level: 17

POSTS: 11/49
POST EXP: 5739
LVL EXP: 22362
CP: 653.7
VIZ: 33312

Likes: 0  Dislikes: 0
This morning I had an internship interview. Didn't got well. It was over Web development, which that and programming languages are what I'm attempting to accomplish for an internship for my undergraduate degree in Computer Information Technology.

It didn't go very well. I keep asking my about external sources to further advance my skill set in HTML, CSS, and Javascript. People keep getting back to me on codeacademy, which I am using (currently studying up on Python) but there's got to be some other sources. Does anyone have any great free tutorials that aren't just video tutorials but actual practice, besides codeacademy? Because I really bombed that interview and I'm expecting to graduate next year.
This morning I had an internship interview. Didn't got well. It was over Web development, which that and programming languages are what I'm attempting to accomplish for an internship for my undergraduate degree in Computer Information Technology.

It didn't go very well. I keep asking my about external sources to further advance my skill set in HTML, CSS, and Javascript. People keep getting back to me on codeacademy, which I am using (currently studying up on Python) but there's got to be some other sources. Does anyone have any great free tutorials that aren't just video tutorials but actual practice, besides codeacademy? Because I really bombed that interview and I'm expecting to graduate next year.
Member

Affected by 'Laziness Syndrome'

Registered: 08-07-12
Last Post: 3099 days
Last Active: 1144 days

07-15-15 12:30 PM
Yushe is Offline
| ID: 1186699 | 44 Words

Yushe
Level: 15


POSTS: 37/43
POST EXP: 1124
LVL EXP: 16139
CP: 56.5
VIZ: 2773

Likes: 0  Dislikes: 0
Sandvalanche : Just do what I did find a software like acmlmboard2 and see what you can do to it. (changing the css and php)

Also good luck with python if there is one tiny thing wrong with your code python will not want to work.
Sandvalanche : Just do what I did find a software like acmlmboard2 and see what you can do to it. (changing the css and php)

Also good luck with python if there is one tiny thing wrong with your code python will not want to work.
Member
ayy


Affected by 'Laziness Syndrome'

Registered: 04-09-15
Last Post: 995 days
Last Active: 990 days

01-01-20 07:12 PM
pennylessz is Offline
| ID: 1376188 | 30 Words

pennylessz
Level: 99


POSTS: 1993/2631
POST EXP: 134008
LVL EXP: 9693521
CP: 5594.5
VIZ: 317256

Likes: 0  Dislikes: 0
I didn't know this existed, does anyone who uses these languages even frequent this place anymore? I know Minuano has some experience, but there's some names here I've never seen.
I didn't know this existed, does anyone who uses these languages even frequent this place anymore? I know Minuano has some experience, but there's some names here I've never seen.
Vizzed Elite

Affected by 'Laziness Syndrome'

Registered: 02-10-10
Location: Within the wires.
Last Post: 127 days
Last Active: 2 days

Links

Adblocker detected!

Vizzed.com is very expensive to keep alive! The Ads pay for the servers.

Vizzed has 3 TB worth of games and 1 TB worth of music.  This site is free to use but the ads barely pay for the monthly server fees.  If too many more people use ad block, the site cannot survive.

We prioritize the community over the site profits.  This is why we avoid using annoying (but high paying) ads like most other sites which include popups, obnoxious sounds and animations, malware, and other forms of intrusiveness.  We'll do our part to never resort to these types of ads, please do your part by helping support this site by adding Vizzed.com to your ad blocking whitelist.

×