39 Posted Topics
I am writing a program that makes hands of five cards, and tests them against poker combinations. Wikipedia says you have a 1/254 chance in getting a straight, but I get an abysmally small mount of straights in each run. (around 50 in one million hands). Can anyone tell me … | |
I have this contact form that I use for everything and for some reason it is not working on this one site. If you could visit it and see what is wrong. http://www.spencedesign.netau.net/lori/me.html the php code is here <?php $field_name = $_POST['cf_name']; $field_email = $_POST['cf_email']; $field_message = $_POST['cf_message']; $mail_to = … | |
How can I make the menu more fluid than it is now, you will see what I am talking about when you see the fiddle http://jsfiddle.net/jspence29/wCXB5/ | |
Re: I'm not a pro at javascript, but it would seem that it just takes the elements table and returns that as a ul, and then it takes the li and turns that into an array(list). And then just replaces the whole code and turns it into a list. var list … | |
I am making a program that does synthetic division, except for it is not showing the quotient only the remainder. I have checked my for loops so many times, and I can't understant what is happening here is my code: import java.util.*; import java.lang.*; class synthetic { static Scanner userInput … | |
Re: Whatever anyone says DON'T GO ON W3SCHOOLS. It is not associated with W3 even though it says it is. Read http://w3fools.com/ There are plenty of other tutorials than w3schools. I think the best way to become a profficient web designer in HTML and CSS at least is to just dive … | |
I can't figure out why my java applet is not displaying, I have all of the files in the same folder, and I have java enabled on my browser. Here is the code //java code import java.applet.*; import java.awt.*; import javax.swing.*; /** * The HelloWorld class implements an applet that … | |
I am writing a program, and the solution I have involves deleting certain elements from an array until there are none. My code is below, but the error it shows is no return statement. This is because I don't have an else statement for some ifs, does anyone know how … | |
I can't figure out why my nivo slider is not showing, the link to the jsbin is here http://jsbin.com/opucok/4/edit. I followed the directions in the nivo website exactly, and the slider works when it isn't with the rest of my html and css code. | |
What I am trying to do is make a program that reads a txt file and converts the number into a double array. import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class rocket { public static void main(String[] args) throws IOException, FileNotFoundException { System.out.println(readLines("/Users/Jeremy/Documents/workspace/altitude.txt")); } public static Double[] readLines(String … | |
Throughout working on my project I think I created a simple clean and easily customizable gallery. <html> <head> <title> Singapore - Home </title> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <style> * { margin: 0; padding: 0; } body { background: url('woodbackground.jpg'); background-size: cover; min-height: 100%; min-width: 100%; position: relative; top: … ![]() | |
My site is www.jeremyspence.net78.net. As you scroll down I want to make the main menu dissapear(the one menu you see now) and another smaller menu (kinda like the apple menu from apple.com) appear on the top that is fixed, I was thinking about making a sticky menu, but I want … | |
Re: You can always define your image width in the image tag. Look at http://www.computerhope.com/issues/ch000055.htm | |
I have a one page website http://spencedesign.netau.net/SNL/SNL.html#home I am using anchors and targets, I am using overflow-y: auto; but the scroll bar only displays when the screen is big enough, so it works on my 1920 by 1080 desktop, but not on an average size laptop, how do I make … | |
How can I make a table 100% width. For example, here http://spencedesign.netau.net/SNL/SNL.html#page3 I want this table to be the length of the panel, but I can't figure it out. I tried making the trs 100%, I tried just making the table 100%. I thought about changing the padding and the … | |
I am trying to get an animation, like the one at http://tympanus.net/Tutorials/TypographyEffects/index6.html But for some reason it is not animating at all. Is there any fix for this? My code is <DOCTYPE html> <html> <head> <title> Saturday Night Live </title> <style> body { background-image: url('http://images.fanpop.com/images/image_uploads/SNL-Wallpaper-saturday-night-live-784022_1024_768.jpg'); background-size: cover; } .letter-container h2 … | |
My facts link is smaller than the rest for some unknown reason? http://spencedesign.netau.net/singaporehome.html | |
Re: Please give some code with the third button ^ | |
If you look at the box shadow inset here http://spencedesign.netau.net/singapore-tour.html#/intro You can see that it is at 100% and goes all the way down no matter the size of the page, but I can not seem to recreate it here http://spencedesign.netau.net/singapore-author.html it is using the same code. I do not … | |
Re: http://www.slidesjs.com/ | |
Can someone please tell me why there is extra white space to the right, and why the border around the page doesn't go to the bottom! My link is http://spencedesign.netau.net/singaporehome.html There was no whitespace when I had the links in a ul, but now that I put them into divs … | |
For some reason I can't move one of my div tags, the gallery one. It looks just like all of the rest of the divs that move fine with absolute positioning. My website is http://spencedesign.netau.net/singaporehome.html If you look at the code it is obvious that the gallery is not moving. … | |
Re: Looks like it works, unless you are talking about the box around the images, and in that case just use a display block with padding, and a CSS3 radius | |
Re: Make sure you declare a doctype, and check to see if the tags are all there. Sometimes you will forget an end tag, and some browsers/computers will automatically put one in there, and then some won't | |
Re: Yeah just make an image map, Or I suppose you could use a block? Depends on what you want the button to look like, and how big | |
I am trying to make a website page that looks roughly like this. All the DATA is at http://spencedesign.netau.net/singaporehome.html I don't understand why I can't just move the pictures around with absolute positioning, usually that overrides everything.  My code is ul#gallery { list-style: none; width: 1300px; text-align: center; … ![]() | |
In my page I want it so that when you resize the page past the point of the pictures, that the pictures will go into another row, all the way so each picture has it's own row. And then potentially I won't need any media queries. But unfortunaltely I can't … | |
How can I change the size of the pictures in this example http://codepen.io/anon/pen/IDKAo I am making a photo gallery with this effect, and I need to change the size of the pictures, can anyone help? It is a pretty complex css so I understand if you can't. | |
I recently just added a grid layout, but I can't figure out how to make my links work. The grid that I used is the 1140 one at http://cssgrid.net/. I studied the source code of that website, and tried to make my page like theirs, but when I put everything … | |
Can anyone tell me how to format my website so it looks the same in internet explorer as it does in google chrome? Normally when I make a website I format it for IE with only a slight annoyance, but now I can't forgure out how to my website is … | |
So I am creating a website on singapore for my class. And I just finished one page, and I decided to play around with favicons. I am using a web host called 000webhost.com And I created a favicon for my page, but the problem is now the favicon is applying … ![]() | |
Re: I would use notepad++ or dreamweaver if you need an editor. Personally I think that it might seem like it makes it easier to code, but in the long run it is more complicated. I just use plain notepad, or I just put it into my FTP and do it … | |
Re: Well you could use overflows, min/max's or percents, but I think it is much simpler, and more easily personalized if you use things like @media screen and (max-width:320px) { .sidebar { display: none } } @media screen and (min-width:1920px) { body { font-size: 15px } } or just a whole … | |
So for my website I am trying to create a more button, and a menu will pop up when I create this. There is a picture of an arrow for more, and a picture of a down arrow for less. I have the javascript code done, but it won't switch … | |
Re: XHTML strict doesn't allow some attributes that XHTML transitional does such as target="_blank" | |
Re: If you were really born in 1997 then that site is really impressive, it is impressive nontheless, but being that young is astounding. | |
So you guys were so helpful yesterday that I thought I would ask another question. There is unnecissary white space on the right side of the page, you can't see it until you scroll over to the right, But I have no Idea why it is there. My website is … | |
I had just began building a website. I don't know what is wrong with it, it was working about two seconds ago then I made a minor change and refreshed the website and the css completely stopped working. Here's my code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html … |
The End.