-
Posts
403 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Sniffy
-
-
Whoa, regexlib might come in handy, thanks.
-
Yeah, it is the support forums.
-
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.
-
I don't think they import from eachother, your favorites is probably stored somewhere inside the computer and the browsers extract from that.Well they ARE allowed to import Favrourites or Bookmarks from each other arent they? -
Give me some examples of other uses please. :)Thanks for the answer as well though.
-
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.
-
Yeah, it seems to be pretty popular.Don't you have to pay to be a premium member?
-
This is not the World Wide Web Consortium forums, it's the W3S forums!W3schools is different from W3C....Maybe you made a mistake.Anyways, welcome.Welcome to W3C forums!!! -
http://experts-exchange.comGet support or support others.
-
I don't know what's wrong with it but here are the errors.
-
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
-
Maybe it was too soon to get suggestions, and I guess I shouldn't hijack, so yeah.
-
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?
-
Well, I guess that would be good as well, but we'd have to see it in use before finally making a decision.
-
Personally, I'd do what boen_robot said.It's just, when you haven't visited a page there's a faded arrow pointing up.
-
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.
-
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.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? -
Thanks, now I know how to stop some idiot from taking all the info out of user text files.Its a file where you can control other files, you can password protect directories and files, and a bunch of other things. Go google it . -
Since I started I cannot answer this problem, but I can still comment. I never knew preg_match() had to have the // delimeters.So would ereg_match() work for ## delimeters?And yes I did know that you would post next.
-
So I'll be able to use it in XHTML?
-
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.
-
Is your image on awardspace or on your local desktop?
-
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.
-
Wait, I think I can use this.
<html><head><style type='text/css'>p.scrollyes{width: 100;height: 50;overflow: scroll;}</style><</head><body><p class='scrollyes'>Hello<br>World<br>Hello<br>World</p></body></html>
I publish a site
in General
Posted
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.