Jump to content


  • Posts

  • Joined

  • Last visited

RawDog's Achievements


Newbie (1/7)



  1. So I'm making a skeletal structure of a future personal website, and I've just recently gotten back into coding. However, I can't get rid of that little white gap. It appears when one <div> area is bigger than the other, and vice versa. I've even resorted to using Javascript to override the browser so it can maximize the height within the given area. Here's the CSS: /* CSS Document */[/left]body,html {margin: 0px;padding: 0px; height: 100%;}body {font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: #FFFFFF;background: #888888 url(http://i54.tinypic.com/5ciw50.jpg) repeat-y top; padding: 0px;}img {border: 0px;}form {margin: 0px;padding: 0px;}a {text-decoration: none;}#wrapper { background: #ffffff; width: 960px; margin: auto; display: block;}#header {background: #2A2A2A; margin: auto; width: 960px; height: 150px; margin-bottom: -11px;}#body {background: #A2A2A2;margin: auto; height: 100%; width: 960px; clear: both;}#submenu { background: #B2B2B2; height: 32px; width: 100%;}#column_1 { background: #8499A5; color: #ffffff; height: auto; width: 20%; margin-top: -11px; float: left;}#column_2 { background: #A58484; color: #ffffff; height: auto; width: 80%; margin-top: -11px; float: right;}#footer {background: #000000;margin: auto; width: 960px; height: 110px; margin-top: -11px; clear: both;} ...and the HTML of the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <link rel="shortcut icon" href="http://www.ultimate-rockstar.com/favi.ico" type="image/gif" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Explore tousands of creative innoventions ranging from user-submitted designs to endless galleries." /> <meta name="keywords" content="decafx, designs, gfx, graphics, photoshop, photoshop, brushes, paint, gradients, artwork galleries" /> <title>deCafx :: Welcome to artistic universe.</title> <style type="text/css" media="all">@import url(style.css);</style></head>[/left]<body> <div id="wrapper"> <div id="header">Please excuse this text. There will be much, much more to come – believe us. Muahahaha!</div> <div id="body"> <div id="submenu"> <a href="#">Image</a> | <a href="#">Image</a> | <a href="#">Image</a> | <a href="#">Image</a> </div> <div id="column_1"> <ul> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> <li>Link</li> </ul> </div> <div id="column_2"> <p>Hehe...body text.</p> <p>I love how you're reading this.</p> <p>You do realize that this is just filler...right?</p> <p>This is a total example of how NOT to design an iPod skin.</p> <p>Someday this will be a huge gallery. Watch.</p> <p>No no no - you don't keep reading silly!</p> <p>Fixed the margin corrections!</p> </div> </div> <div id="footer">The footer...yeah, I ######.</div> </div></body></html> Can anyone help me figure out what's wrong, and how to fix it please? I really appreciate it!
  2. Very sleek and nice! Orange isn't my colour, but you make it look great.
  3. <a href="java script:scroll(0,0);">Back to Top ^^^</a> That is what I currently use. But if I change the x,y values to something like 1000,1000 then it refreshes the page (I know why, because it's in a link). But is there any other way to do this w/o the huge JS scripts in the page? I just want it to scroll to a certain part of the page....
  4. But is it possible to edit it from the Database? There are billions of results, and having to edit each table every time something is inserted is rather long.
  5. This has been one million of times on other sites, but I still can't figure out how to do this. I want a search result that shows up as a link, not just plain text. I thought it came from the echo""; function, but I was wrong. Is there anyway to do this? Thanks!
  6. Ah, never mind, it was because it refused to play the .midi file.
  7. Thanks buoy.Announcement: Domain purchased! Start rockin!
  8. http://www.ultimate-rockstar.comScroll down to the bottom, and a QT player is there, but refuses to show the music. However, I went on W3's sample audio player, and it work. Help?
  9. IEFFI use cellpadding and cellspacing tags, and had set them to 0 (I use tables), and in Firefox they result in perfect outcome, but not in IE. I messed around with the site in IE, trying to figure out what's wrong. Here is to code: <html><head><title>Kingdom Hearts Media</title><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="switch.js"></script></head><body background="http://i40.tinypic.com/v67xfm.png" topmargin=0><table cellpadding="0" cellspacing="0" align="100%" border="0" align="center"><tr><td><table align="center" width="85%" height="80px" background="http://i44.tinypic.com/2ynfqld.jpg" cellpadding="0" cellspacing="0"><tr><td><img src="http://i44.tinypic.com/2qsql8w.jpg" border="0" /><a href="#"><img src="http://i43.tinypic.com/dha7er.jpg" border="0" /></a><a href="#"><img src="http://i42.tinypic.com/9qhizl.jpg" border="0" /></a><a href="#"><img src="http://i39.tinypic.com/se1475.jpg" border="0" /></a><a href="#"><img src="http://i39.tinypic.com/dgqueb.jpg" border="0" /></a><a href="#"><img src="http://i43.tinypic.com/n3riuo.jpg" border="0" /></a><a href="#"><img src="http://i44.tinypic.com/2a0q6b.jpg" border="0" /></a><a href="#"><img src="http://i42.tinypic.com/vpcmfa.jpg" border="0" /></a></td></tr></table><!--Logo--><table align="center" width="100%" cellpadding="0" cellspacing="0"><tr><td cellspacing="0" cellpadding="0"><a href="#"><img src="images/Logo Sample.png" border="0" /></a></td></tr></table><!--Content--><table align="center" width="85%" height="900px" background="http://i42.tinypic.com/30to3k0.jpg" cellpadding="0" cellspacing="0"><tr><td></td></tr></table></td></tr></table></body></html> Can anyone help? Thanks!
  10. I had to take it off. :/
  11. <html><head><?phpif (isset($_POST['submitted'])) {$errors = array();require_once ('mysql_connect.php');if (eregi('^[[:alnum:]\.\'\-]{4,30}$', stripslashes(trim($_POST['username']))) ) {$user = mysql_real_escape_string($_POST['username']);$query = "SELECT username FROM users WHERE username = '$user'";$result = @mysql_query($query);$num = @mysql_num_rows($result);if ($num> 0) {$errors[] = '<font color="red">The username you have chosen has already been taken, please try again.</font>';} else {$username = mysql_real_escape_string($_POST['username']);}} else {$errors[] = '<font color="red">Please provide a valid username between 4 and 30 characters.</font>';}if (!eregi('^[a-zA-Z]+[a-zA-Z0-9_-]*@([a-zA-Z0-9]+){1}(\.[a-zA-Z0-9]+){1,2}', stripslashes(trim($_POST['email'])) )) {$errors[] = '<font color="red">Please provide a valid email address.</font>';} else {$email = mysql_real_escape_string($_POST['email']);}if (!empty($_POST['password1'])) {if ($_POST['password1'] != $_POST['password2']) {$errors[] = '<font color="red">The 2 passwords you have entered do not match.</font>';} else {$password = $_POST['password1'];}} else {$errors[] = '<font color="red">Please provide a password.</font>';}if (empty($errors)) {$a = md5(uniqid(rand(), true));$query = "INSERT INTO users (username, email, password, active) VALUES ('$username', '$email', SHA('$password'), '$a')"; $result = @mysql_query($query);if (mysql_affected_rows() == 1) {// Send the E-Mail$body = "Thank you for registering at the User Registration site. To activate your account, please click on this link:\n\n";$body .= "http://-sbfx-.freehostia.com/activate.php?x=" . mysql_insert_id() . "&y=$a";mail($_POST['email'], 'Registration Confirmation', $body, 'From: admin@sitename.com');// Show thank you messageecho '<h3>Thank You!</h3>You have been registered, you have been sent an e-mail to the address you specified before. Please check your e-mails to activate your account.';} else {echo '<font color="red">You could not be registered, please contact us about the problem and we will fix it as soon as we can.</font>';}} else {echo '<h3>Error!</h3>The following error(s) occured:<br />';foreach ($errors as $msg) {echo " - <font color=\"red\">$msg</font><br />\n";}}}?></head><body>Please register. <hr /><h3>Register</h3><form action="<?php $_SERVER['PHP_SELF']; ?>" method="post"><p><input type="text" name="username" value="<?php if (isset($_POST['username'])) echo $_POST['username']; ?>" size="30" maxlength="30" /> <small>Username</small></p><p><input type="password" name="password1" size="30" maxlength="40" /> <small>Password</small></p> <p><input type="password" name="password2" size="30" maxlength="40" /> <small>Confirm Password</small></p><p><input type="text" name="email" size="30" maxlength="30" value="<?php if(isset($_POST['email'])) echo $_POST['email']; ?>" /> <small>Email Address</small></p><p><input type="submit" name="submit" value="Register" /></p><input type="hidden" name="submitted" value="TRUE" /> </form></body></html> <?phpif (isset($_GET['x'])) {$x = (int) $_GET['x'];} else {$x = 0;}if (isset($_GET['y'])) {$y = $_GET['y'];} else {$y = 0;}if ( ($x> 0) && (strlen($y) == 32)) {require_once ('mysql_connect.php');$query = "UPDATE users SET active=NULL WHERE (user_id=$x AND active='" . $y . "') LIMIT 1"; $result = mysql_query($query);if (mysql_affected_rows() == 1) {echo "<h3>Your account is now active. You may now log in.</h3>";} else {echo '<p><font color="red" size="+1">Your account could not be activated. Please re-check the link or contact the system administrator.</font></p>';}mysql_close();} else {echo '<b>Activation link not valid!</b>';}?> <?php// CHANGE THESE VALUESDEFINE ('DB_USER', 'database username');DEFINE ('DB_PASSWORD', 'database password');DEFINE ('DB_HOST', 'localhost');DEFINE ('DB_NAME', 'database name');$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error());@mysql_select_db (DB_NAME) OR die('Could not select the database: ' . mysql_error() ); ?> CREATE TABLE users (id INT(11) NOT NULL AUTO_INCREMENT,username VARCHAR(30) NOT NULL,password CHAR(40) NOT NULL,email VARCHAR(70),active CHAR(32),PRIMARY KEY(id)); 1. HTML Form File2. PHP Form File3. MySQL Connection File4. MySQL DatabaseThe problem is that I followed the exact instructions on the website I've seen, but the PHP shows in the browser for some odd reason. I didn't detail my DATABASE characters, becayse I want to test the .php files first. This is the result I get...http://-sbfx-.freehostia.com/account.phpThe <php> codes show, and that's not what I want. Help?
  12. Thanks ^^ Well, the problem is that last time I did that, I had to change every page, because all my links were linked ot the hosting account and not the .com domain. :/
  13. RawDog

    [wip] My Site

    I really enjoy the slide effect, it works very well with no waiting or loading on FF! Looks great for something that WIP, and makes sure to add a lot of content, since the main area itself looks small.
  • Create New...