Jump to content

emicha

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About emicha

  • Rank
    Newbie
  • Birthday 06/14/1990

Previous Fields

  • Languages
    HTML, CSS, PHP, SQL, AS, JS, XML

Contact Methods

  • Website URL
    http://www.emicha.com
  • ICQ
    0

Profile Information

  • Location
    Sofia
  • Interests
    HTML/CSS Building
  1. Replace position: absolute; in the div#address with the code below: position: absolute;_position: fixed;
  2. emicha

    Folder Permission

    http://bg.php.net/chmod
  3. emicha

    php - excel

    http://php.net/manual/en/function.header.php
  4. If you register session, the user will have to logout (session_destroy()) to delete it. He will be logged in, until the session expires or the session will be destroyed.
  5. http://blog.deconcept.com/swfobject/
  6. http://www.white-hat-web-design.co.uk/arti...php-captcha.php
  7. emicha

    Upload Flash

    It's not a big deal to upload a flash. Check if the extension is ".swf" and then write the url in the DB. If you use multipart/form-data you can upload any file.
  8. <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript"> function openPopup(url,width,height){ window.open(url,'popup','toolbar=0,location=0,directories=0, statusbar=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height); } </script> </head> <body><a href="java script: openPopup('http://www.google.com',300,100);">клик</a> </body></html> but there are a lot of popup blockers. If you use target="_blank" and xHTML Strict for doctype your code may not be valid. You can use something like lightbox. Changing display property of a div element with width and height the size of the user's screen may be the best resolution.
  9. <!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=iso-8859-1" /><title>Untitled Document</title><style type="text/css"> div.parent { display: table; height: 250px; #position: relative; overflow: hidden; width:250px; border: 1px solid black; text-align: center; } div.parent div.child_out { #position: absolute; #top: 50%; display: table-cell; vertical-align: middle; } div.parent div.child_out div.child_in { #position: relative; #top: -50%; #left:-50%; }</style></head><body><div class="parent"> <div class="child_out"> <div class="child_in"> <img src="http://forums.data.bg:8080/images/avatars/18819231564748948882e1d.jpg" alt="" /> </div> </div></div></body></html> This is my decision. FireFox is smart browser and it supports display: table-cell and display: table. IE is a stupid browser but there are a few "hacks" to achieve vertically aligned layout.
  10. emicha

    Layers

    [off]Read for the clear property.http://www.w3schools.com/css/pr_class_clear.asp[/off]
  11. emicha

    AJAX w/ PHP

    You are in a big mistake. AJAX actually is JavaScript. You could use AJAX to call a php/txt/asp/xml etc. types of files. In PHP you can use only 'echo' to print a result in the ajax container. Give me some code, but I think that the problem is in the JavaScript.
  12. <!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=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript" language="javascript"> function check() { var elem = document.getElementById('c1'); if(elem.value == 123) { alert('Right answer'); } else { alert('Wrong answer'); } } </script> </head> <body> <input type="text" id="c1" value="123" /> <input type="submit" onclick="check();" /> </body></html> Look at this. This is not a secure way to do this kind of check. Use AJAX or only PHP but in this case the page should be reloaded automatically.
×
×
  • Create New...