Jump to content

Sniffy

Members
  • Posts

    403
  • Joined

  • Last visited

Posts posted by Sniffy

  1. I won't tell, but I don't recommend taking away the ads. If the advertisers see that too many people have free hosting but with no ads, while they're paying the admin of the free host, they'll be pretty pissed and the admin will have to cancel the free hosting. Just think about it.

  2. Pretty good for a first but your site needs quite a bit of work. Did you get into much CSS yet?http://www.w3schools.com/css/default.aspEven just styling the anchors black and with an underline when a user hovers over them would make the site a lot better.I'd put the site inside a table too.With your anchors on the left, the image with the description above it in the middle, and maybe some advertisements/misc on the right. It can be left blank too if you want.Really nice for a first by the way. :)

  3. getElementById() is used for an easy way to access and modify things in the document.Example:

    var tb = document.getElementById("my_table");var body = document.getElementByTagName("BODY");if(tb.parentNode == "body"){document.write("The table is in the right place");

    You're asking for a specific table that has a parent of body, meaning it's not embedded in any tags.You can probably get the same result with getElementByTagName() and a loop but that's what getElementById() can be used for.

  4. Okay, rather than hijacking someone else's topic(:)), this is my thread for my site problems.First off, I'm trying to position my main content in a box with a scrollbar. It's skinned and works fine on my local desktop, but when I publish it the text turns black and isn't positioned correctly. I'm really bad at making layouts, so if you can help me, that'd be great.css

    body{background-color: #101228;background-image: url(I:\bobsite\layout5\images\body_bg.gif);  background-attachment: fixed;  background-repeat: no-repeat;}#main{  color: #fff;  font-family: Palatino Linotype;  font-size: 12px;  background-color: transparent;}#content{  overflow-y: scroll;  position: absolute;  top: 205px;  right: 215px;  color: #FFF;  font-family: Palatino Linotype;  font-size: 12px;  text-align: justify;  idth: 300;  height: 150;w}.menu{  position: absolute;  top: 235px;  right: 0px;  width: 100%;  height: 100%;  text-align: center;}.menu a{  color: #FFF;  font-family: Comic Sans MS;  font-size: 11px;  text-decoration: none;}.menu a:hover{  text-align: center;  color: #FFF;  font-family: Comic Sans MS;  font-size: 11px;  text-decoration: underline;}#squareStar{  background-color: #21233D;  position: absolute;  right: 5px;  top: 205px;  width: 210px;  height: 150px;}

    html(index.php)

    <!--<?phperror_reporting(E_ALL);?><?phpif(isset($_COOKIE['admin']))$adminCheck = "<font face='Comic Sans MS'>Welcome back,".$_COOKIE['admin'].".<br><a href='updateIndex.php'>Update the FrontPage.</a></font>";else$adminCheck = "<a href='adminLogin.php'>Admin Login</a>";?>	--><html><head><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><div id='main'><div id='squareStar'></div><table cellspacing='0'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a><br><a href='adminLogin.php'>Update Index</a></div></td><td width='600'><div id='content'>Hello, welcome to my portfolio.<br>It's currently under construction.<!--<?php$fileName = "/home/www/sniffy.awardspace.com/updates.txt";$fileHandle = fopen($fileName, 'r')or die("Could not open file");$fileContents = fread($fileHandle, filesize($fileName));fclose($fileHandle);echo $fileContents;?>	--></div></td><td width='200'><div class='menu'><!--<?phpecho $adminCheck;?><br><?php$counterF = "/home/www/sniffy.awardspace.com/counter_homepage.txt";$counterH = fopen($counterF, 'w+')or die("Could not open file");$counterR = intval(fread($counterH, 5));fwrite($counterH, intval($counterR+1));fclose($counterH);echo $counterR;?><!--<?php$length = filesize($counterF);echo "filename: \"{$counterF}\"<br>";echo "length: ";var_dump($length);?>--></div> </td> </tr> </table.</body></html>

    Sorry for messyness in index.php, but I'm converting it over from my old files and it's taking work. :)http://sniffy.awardspace.com

  5. Sounds good.Perfect.Just since we're talking about layouts, I've been starting my own design, and it's coming along good.I'm going to put a link to it in my signature but I'll put it here too.http://sniffy.awardspace.com1024x768 view.Everything past the 800 mark was coded in css, meaning the rectangle running off the page and the navigation.Suggestions where I should put my content, maybe inside the star with a scroll overflow?But what should I do with the rest of the space?

  6. I think vchris means like 'new additions' of his templates that he makes.To vchris: Make the new additions text orange like boen_robot said, but h-center it over the thumnail and align to the top with the welcome to my portfolio sign.

  7. Sniffy: I've tried some kind of border around the yellow text and it doesn't work, like boen_robot said, it doesn't fit with the design. What do you mean by spacing the welcome to my portfolio text?
    Increase the length of the content area, and drop the main content(dates and entries) downward.|===WELCOME===|| || || || || || ||===CONTENT===|And I'm not sure if boen_robot was trying to imply this or not, but put a thumbnail with a link to some of your examples of past work and stuff in that space.
  8. Add a some sort of fading border around the yellow text in the content area, and space "Welcome to my portfolio" a little more upwards by increasing the length of the content box.

  9. If you want to make several buttons for each id then use this:

    <html><head><script type='text/javascript'>function makeHide(id){document.getElementById(id).style.display = "none";}function makeShow(id){document.getElementById(id).style.display = "inline";}</script></head><body><a href='...' id='...'>....</a><input type='button' onclick='makeHide(...)' value='...'><input type='button' onclick='makeShow(...)' value='...'></body></html>

    Change ... according to your document.Now, if you want to make all elements show/hide on the clicks, then use either of these codes.

    <html><head><script type='text/javascript'>function hide(){document.getElementsById("your_id").style.display = "none";}function show(){document.getElementsById("your_id").style.display = "inline";}</script></head><body><input type='button' onlick='hide()' value='Hide'><input type='button' onclick='show()' value='Show'><a href='...' id='your_id'>...</a><a href='...' id='your_id'>...</a></body></html>

    <html><head><script type='text/javascript'>function hide(){document.getElementsById("your_id1").style.display = "none";document.getElementsById("your_id1").style.display = "none";}function show(){document.getElementsById("your_id1").style.display = "inline";document.getElementsById("your_id2").style.display = "inline";}</script></head><body><input type='button' onlick='hide()' value='Hide'><input type='button' onclick='show()' value='Show'><a href='...' id='your_id'>...</a><a href='...' id='your_id'>...</a></body></html>

    Good Luck!Oops, just change the <a> to your divs.

×
×
  • Create New...