View RSS Feed

All Blog Entries

  1. Taking Control

    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 ...
  2. Every PHP Tutorial Is Wrong

    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 ...

    Updated 11-03-2012 at 01:27 AM by traq

    Categories
    PHP coding , Web Design issues
  3. Putting text on top of a video

    In July 2010 an enhancement to the YouTube video embed capability became available through a new embed code style. This style uses <iframe> and looks like this:
    <iframe src="http://www.youtube.com/embed/VIDEO_ID?" frameborder="0"></iframe>


    After VIDEO_ID? we can add the normal parameters, like this:
    <iframe src="http://www.youtube.com/embed/VIDEO_ID?start=0&amp;autoplay=1&amp;rel=0&amp;showinfo=0&amp;autohide=0&amp;modestbranding=1&amp;vq=large"
    ...

    Updated 10-14-2012 at 06:10 PM by molendijk

    Categories
    JavaScript & Ajax , CSS related
  4. FaceScroll - my take

    Adds altScrollTo method to scroll to coordinates, element, or keyword position in the scroller. Adds optional callback for real time updates of the scroller's position. Fixes behavior of bi-directional scrollers in IE 8 and less. Now compatible to and including IE 6. Adds automatic console logging of missing helper scripts in browsers with console logging. Instates selector element return value for normal jQuery chaining of methods. Alters the mouseout behavior for default style scrollers to avoid ...

    Updated 06-18-2013 at 09:27 PM by jscheuer1 (additional options, details)

    Categories
    DD Scripts Mods , Post a JavaScript
  5. Scroll to Top Script

    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',
    ...
    Tags: javascript Add / Edit Tags
    Categories
    Uncategorized
Page 6 of 19 FirstFirst ... 4567816 ... LastLast