Jump to content

calvin182

Members
  • Posts

    190
  • Joined

  • Last visited

Everything posted by calvin182

  1. i was thinking of something in page, not like floating over the page, can DHTML do that do you know?
  2. I'm the only Michigander on here...
  3. calvin182

    Sliding Content

    Everytime I go to Yahoo! I see this little box slide down on the top of the page advertising their toolbar. Anyone know how to do something like that? Can PHP do it?
  4. what do u mean by how mch you need IE? you do need IE if you want to use that service, and IE is freely available at http://www.micosoft.com/windows/ie/default.htmi just wouldnt set it and use it as your default browser thats all, but you should have it if you're a web developer so you can test your site with the different browsers so your site can be compatible for everybody. I suggest you should have FireFox, Opera, and Internet Explorer
  5. I also suggest adding a alt attribute to the img tag so it validates properly. In IE if you have an alt attribute it displays on hover, in firefox you need to use title. I always use both and here's why. Every page on my site is composed of many images, and I really don't want the word "spacer" to be visable when hovering over many areas on my site, so I use an alt attribute (alt="spacer") and a title attribute (title="") so it validates but doesnt display anything. Then if I do want something to display, I set both to the same text, so I maintain compatibility between browsers.
  6. theres a css -moz-opacity: 0.75; tag but i think it only works for firefox and it doesnt validate as css 2.0.by the way, i like ur username, it reminds of the jacks mannequin song dark blue.
  7. sounds like it'd be a chron job. if you could figure out how to do a chron job to run like once every hour or whatever frequency you want, im sure it would be easy to do. on my site, i have it set up where if my mysql database is down, a special message appears. all you would really have to do is have the script try include a file with a variable like $online = "yes"; and back in the main script, if that value returned isn't "yes" (like when an error occurs), then it runs a mail function (which is easy to set up).thinking about this now, it wouldnt work anyways unless this chron job was on a different server, bc if your server went down, it wouldnt be able to run anything which means it couldnt even check and send you the email.
  8. calvin182

    PHP Editors...

    I just use notepad too, but ill have to check out that editor
  9. couldnt you use a javascript back form like this: <form><input type="button" value="Back" onclick="history.back()"/></form>
  10. thats an interesting idea... if I dont figure something out I might just do thatthanks jonas
  11. ill look into the pure css borders link, thanks, as far as opacity: 0.5; working, it does but it doesnt validate *sigh*thanks you guys
  12. yes putting them in .zip files is the best method. however, if you have php set up there is a possibility you can use the header() function, here's the example they have posted on php.net for that function: <?php// We'll be outputting a PDFheader('Content-type: application/pdf');// It will be called downloaded.pdfheader('Content-Disposition: attachment; filename="downloaded.pdf"');// The PDF source is in original.pdfreadfile('original.pdf');?> I havent tested it though so I do not know if it works well or not.
  13. calvin182

    Valid -moz CSS?

    I downloaded nicetitles and it has some -moz css included, and I would like it to be valid and still function properly in FireFox, any ideas? /*** NICE TITLES*********************************************************/div.nicetitle { background-color: #333; color: #fff; font: bold 13px "Trebuchet MS", Verdana, Arial, sans-serif; left: 0; padding: 4px; position: absolute; top: 0; width: 25em; z-index: 20; -moz-border-radius-bottomleft: 10px; -moz-border-radius-bottomright: 10px; -moz-border-radius-topleft: 0; -moz-border-radius-topright: 10px; -moz-opacity: .87; /* changes: */ min-width: 300px; width: auto; height: auto;} div.nicetitle p { margin: 0; padding: 0 3px; -moz-opacity: 1;}div.nicetitle p.destination { font-size: 9px; padding-top: 3px; text-align: left; -moz-opacity: 1;}div.nicetitle p span.accesskey { color: #d17e62;}
  14. nice planet layout vchris, pretty cool
  15. calvin182

    If statement help

    <?phpif ($_POST['code'] == "list") {echo "<a href=\"Downloads/list.txt\" target=\"top\">See List</a>";}else {echo "Access Denied";};?> give that a whirl
  16. i was going to sign up with that office live beta thing but you need to be a small business owner with a product key. it was worth a shot tho
  17. alrighty I've got one for ya, it took me a while to figure out tho. it consists of two files, upload.php, and results.php.first, a few things to be aware of, the folder you wish to upload your file to must have permissions 777 (well I don't know much about permissions so I just experimented a bit and that's what I came up with, I'm sure if you research permissions you could change that number to something else if you wish).second, in upload.php, you have to set the max upload size in bytes, by default it's set to 2097152 bytes which is 2 megabytes. if you wish to adjust that number just google "# megabytes to bytes" and it will calculate it for you.by default the upload directory is "/home/DOMAIN/public_html/images/", you can change this when you go to upload a file each time or you can also set it in the upload.php code (this would be a good idea to atleast set the DOMAIN part).upload.php: <html><head><title>Upload</title></head><body bgcolor="#FFFFFF">Max upload size: 2 megabyte (2,097,152 bytes)<!-- The data encoding type, enctype, MUST be specified as below --><form enctype="multipart/form-data" action="results.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="2097152" /> <!-- Name of input element determines name in $_FILES array --> Upload directory: <input name="uploaddirectory" type="text" value="/home/DOMAIN/public_html/demo/" size="50"/><br/> Send this file: <input name="userfile" type="file" size="50"/><br/> <input type="submit" value="Send File" /></form></body></html> results.php: <html><head><title>Results</title></head><body bgcolor="#FFFFFF"><?php// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead// of $_FILES.$uploaddir = $_POST['uploaddirectory'];$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);echo '<pre>';if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File was successfully uploaded!\n";} else { echo "Upload failed!\n";}echo "<br/><a href=\"upload.php\" title=\"Upload another\">Upload another</a>";echo 'Here is some more debugging info:';print_r($_FILES);print "</pre>";?> </body></html> put these in the same directory. this is just what I figured out by looking aro und php.net, if you have a version of php than version 4.1.0, let me know so I can make some changes. it's pretty basic but it should do the trick. let me know how it works out for you
  18. calvin182

    Please help

    yea I wouldn't say IE is dead, a more accurate statement would be IE is for people who don't know any better.
  19. calvin182

    Please help

    thats just to view it.how to edit html? can't u do that already? considering that you have a code example I figured you knew how.
  20. calvin182

    Please help

    if thats the case then hold Ctrl and press F5 if your on a Windows machine and it should force a complete refresh.
  21. calvin182

    Please help

    here's the ASCII code for the % sign: % is this what your looking for? <td width="80" align="center" height="13">80% <span class="mang">+2</span></td> EDIT: this forum converts the ASCII code for the % sign so go look it up at http://www.w3schools.com/tags/ref_ascii.asp and replace the % sign between 80 and nbsp; with the code it displays.
  22. im not sure i am getting what you want to do. if you have php installed on your server you could always make a script that when the user enters the page it adds 1 to its list (like a text file) without the user ever seeing it.
  23. calvin182

    Please help

    <td width="80%" align="center" height="13"><span class="mang">+2</span></td> Is that what your looking for? I don't see what your trying to accomplish. the "80% " is that supposed to be outputed text? because it looks like the "+2" is supposed to be your outputed text. The "(" an ")" should not be there either.
  24. I know theres a way to do this if you have a php enabled server but in just HTML/XHTML I don't know, I would recommend putting your files in a .zip archive but then again your visitors might not know what to do from there... Do you have php?EDIT: if you do have php, check out the header() function's examples.
  25. If your a n00b at web design, coding this in PHP will be a hefty one. I'd suggest trying phpBB because it's free and is pretty popular, not as popular as Invision Power Board though (this board - V2+ is purchase only).
×
×
  • Create New...