Jump to content
xisto Community

jlhaslip

Members
  • Content Count

    6,070
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by jlhaslip

  1. No, you can't have html in a css stylesheet. The stylesheet acts upon an html file only. Define the html on a page and then point to the css file using a link tag. You can have several css files act upon a single html page, though. Typically, one for screen output and one for printing are the most common.
  2. What is the definition of a Triangular Number? It has been a while since I have studied Math, so there must be a definition I am not aware of.
  3. Did a phpinfo. Safe mode = off and sockets are enabled.
  4. Icemarle, Relax. If you place its cage somewhere near where you think he might be, it will (should) go back to it because that is where it gets fed and watered. Might take some time, though. Don't expect it to happen in 10 minutes. Maybe overnight.I had a pet raccoon once. It got loose while my parents were painting the house and got into the heat ducts. Stayed there for 4 days. Made a terrible racket walking around in there all night, but eventually came out because we didn't place food where he could reach it so easily. He had to climb out and walk across the room to get his food, so we set a trap which didn't catch him, but closed off the heat ducts.Basil will come back, don't worry.
  5. I'm pretty sure my future job will be alot like my current job. I am a Carpenter and build things. I quite enjoy it for the most part. Something new every day. And I am too old to re-train, so I'll just hang in there for a bunch more years.
  6. But Tyssen's point is work considering. If you can do something without using the Global variables, your site will be more secure. They are set to be off for a reason on most Hosts.
  7. Here is a version of a script which I use to set the include from a query string. Notice that I check to see if the file exists and it also checks an array of acceptable values otherwise the include is set to index.txt as a default. $submit = $_GET ;if( !isset($_GET ) ) { if (file_exists($data_array[0] . '.txt' )) { include ( $data_array[0] . '.txt' ); } else { include ('index.txt'); } } elseif (in_array($submit , $data_array)) { if (file_exists($submit . '.txt' )) { include ( $submit . '.txt' ); } else { include ('index.txt'); } } else { if (file_exists($data_array[0] . '.txt' )) { include ( $data_array[0] . '.txt' ); } else { include ('index.txt'); } }?>
  8. Yes, those are all good characteristics of a file manager/sitemap script. One of the issues which determines the scripts I post in the Tutorial Section is their relative in-completeness. This allows users to customize them and develop their own php scripting abilities. This script is in no way complete, I agree, but maybe someone would be able to use it and expand it with their own enhancements to do exactly what they want.
  9. Have you checked out the Xisto - Web Hosting plans yet? There are some pretty good ones there, too. Reasonably priced.There seems to be a lot of sellers out there offering lots of space for their accounts, but is it dedicated space? Might want to check on that.Also, try to determine what your actual needs are for Space and Bandwidth. Why hook up to a plan offering 5 gigs storage and a gazillion gigs of Bandwidth if you won't need most of it. Better to find a reasonably priced service that meets your needs and allows for upgrading at a similarly reasonable cost than hook up to a service which promises you the world and might not be there next month.
  10. I'm sorry you had such a poor experience on Ebay. At least you got the goods. I have found most sellers are pretty good about communicating, but every once in a while you run into a situation like this.Best advise I can give is to be certain to read the Seller's feedback before you bid and determine the attitude they have towards negative and or neutral Buyers. Also, watch for negatives in their feedback, of course.There is never any guarantee that the seller is legitimate, but their Feedback ratings will give you an indicatioin of how they respond to Buyers and problems. Hope the skirt looks good.
  11. make it 1 px wide by 1 px high and place it low on the page hidden in the footer.
  12. Well, it might just be the Browser I am using, but SM's looks too washed out and is lacking detail on the render. AD's has better content and a nicer background, in my opinion.Looks like AD takes it. Congrats to both of you for displaying your fine work here.
  13. I think Yahoo Small Business still has a deal on their domain registrations. $2.99 per year.
  14. Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another script for the members to enjoy.This one creates a list of links from the contents of the directory which it is run from. For instance, if you run it from the public_html folder, then all the files (not the Directores) are listed and linked so when you click on the link, that file is parsed and output to the browser.Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;<html xmlns="w3.org/1999/xhtml/; xml:lang="en" lang="en"><head> <title>An XHTML 1.0 Strict Page to List the files in this directory</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /></head><body> <p>... Your HTML content here ...</p> <?php//dir_list.php$default_dir = "./"; // lists files only for the directory which this script is run fromecho '<div id="link_div"><ul>' . "\r\n\t";if(!($dp = opendir($default_dir))) die("Cannot open $default_dir.");while($file = readdir($dp)) { if(is_dir($file)) { continue; } else if($file != '.' && $file != '..') { echo '<li><a href="' . $file . ' " class="link_li" >' . $file . '</a></li>' . "\r\n\t"; }}closedir($dp);echo '</ul> </div>';?> <p>... Your HTML content here ...</p> <p> <a href="validator.w3.org/check?uri=referer the xhtml</a> </p> </body></html> If you save it as the index.html file for the public_html folder of your account and alter the .htaccess file for the account to parse html as php, then the script will list out all the files in the folder as links. Alternately, if you use it as a page on your site, then it will create a 'sitemap' of all the files in that folder.Use it freely. I hope it helps someone. Enjoy.
  15. $900,000 damage? That's peanuts compared to what an F-18 does in one bombing run... Can you spell p-a-r-a-n-o-i-d.
  16. Found this today. Might work. "<iframe src="place correct url here.html" width="176" height="220" name="inline" scrolling="no" border="0" frameborder="0" marginwidth="0" marginheight="0" allowtransparency="true"></iframe>"
  17. See Mich, you know more than you like to pretend you do... atta gurlie...
  18. Nothing to do with the problem posted, but what's with the tilde at the end of this line? $connection = mysql_ connect('localhost', 'username', 'password') ~or die ('Unable to connect!'); And the spaces in the variable names aren't going to go well with the php parser while($ row = mysql_ fetch_ row($ result))$result = mysql_ query($ query) ~ // another tilde chaacter here???if (mysql_ num_ rows($ result) > 0)
  19. Probably we should, yes. I'll issue myself a warning in the morning. Something to look forward to. In the meantime, check this out : http://www.w3schools.com/tags/tag_iframe.asp Look at the frameborders and scollbar attributes. Might answer your question. and Iframes won't work with a 'strict' Doc Type, so use Transitional.
  20. If he 'includes' a sidebar onto the page, the border (or lack of border) can be controlled using the css for the page, whether embedded or in a stylesheet. ie: div { border: 1px solid #000088;} in the css file would produce a thin Blue border and div { border: 0px} would produce no border.
  21. Instead of Iframes, consider using php includes to have the file 'included' as a part of your site. That way, the file can be just another page element (ex: div) on the page and use css to style it.
  22. Yes, somewhere in the script you are referencing a file which is stored at the root folder as indicated by the slash '/' and you do not have permission to do that on the Xisto server. Probably was okay on the local machine used to write and test the script,but the reference will have to be re-written for the trap.Of course, I could be wrong...
  23. Here, catch ... <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Test</title><script type="text/javascript"><!--window.onload=montre;function montre(id) {var d = document.getElementById(id);for (var i = 1; i<=10; i++) {if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}}if (d) {d.style.display='block';}}//--> </script> <style type="text/css"><!-- body {margin: 0 auto;padding: 0;background: silver;font: 80% verdana, arial, sans-serif;}dl, dt, dd, ul, li {margin: 0;padding: 0;list-style-type: none;}#menu {position: absolute;top: 5;z-index: 100;}#menu dl {float: left;width: 8em;background: #7F7C75;margin: 0 1px;}#menu dt {cursor: pointer;text-align: center;font-weight: bold;background: #7F7C75;border: 1px solid gray;}#menu dd {border: 1px solid gray;}#menu li {text-align: top center;background: #7F7C75;}#menu li a, #menu dt a {color: #FEF2DC;text-decoration: none;display: block;height: 100%;border: 0 none;}#menu li a:hover, #menu dt a:hover {background: #000000;}#site {position: absolute;z-index: 1;top: 70px;left: 10px;color: #000;background-color: #ddd;padding: 5px;border: 1px solid gray; }a {text-decoration: none;color: #222;}--> </style></head><body><div style="margin: 0px auto; text-align: center;" id="menu"><dl><dt onmouseover="java script:montre();"><a title="Home" href="http://forums.xisto.com/no_longer_exists/ onmouseover="java script:montre('smenu1');"><font color="#fef2dc">Programs</font></dt><dd style="display: none;" onmouseout="java script:montre('');" onmouseover="java script:montre('smenu1');" id="smenu1"> <ul> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/ Men</a></li> <li><a href="http://forums.xisto.com/no_longer_exists/ Women</a></li> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; </ul> </dd></dl><dl><dt onmouseover="java script:montre('smenu2');"><font color="#fef2dc">Facilities</font></dt><dd style="display: block;" onmouseout="java script:montre('');" onmouseover="java script:montre('smenu2');" id="smenu2"> <ul> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; </ul> </dd></dl><dl><dt onmouseover="java script:montre();"><a title="Staff" href="http://forums.xisto.com/no_longer_exists/ onmouseover="java script:montre('smenu3');"><font color="#fef2dc">Activities</font></dt><dd style="display: none;" onmouseout="java script:montre('');" onmouseover="java script:montre('smenu3');" id="smenu3"> <ul> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; </ul> </dd></dl><dl><dt onmouseover="java script:montre();"><a title="History" href="http://forums.xisto.com/no_longer_exists/ onmouseover="java script:montre();"><a title="Contact" href="http://forums.xisto.com/no_longer_exists/ style="position: absolute; top: 0px; " src="test_files/greybar.jpg"><img style="position: absolute; top: 31px;" src="test_files/supportheader.jpg"><img style="position: absolute; top: 244px;" src="test_files/goldbar.jpg"><img style="position: absolute; top: 275px;" src="test_files/backgroundfade.jpg"><img style="position: absolute; top: 539px;" src="test_files/goldbar.jpg"></body></html> There were some pixels in the menu and the images which were side-shifting them. Absolute positioning isn't relly recommended for a beginning site, but what the heck, go for it...Next you will have to work on the Menu drop-downs. They didn't work for me, but I have an old decrepit Browser and nothing fancy like that works in it. it would help if you could post the link where you got the javascript coding from and someone could help sort that out, too. or maybe have a look for a Cascading Style Sheet solution. They work in all Browsers even if the javascript is turned off.
  24. Been there, done that, a few times. It won't get any easier to tell them later, only thing about that is you get to carry the weight of the not-telling, and all the guilt and stuff you are feeling, around by yourself. And they won't like to find out later any more than now, so best thing is to knuckle under, bite the bullet and let them know as soon as possible.Remember that these failing grades don't make YOU a failure. It only means that you didn't work hard enough or study the right amount this last term. With a bit of effort, and the knowledge of this experience of a failing term, you should do well in the same courses next semester. Good Luck on it.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.