Jump to content

skym

Members
  • Posts

    253
  • Joined

  • Last visited

Everything posted by skym

  1. I always use hex code (#000000 and #0000ff in your case). Also try with lowercase.
  2. It seems to be working at the first glance: [edit: url erased]The width/height iframe settings help to render the Flash at the correct scale, but other parameters cannot be set. I still don't see the point of it. Why <object> isn't good?
  3. addslashes, htmlentities, or mysql_real_escape_string if the output is for databases. Search for them at php.net
  4. skym

    N00b Stuck

    I don't see where $teachers is defined.Also use mysql_error() for the SELECT query too.
  5. skym

    about sql query

    In mysql the query would be:SELECT sal FROM emp ORDER BY sal DESC LIMIT 5
  6. SELECT * FROM books WHERE title='what' AND author='who'http://dev.mysql.com/doc/refman/5.1/en/select.html
  7. Nice...It looks like an M16 from Delta Force to me, plus Wolfenstein3D as mentioned Though I did not find the Boss...Still slow of course, especially for a game, but probably would be sufficient for something like giving a tour in an apartment/house for sale or rental, or anything similar that would not require the resources that a real 3D game demands.
  8. skym

    Remembering Scripts

    Might help: http://www.ilovejackdaniels.com/cheat-shee...ss-cheat-sheet/Not only for CSS.
  9. What is embeding from URL? Something like <a href="http://www.whatever.com/flash/movie.swf"> ? There's no such thing, you still need <object> to let the browser show the flash.
  10. It's 'Browse' in IE and FF, and 'Choose' in Opera. The text seems to be generated by the browser, it is not a default value that you can change.
  11. Why not open() ?http://www.w3schools.com/htmldom/met_win_open.asp
  12. skym

    Remembering Scripts

    Repetitio mater studiorum est
  13. 3D? Not really. It can make calculations, but no graphical output. You better use Java or Flash.
  14. I had troubles with javascript many times, so there might be a simpler solution, I would try:<form ... onsubmit="form_validation(obj); return false;" ...in the form andfunction form_validation(this) {...catch(error) {if (error == "name_error")alert("You must write your name!");else if (error == "contect_error")alert("You must add content to your post!");else obj.submit();}in javascript.I don't know any direct function in JS to trim strings.
  15. The spans are to place the graphics and as placeholder for the scrolled text.The scrolling code is in the angryblue_scroll.js file.
  16. Right, but let him complete the code
  17. I don't think there is a code to directly output the 'st', 'nd', 'rd' and 'th' suffixes. Why not making your own code to put the correct suffix? <script type="text/javascript">var d=new Date()var weekday=new Array(7)weekday[0]="Sunday"weekday[1]="Monday"weekday[2]="Tuesday"weekday[3]="Wednesday"weekday[4]="Thursday"weekday[5]="Friday"weekday[6]="Saturday"date = d.getDate();switch (date){case 1: suffix = 'st'; break;case 2: suffix = 'nd'; break;case 3: suffix = 'rd'; break;default: suffix = 'th';}document.write("Today it is " + weekday[d.getDay()] + ", " + date + suffix);</script>
  18. The next code:a.mainlevel:link, a.mainlevel:visited {...}a.mainlevel:hover {...}will affect only the links of class 'mainlevel':<a class="mainlevel" ...>
  19. http://www.w3schools.com/css/css_syntax.aspSee "The class Selector" chapter on this page.
  20. <html><body><script type="text/javascript">var d=new Date()var weekday=new Array(7)weekday[0]="Sunday"weekday[1]="Monday"weekday[2]="Tuesday"weekday[3]="Wednesday"weekday[4]="Thursday"weekday[5]="Friday"weekday[6]="Saturday"document.write("Today it is " + weekday[d.getDay()] + ", " + d.getDate());</script></body></html>
  21. Player.URL = "Waves/<?php echo $exhortation_wma; ?>";
  22. http://www.php.net/substr
×
×
  • Create New...