Jump to content

DatDudeFuddPucker

Members
  • Posts

    11
  • Joined

  • Last visited

DatDudeFuddPucker's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="Hybrid.css" /> <style> </style> </head> <body> <style type="text/css"> body { background-image:url("Images/Games.jpg"); color: white; } #menu li { display: inline; } ul { list-style-image: url('Images/controller.png'); font-size: 30px; } div { width: 100px; height: auto; text-align: justify; } </style> <section> <div id="header"> <h1 align="center">Lets talk about video Games.</h1> <p align="center"> Hello, welcome to my video game discussion site. I made this site to promote the discussion about video games, amongnst video game lovers such as myself. I want this site to essentially<br> turn in to a place where fellow gamers can come to discuss their views on video games, strategies, preferences, issues etc... Anything that involves video games. Slowly as the site is constantly<br> grows and expands, I would like to add a section where individuals can pitch, discuss, and contribute to the ideas for their own video games. While I am a lover of all video games of all genres. <br> I have this issue with first person shooters. In my opinoin the market is over saturated with them. I want to bring back the RPG and Action genres. This is my first attempt at moving towards this <br> goal. So I call on all video game enthuasists to help me in this cause. We need more ideas entering the market. I want this site to act as a hub for the ideas of these individuals. This is just the start. <br>\ </p> <ul id=menu> <li><a href="registration.html"a>Register</a></li> <li>michael</li> </ul> </div> </section> <section> <h1>Video Game Consoles</h1> <ul> <li>Atari</li> <li>Nintendo</li> <li>Sony</li> <li>Microsoft</li> <li>Computers</li> </ul> <p> This is a paragraph, is it 300px? </p> </section> <section> </section> <script> </script> </body> </html body { background-color: black; margin: 0; padding: 0; } #header { float:left; width:100%; height: auto; background-color: black; } #footer { position: relative; float:left; width:100%; background-color: black; } #wrapper { float: left; padding-left: 200px; padding-right: 200px; overflow: hidden; } #leftbar { position: relative; float: left; width: 200px; background-color: yellow; right: 200px; margin-right: -100px; margin-bottom: -2000px; padding-bottom: 2000px; } #rightbar { position: relative; float: left; width: 200px; background-color: red; margin-right: -200px; margin-bottom: -2000px; padding-bottom: 2000px; } #content { position: relative; float: left; background-color: tan; width: 100%; margin-bottom: -2000px; padding-bottom: 2000px; } Ok yesterday when I left this in the cloud9 environment it was working fine. Everything was how I wanted it at that current time. Now when I came back to it after work the header of the main page is just stupid big. I don't know what is happening. It no longer fits in my screen. The site is far to big, and I have no clue how I can return it to what it was. Any help would be appreciated. Edit - I am sorry, I am sure you all can distinguish between the two, but just in case The top part of code is the actual html code, while the bottom portion is the CSS for that page. I simply do not know what is causing this page to be as huge as it is.
  2. I am using the onmouseover event. What I want essentially is when I put my mouse cursor over an input field, I want a pop up of some kind, in this case I am currently using the alert box, displaying an example of what kind of information I want people to put in the input field. That part works fine. The problem is that I discovered that the alert box has individuals required to hit ok to close the box. I want the alert box to disappear when I click on or remove the mouse from over the input field. I am guessing that I should use something besides alert box but I dont know what. Any help would be appreciated.
  3. <?php mysql_connect("localhost", "root", "1alphabet") or die("Connection Failed"); mysql_select_db("US_States") or die("Connection Failed"); $user = $_POST['user']; $password = $_POST['userpassword']; $query = "INSERT INTO test(name,password)Values('$user','$password')"; if(mysql_query($query)){ echo "inserted";} else{ echo "fail";} ?> so does that mean I would change it to this to make it work? or would i change it to (mysqli) and just leave it like that? <?php mysqli_connect ("localhost," "root", "1alphabet") or die("Connection Failed"); mysqli_select_db("US_States") or die("Connection Failed"); $user = $_POST['user']; $password = $_POST['userpassword']; $query = "INSERT INTO test(name,password)Values('$user','$password')"; if(mysql_query($query)){ echo "inserted";} else{ echo "fail";} ?>
  4. With the change Don E recommended it worked. I can input the information and it will store in the database. Now another question, can i change to mysqli or PDO in the code and it will work anyway? Or will I have to re-write the code entirely to accommodate those changes?
  5. <?php mysql_connect("localhost," "root", "1alphabet") or die("Connection Failed"); mysql_select_db("US_States") or die("Connection Failed"); $user = $_POST['user']; $password = $_POST['userpassword']; $query = "INSERT INTO test(name,password)Values('$user','$password')"; if(mysql_query($query)){ echo "inserted";} else{ echo "fail";} ?> Ok so on the second line where is says "root" I dont know if this is the correct user name to be using. This is the error i get when i run it. Any help? Parse error: syntax error, unexpected '"root"' (T_CONSTANT_ENCAPSED_STRING) in/home/ubuntu/workspace/insert.php on line 2
  6. <!DOCTYPE html> <head> </head> <body> <header> <script> functionScheduledEvent (evtdate, evtTitle, maxattendees, coordinator, phonenum, email, infour1) { this.evtdate = evtdate; this.ectTitle = evtTitle: this.maxattendees = maxattendees; this.coordinator = coordinator; this.phonenum = phonenum; this.email = email; this.infourl = infourl; } functionPrintEvent (){ document.write (" <p> You have scheduled an event name " + this.evtTitle); document.write (" that will occur on " + this.evtdate + " and allow up to " + this.maxattendees. "); document.write (" The event is coordinated by " + this.coordinator + " who can be reached at " + this.phonenum); document.write (" or by email at " + this.email + ". "); document.write (" More information about the event is available at <ahref='" + this.infourl + "'> + "</a></p>"); } functionValidate(){ with (document.evtForm){ evt = new ScheduledEvent (evtDate.value, evtTitle.value,, maxattenddes.value, evtCoordinator.value, phonenum.value, email.value, infourl.value); } with (evt){ evt.PrintEvent (); } return true; } </script> </header> <form name = "evtForm" method="post"> <table> <tr><td>Event Date: </td><td><input type="data" id="evtdate" /></td></tr> <tr><td>Title:</td><td><input id="evtTitle" /></td></tr> <tr><td>Maximum attendees:</td><td><input type="number" id="maxattendees" /></td></tr> <tr><td>Event Coordinator: </td><td><input id="evtcoordinator" /></td></tr> <tr><td>Phone Number (numbers only): </td><td><input type="tel" id="phonenum" /><td></tr> <tr><td>Email: </td><td><input type="email" id="email" /></td></tr> <tr><td>More info: </td><td><input type="url" id="infourl" /></td></tr> </table> <input type=submit value=Submit" /> </form> </body> </html> I have the code copied from my lab manual. I do not understand what I am doing wrong. Everytime I hit submit it just clears all the fields and the message that is supposed to come up does not come up. I would appreciate any help with this. I have just begun my learning of java script.
  7. check this site out please davej. Once again I am sorry if I am not describing what I want properly. http://flipp.ca/about/ Notice how the sidebar on the left side of the screen stays there regardless of what is clicked on it? The information or pictures or whatever the buttons link to is displayed to the right of the sidebar without the sidebar leaving the screen or the entire page reloading. This is what I am aiming to achieve. Perhaps it is reloading just doing it so fast I am not noticing it? Either way this is the desired effect I want for my site. Thanks once again.
  8. I see I was not clear enough on my intentions davej. I apologize. I have a side bar. In this side bar I want there to be options you can click on. Based on which option you click on I want the information displayed to the right of the side bar. I understand I am new to HTML and languages and such. Sorry for the confusion.
  9. Ok. I see I have a lot of learning to do. So I need to know HTML to make the webpage, but I also need to learn a java script language in order to manipluate the HTML to do what I want? Am I understanding this correctly? If I am which of the javascript langauges do you suggest I learn? Or rather if multiple are needed to do what I want which should I start off with?
  10. Okay thank you. So in your opinion should I be learning AJAX and JAVA instead of HTML if I want to make a webpage?
  11. Hello, I am new to this site so bear with me please if I ask for help that may have already been addressed in other topics. I apologize. Ok I am new to this HTML thing and I am sure there are far better ways to code what I want done. I just have no idea how to do what I am about to ask. I am sorry I cannot offer any more information on my problem, if anyone can help I would greatly appreciate it. Thank you. I know how to make a sidebar on the page. And I know how to make those options in the sidebar links. What I am confused on is how to make the link open up in the area next to the side bar. Just to make sure I am clear on my intentions with this question. I know how to make links open up in the same window as the link is clicked. Rather I want the links to open up within the same window and to the right of where the sidebar is. Perhaps its not links I should be using? If not please point me in the right direction. I appreciate it. Once again thank you.
×
×
  • Create New...