Jump to content

iyeru42

Members
  • Posts

    231
  • Joined

  • Last visited

Posts posted by iyeru42

  1. onload is the event. Writing onload = function is the same as window.onload = function or document.body.onload = function, etcBTW changeonload = l();to onload = function(){l()}oronload = l;
    Woo, now I no longer need to use attachEvent for that. Thanks a bunch.
  2. If you don't know what Flex is, chances are you don't need it. If you plan to make just flash movies with your actionscript, then don't worry about either Flex of Flash Lite. By the way Prateek, if you have Flash MX+, the Reference right-click can help you a lot.

  3. FirefoxRocks, when I use that code... IE6 complains a bunch. For one thing:

    <script type="text/javascript"><!--//--><![CDATA[//><!--document.write(news);//--><!]]></script>

    doesn't show the news box in IE6. And another thing, the wrapper no longer has a BG of white (or doesn't show.)

  4. You can specify the width of the file by left-clicking the stage and go to the properties box and clicking the button that would normally say 550 x 400 pixels. Changing this to a higher resolution will cause the outputted HTML document for the SWF to become stretched out to fit in the SWF. If you don't want to do that, you're going to have a bit of a tough time getting the image to look neat, since when flash tries to size it down, it may become blurry (depending on how you saved the image before importing. BMP, TIF, and aother RAW files you don't have to worry about that.)

  5. Well then, could you please tell me how to write an XHTML version of my current site (Use the index page as a base, don't worry about the others) whilist keeping ALL CSS STYLES INTACT? (Yes, I want the menu coming out of the newsbox, yes... I want the newsbox to be controlled by JS, because then I have less code to output.)

  6. Man, sometimes people don't do this correctly. text-align attribute won't work for anything other than text content (usually) when inside a DIV of some sort (Sometimes, putting DIVs into the text-centered DIV won't center the DIV.)However, getting past that with tables is relatively easy.

    TABLE, TR {	 text-align:center;}TD {	 text-align:left;}

    Will cause TDs to be centered, but not the text within.100th, post

  7. Remember these CSS Styles don't work in the following:Windows

    • Firefox
    • Netscape
    • Mozilla
    • Opera

    Linux

    • All browsers, unless emulating IE7 and below.

    Macintosh

    • ALL BROWSERS, NO EXCEPTIONS (This includes IE 5.5 and below)

  8. ob_start()
    Read the fine print beforehand:
    This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer.
    In this case, it wouldn't be best to use this. Since I may forget to close the OB.
  9. IE6 handles float attributes properly though (unless float left is invoked on something to be put left of main content, then both IE6 and IE7 won't word wrap to the left floating content unlike FF and Opera.)

  10. Which will be a pain in the butt if you try to do a header after the header is init. Because people often times (when coming from JS) blindly put the header function where javaScript would put window.location.href (after the headers) and that doesn't work IE:

    <?phpfunction onClick2($locale) {	 if($locale !== "" || $locale !== false || $locale !== null) {		  header("Location: ", $locale);	 }}?><input type="button" onClick="<?php onClick2('blah.htm'); ?>">

    Since PHP parsing puts any header information (unless specified in an include or require) before the first HTML it detects, it'll give the error:Cannot modify header information. Already outputted by blah.php on line XWhere blah.php is the code I just put down above.

  11. That's why when I try to edit the browser location, I use window.location instead.

    <?phpif (!isset($_POST['submit'])) {?><form action="" method="post">Foreame: <input type="text" name="forename"><br>Surname: <input type="text" name="surname"><br><input type="submit" name="submit" value="Next Step >>"></form><?php} else {$Forename = $_POST['forename'];$Surname = $_POST['surname'];mysql_query("INSERT INTO `djpCustomer` (forename, surname) VALUES ('$Forename', '$Surname')");echo "Success! Your details has been added!";?><script>window.location.href = 'blah.htm'; // Add setimeout if needed.</script><?php}?>

  12. You can use header wherever you want if you separate the PHP from the HTML.
    IPB won't allow that though in the old templating system it used in 1.3.1 (Nor does vBulletin 2.)Putting header("blah") will output that error Header information already sent by header.tpl.php on line 1.
  13. Here's the answer for the custom tags. Yes I know, the P tag may be smaller in size, but I don't want to have all my P tags act the same way (Same with DIV tags.) Hence the custom tags.There are other sites out there that use their own page ranking system too, and not by Google's standard's either.

  14. However, Google is notorius for not including other searches as well that Ask and Altavista (Mind you, Altavista's hosted by yahoo) have. So I don't usually count google, because Ask and Altavista already have about 5~10 pages of my new site within five days of putting it up.

  15. do you have flash Prateek? you can make animated gifs with that
    *dodges* Watch what you're saying there. Flash can't go above web standards unless you have some miracle plugin that bypasses it. If you're planning on using flash 8, export the flash animation as a PNG sequence. After that, go into Photoshop and add each image as a separate frame for each new layer, then export the animated GIF through Photoshop. Make sure you don't have any transparencies.
×
×
  • Create New...