Jump to content

Err

Members
  • Posts

    1,009
  • Joined

  • Last visited

Posts posted by Err

  1. Hi.I was wondering if anyone knows an easier way to use the php include on sub-directories in a site. Currently the way I have it set up is I have 2 documents which contains links (and other content) for the site that are almost exactly the same that are called by the php, one for the main directory (./) and another for the sub-directory, (./subdir/) both of which are located on the main directory, the only difference between the 2 documents are in the relative links where I would have to put ../ to reference back to the main directory (e.g. ../main.php) while the other document could stay at ./ or just the regular main.php. I know I could have one document and have just ../, where it would link back to the main directory regardless, but I don't want to do that as if I wanted to add another sub sub-directory I would have to add ../../ to the links in it again; I'm not willing to do that each time, as it's not practical. Do you understand what I'm trying to say? So is there an easier way of doing this without having to have 2 separate documents? My goal is to only have 1 document which the php calls for every time without any relative linking problems.Thanks for reading.

  2. That won't happen. The user will need the username AND password of your account in order to fully access your account. You can make it a private account so that anyone who does back-link to your account will need to login to even see your images. You can do this by clicking on "Account Options" near the top of your page next to your username. Than scroll down if necessary and find the radio buttons right after "Make public" and select the "No" option. Than click on the "Update" button. That should solve your problem. Don't forget that if you already logged in than your browser keeps a history of that and doesn't require you to login next time... until you log out.

  3. JavaScript can still do some damage nowadays even with better browsers. Take gnaa.us for example, when you click on their "Members" link you get attacked with JavaScript scripts and shock images (I have only tried it with Firefox and it almost crashed my computer). I'm not suggesting anyone actually going there, I'm just saying that JS can do some damage.

  4. CSS can solve that problem. You don't have to manually add that code to every <td> tags in the page with this code. The below code targets ALL <td> tags and applies the styles to it. css:

    <style type="text/css">td {  border-collapse: collapse;  border-top: 0px solid #00376F;  border-right: 1px solid #2D6298;  border-bottom: 1px solid #2D6298;  border-left: 0px solid #00376F;}</style>

    Do you where to add this css code?

  5. Hmm... give this a try.In the table where the navigation is add a css class, say like:<table class="navi">Than, in your css put:

    .navi td {  vertical-align: top;}

    If that doesn't work, you can try and do the same for the parent table also.

  6. Between your <head> and </head>. Like so:

    <html>[b]<head>[/b][color="red"]<style type="text/css">a {  color: blue;  background: red;  display:block;  height: 100%;  width: 100%;}a:hover {		  color: red;  background: blue;  display:block;  height: 100%;  width: 100%;}</style>[/color][b]</head>[/b]<body></body></html>

  7. Have you tried to "block" the images? A lot of the times you will get that gap even though your image and cell are the exact sizes.css:

    td img {  display: block;}

    Try that out. :)

  8. Try this:Edit your "nav" with the below css and add the .menubutton img style to your css. That should clear up your layout a little. I would also suggest that you use <p></p> tags instead of <br> tags for your text.css:

    #nav {	width: 830px;	margin-left: 23px;	margin-top: 7px;	margin-bottom: 35px;	position: relative;}.menubutton img {	margin: 0;	display: block;	padding: 0;	text-align: left;}
  9. am i missing somehting simple between local viewing and web viewing ?
    Are the images/documents you are trying to get to on the web or on your local computer? Make sure you have uploaded everything to your web/host (not your computer) to ensure that everything will work.Make sure you don't have anything like this in your code:C:\Documents and Settings\administrator\Desktop\img_of_dog.jpgThis is what it's really suppose to look like on the web:http://www.example.com/img_of_dog.jpg
  10. I do not believe that the <img> tag code will be invalid if you don't add the height and width to them. The height and width on an image is really optional, they are just added there to make sure your intended size for the image stays even if you lose the image its self. :)

  11. You can't use <img src="#">? That would be the best way to display an image without a height or width... but I'm assuming you already knew that. However I don't think there is a way for you to do what you are asking.

  12. Have you tried attaching a class or id to your <h3> tag and css? like:css:

    h3.header {font-family: "Edwardian Script ITC"}

    html:

    <h3 class="header">This is header 3</h3>

    Try that and see if that helps.

×
×
  • Create New...