Last week, I wrote about taking a "PHP-first" approach to programming - program first, output last. But what should go first in your program? M-V-C You may have heard about something called "MVC" (Model-View-Controller). If not, here's your crash course: Model Your Model is all of the information needed/used by your program. [Hopefully], the Model is well-organized. Think of it in terms of note-taking: notes are easier to ...
Many PHP tutorials begin with an introduction to the "basics" of the language: the <?php ?> tags, and usually the echo construct. For example, something like this: PHP Code: <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> Before I blast this, I want to ...
<?php ?>
echo
<html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html>
Updated 11-03-2012 at 01:27 AM by traq
Here's my alternative to the ddscript Jquery Scroll to Top Control V1.1 scroll_to_top.js Code: $.fn.scroll_to_top = function(userOptions) { var check_scroll = 0; var defaultOptions = { image : 'jump_to_top.png', image_height : '6%', image_width : '3%', scroll_distance : 200, scroll_location : 0, scroll_speed : 600, button_animate_speed : 200, button_animate_type : 'fade', ...
$.fn.scroll_to_top = function(userOptions) { var check_scroll = 0; var defaultOptions = { image : 'jump_to_top.png', image_height : '6%', image_width : '3%', scroll_distance : 200, scroll_location : 0, scroll_speed : 600, button_animate_speed : 200, button_animate_type : 'fade',
Okey doke, there haven't been any blogs in a while, so I thought I might have some. It's about a thread I was on (here) in which Williamsun wanted a form which autosummed a price. I ended up coming up with something along these lines. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"
The title overstates the point. Both these scripts in their latest versions are pretty darn good as are many of the other Lightbox type scripts out there (see end for two others or Google Lightbox for more, though not all are as good as those mentioned here, many including the original Lightbox mentioned in the title of this blog entry are). Here's the real story - Some time ago Dynamic Drive's Lightbox by Lokesh Dhakar was added to the Dynamic Drive official scripts. ...
Updated 07-08-2014 at 04:50 PM by jscheuer1 (add update for more recent jQuery versions)