Jump to content

Minimeallolla

Members
  • Posts

    197
  • Joined

  • Last visited

    Never

Everything posted by Minimeallolla

  1. I'm using XHTML 1.0 Transitional and in a line of my code I have used: "<?php include ("drop_down_menu.php"); ?>" I've tried changing the file type to .html but it doesn't work either, unless I actually copy and paste the content in the index file. \= Is it XHTML 1.0 Transitional that doesn't allow this? I've previously worked with HTML 4.01 Transitional and it worked.
  2. In my heading div I have a drop down menu that has a position of 'absolute' but isn't aligned properly so I changed it to 'relavent' and now the div on the right side, that is using float, gets pushed in the center and before the start of the links in the drop down menu. If I dont use the position 'relavent' on my drop down menu div it isn't aligned properly but it seems only one div can be aligned accordingly. Is there any way I can have them both aligned properly? I'd show the code but its pretty big \=
  3. ): I mean't cookie/username not clock/time lol it was really late. Dont worry, I have abandon this and have started other things lol
  4. Ok thanks. I'm currently using Dreamweaver, but I'll take a look. [=
  5. Can someone help explain to me how I would go about embedding a javascript clock/time function code into a html submit form? Ok so this cookie asks for a username through a pop up on connection, I would rather use the information submitted by a username form instead and use it as a php cookie. // COOKIE FUNCTION STARTS HERE \\ function getCookie(c_name) { var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i<ARRcookies.length;i++) { x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^\s+|\s+$/g,""); if (x==c_name) { return unescape(y); } } } function setCookie(c_name,value,exdays) { var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()); document.cookie=c_name + "=" + c_value; } function checkCookie() { var username=getCookie("username"); if (username!=null && username!="") { alert("Welcome again " + username); } else { username=prompt("Please enter your name:",""); if (username!=null && username!="") { setCookie("username",username,365); } } } // COOKIE FUNCTION STOPS HERE \\
  6. That is what I was trying to say. I havn't coded php for a while now but from memory if a meta tag is outside of the head tag it wont redirect and cause an error, or something along those lines. Don't worry, I don't really need help in with php just yet (:
  7. @moa, sometimes that could interferre with head or meta tags? Certain bits of php/java belong in certain areas of head and body tags?
  8. Ok thanks heaps, I've taken notes and am open to any or all advice offered (: One more thing, if you know, instead of using the hover property, how would I go about using the onclick instead? I've tried "a.image:onclick img" and "a.image:on click img" but obivously no use. a.image:hover img { position: center; width: auto; height:auto; z-index: 10000; }
  9. Is there such a way that you could give a div a set width or height and then when that set width or height is reached make it auto from there.. \= eg #myepicdiv { width:250px; width:auto; height:250px; height:auto; } When content surpasses 250pixels it then self sets the width/height to auto. Is that possible?
  10. O: it worked (: thanks heaps XD. I'm only just recently starting out with css. A while ago I started coding moderte php and html but I never quite got around to learning javascript and css so I'm learning everything this time lol
  11. I had this problem when I was coding my first website. The solution was a code but I've forgotten it now and I cant access my backup files right now sorry just keep looking for codes/scripts. Also if your using a database or mysql some ftp servers can limit the characters.
  12. Why does this not work? If you copy those 2 slabs of code into 2 seperate files, one html and the other css, im sure you can see that one part of the css box is staying left and the other is meant to be aligned to the right or center not underneath and then right. How can I get it to look like its on one row not look like there is a hidden <br /> somewhere \= html <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Local_Host</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div class="center"> <div class="box_text"> <a href="">Register</a> <a href="">Log in</a> <a href="">Log out</a> </div> </div> <p></p> <div class="left"> left of the page. </div> <div class="middle"> This is the middle content where all the information goes. to test some of this stuff im just gonna type lots of stuff here. </div> </body> </html> css @charset "utf-8"; /* CSS Document */ body { background:#F1EDC2; } A:link { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:visited { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:active { COLOR: green; TEXT-DECORATION: none } A:hover { COLOR: blue; TEXT-DECORATION: none; font-weight: none } a > img { border: 0; } .center { text-decoration:none; text-align:center; } .box_text { border:0.5px; border-style:solid; border-color:#DAA520; margin-left:auto; margin-right:auto; width:90%; height:18px; background-image:url(papersuarething.jpg); text-align:center; padding:2px; } .middle { width:75%; height:750px; padding:2px; border:0.5px; border-style:solid; margin:5px; margin-left:15%; margin-right:auto; background-image:url(papersuarething.jpg); } .left { width:10%; height:250px; padding:2px; border:0.5px; border-style:solid; margin:5px; margin-left:2%; margin-right:auto; background-image:url(papersuarething.jpg); }
  13. <style type="text/css"> body { margin-left:25%; background:#5d9ab2 url(zoidberg_dance_animate.gif) no-repeat top left; margin-right:25%; background:#5d9ab2 url(zoidberg_dance_animate.gif) no-repeat top right; } </style> How can I do something like this? have 2 gif animations and a plain colour as the set background? The two gif animations on seperate sides of the page.
  14. I use 'XHTML 1.0 Transitional' as text/html merely because it enforces me to close every tag that has been opened and compose a much neater code. I think OCD kicks in when I try 'HTML 4.01 Transitional' and tags such as '<img>' are not closed as I'd like them to be '/>'. I use xhtml the exact same way as html only with additional closed tags.
  15. lol my bad, it was really late and I'm on a det laptop >.< well obviously pc is better than mac.. and I'm allergic to cats so there's your answer but then it's up to decide which is a variable for which. In theory non is superiorer, they are both equal, balanced and is entirely based apon personal choice?
  16. What is better though, strict or transitional. Take hirering for example, if both people had the same qualifications (this is not the best example but ohwell) one person had fluent in strict html and the other had fluent in transitional, which would be looked at with higher qualifications if any? Which is the perferred one?
  17. What is the difference between strict and transitional html? Also, why is strict superior and why is html perfered over xhtml?
  18. I've realised I worded that very badly. What I should have said was, in a html file, where should the [<? php include ("javascript_file.php")] go? I'm including a php file that is full of javascript to make the code more presentable, into a html file. I put it within the <head> tag
  19. It's been a while since I've done any coding and now I'm getting back into it. Just to double check, javascript within a .php file would be fitted after the head tag , but before the body tag?
  20. ok thanks, so its if(!$_POST['username'] || !$_POST['pass']) { not if(!$_POST['username'] | !$_POST['pass']) { ? lol
  21. To me, it seems perfect but I don't understand why it doesn't work ):
  22. I've coded an error variable thing to help with my login but it doesn't work and I am puzzled to why it does not. (>.<) error codes such as: <?php /* checks to see if forms are filled in, if not, create a variable that will be used later. if forms are filled in than the variable is nothing and nothing will be echoed therefore passing onto the next if statement and repeating. */ if(!$_POST['username'] | !$_POST['pass']) { $errormessage_didnotfillinform = ('<center>You did not fill in a required field!</center>'); } else{ $errormessage_didnotfillinform = (''); } ?> <html> <body> <!-- html such as the follow, goes here. --> <div align="center"><b>Log in</b> <form action="" method="post"> <table class="centered" border="0"> <tr><td>Username:</td><td> <input type="text" name="username" maxlength="40"> </td></tr> <tr><td>Password:</td><td> <input type="password" name="pass" maxlength="50"> </td></tr> <tr><td colspan="2" align="right"> <input type="submit" name="submit" value="Login"> </td></tr></table> </form></div> </body> </html> <?php echo ( $errormessage_didnotfillinform ); if ( $errormessage_didnotfillinform ) == ('') { echo ( $errormessage_accountdoesnotexist ); } if ( $errormessage_accountdoesnotexist ) == ('') { echo ( $errormessage_invalidusernameorpassword ); } ?>
  23. ohk thanks. so if i have 6 div tags, i'd do one as class, one as id, one as ..dir?, one as another? and not use an attribute i've already used? what if i have more div tags than there is attributes? | I find someone explaining it to me is far better than me just reading dead tutorials -.- |
×
×
  • Create New...

Important Information

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.