Page 1 of 5

HTML/CSS/PHP/JS Tutorials, Tricks & Scripts [Updated Feb 8]

Posted: Mon Apr 11, 2016 12:04 am
by Mikari
For me full tutorial, notes and tricks list please see this page, all new updates will be linked there!

Re: HTML/CSS/PHP/JS - Newest: Progress Bar

Posted: Mon Apr 11, 2016 12:48 am
by Masao
For the PHP dates, rather than manually printing what the textual representations of months are, it's better and easier to just use the php date() function to format it.

So instead of $thismonth = date("n"); and then echo it out later, just echo date("F"); for the full month name. The same principle for the days of the week, just echo date("l");

The full list of date format strings are here.

Re: HTML/CSS/PHP/JS - Newest: Progress Bar

Posted: Mon Apr 11, 2016 1:13 am
by Mikari
@AdriCULOUS: Thank you! I'm happy they're helpful. I hope to cover more little tricks in the future as well as some explanations about the "logic" behind certain codes to make them easier to understand.

@Masao Thank you for pointing that out! I'm not sure how I forgot to review the full list for the php date. It's probably a left over from when I first started learning a bit of PHP by comparing it to Java Script and used more numerical data (though I'm still a PHP/JS rookie really. XD)

Re: HTML/CSS/PHP/JS - Newest: Progress Bar

Posted: Mon Apr 11, 2016 7:02 am
by Robin
THIS IS AWESOME

/reads all the things
/drools over shiny code

Re: HTML/CSS/PHP/JS - Newest: Progress Bar

Posted: Tue Apr 12, 2016 12:48 am
by Mikari
@AdriCULOUS: I'm just barely getting familiar with PHP in general so I'm not really comparing versions right now, though I plan to run stuff through a validator when I revise it to make sure I have code that works with the latest. This reminds me of when I went from XHTML to HTML5, only more complex.

@Robin: Thank you! I have a few neat little tricks in mind to share soon! :D

Re: HTML/CSS/PHP/JS - Newest: Birthday PHP

Posted: Tue Apr 12, 2016 6:57 pm
by Mikari
Update!

* Birthday PHP - PHP powered automatically updating birthday wishes that appear on the right day and are hidden the rest of the time. I've seen a lot of people talk about their domain and website birthdays. Combining this with the Progress Bars can provide a countdown to your or your site's next birthday.

Re: HTML/CSS/PHP/JS - Newest: Birthday PHP

Posted: Wed Apr 13, 2016 8:13 am
by nyxmidnight
Oooooooooooooooooooo!!!

Re: HTML/CSS/PHP/JS - Newest: Birthday PHP

Posted: Wed Apr 13, 2016 9:44 am
by Lethe
That Birthday PHP is the cutest tutorial ever LOLOL. I love that you (and Adriculous in the other topic!) have set up your own tutorial topics in this part of the forum - that's so neat!

Re: HTML/CSS/PHP/JS - Newest: Parallax

Posted: Wed Apr 13, 2016 5:15 pm
by Mikari
@nyxmidnight: :D

@Lethe: Thank you! I hope to post lots more ^^ especially for little codes like that, which can be used to add a neat detail to a site.

Updates:

Added my old otome event JS to the list and elaborated on the css parallax examples.

Parallax - An experiment I made to learn more about parallax. I also have some notes explaining some of the concepts about how parallax works. The experimental code can be downloaded for study. I also added some extra notes and an example for a parallax div.

Re: HTML/CSS/PHP/JS - Newest: Parallax

Posted: Thu Apr 14, 2016 12:44 am
by Mikari
I like the interactive parts of JS, though I also don't think php is going away. XD I got into the habit of the / and never fell out of it. XD I'll take a while to adapt if it stops being valid in the future. ^^;;