example html,javascript,css,php,mysql,ajax

12
Examples of: HTML, CSS, JavaScript, PHP, MySQL, and Ajax - by VisiBone http://www.unslumping.org/example.php[02/09/2009 14:45:18] Source code: PHP MySQL HTML JavaScript CSS the book VisiBone Three Popular Quips ... to help you UnSlump Rating Submitted by “And when you're in a Slump, you're not in for much fun. Un-slumping yourself is not easily done.” —Dr. Seuss, Oh the Places You'll Go ! ,ISBN 0679805273 13 Chat Chapeau Virgin Atlantic Commercial “When your life flashes before your eyes...” 9 Trav L. Allovah "There were a great many things I was afraid of at first, ranging from grizzly bears, to gunfighters, to mean horses. But by acting as though I was not afraid, I gradually ceased to be afraid. Most people can have the same experience, if they only choose to do so." - Theodore Roosevelt 8 James R. Garfield More... Who are you? Would you like to submit a quip today? Your pithy quip: allowed: <a><b><br><i><img><span> &lt; &copy; &Ouml;

Upload: david-zorrilla

Post on 08-Nov-2015

2 views

Category:

Documents


0 download

DESCRIPTION

ff

TRANSCRIPT

  • Examples of: HTML, CSS, JavaScript, PHP, MySQL, and Ajax - by VisiBone

    http://www.unslumping.org/example.php[02/09/2009 14:45:18]

    Source code:PHP

    MySQLHTML

    JavaScriptCSS

    the bookVisiBone

    Three Popular Quips ... to help you UnSlump RatingSubmitted

    by

    And when you're in a Slump, you're not in for much fun. Un-slumping yourself isnot easily done. Dr. Seuss, Oh the Places You'll Go!,ISBN 0679805273

    13ChatChapeau

    Virgin Atlantic Commercial When your life flashesbefore your eyes... 9 Trav L.Allovah

    "There were a great many things I was afraid of at first, rangingfrom grizzly bears, to gunfighters, to mean horses. But by acting asthough I was not afraid, I gradually ceased to be afraid. Most peoplecan have the same experience, if they only choose to do so." -Theodore Roosevelt

    8James R.Garfield

    More...

    Who are you? Would you like to submit a quip today?Your pithy quip:

    allowed: <

  • Examples of: HTML, CSS, JavaScript, PHP, MySQL, and Ajax - by VisiBone

    http://www.unslumping.org/example.php[02/09/2009 14:45:18]

    Three Random QuipsPleaseRate

    "Keep on keeping on!"

    sovUtn ayxuqowcpxmx, [url=http://gbusedalazib.com/]gbusedalazib[/url],[link=http://zdodhtjbdkae.com/]zdodhtjbdkae[/link], http://nryyewpzmojc.com/

    es! es! es!

    2009 VisiBone.

  • http://www.unslumping.org/example.html--source-code.php[02/09/2009 14:43:55]

    Examples of: HTML, CSS, JavaScript, PHP, MySQL, and Ajax - by VisiBone @import url("example.css"); @import url("navstyles.css"); BASEURL = 'http://www.visibone.com/unslumping/example.php';

    UnSlumping.org Source code: PHP MySQL HTML JavaScript CSS the book VisiBone

    Three Popular Quips ... to help you UnSlumpRatingSubmitted by And when you're in a Slump, you're not in for much fun. Un-slumping yourself is not easily done. Dr. Seuss, Oh the Places You'll Go!,ISBN 0679805273 13 Chat Chapeau

  • http://www.unslumping.org/example.html--source-code.php[02/09/2009 14:43:55]

    />Virgin Atlantic Commercial When your life flashes before your eyes... 9 Trav L. Allovah "There were a great many things I was afraid of at first, ranging from grizzly bears, to gunfighters, to mean horses. But by acting as though I was not afraid, I gradually ceased to be afraid. Most people can have the same experience, if they only choose to do so." -Theodore Roosevelt 8 James R. Garfield More... Who are you? Would you like to submit a quip today? Your pithy quip: allowed:
    < Three Random Quips document.write('Please Rate\x3Cbr />') (enable JavaScript to rate them) dgfdgfdgf thumbimages(26,0); And when you're in a Slump, you're not in for much fun. Un-slumping yourself is not easily done. Dr. Seuss, Oh the Places You'll Go!,ISBN 0679805273 thumbimages(15,0); d thumbimages(36,0);

  • http://www.unslumping.org/example.html--source-code.php[02/09/2009 14:43:55]

    2009 VisiBone.

  • http://www.unslumping.org/example.js--source-code.php[02/09/2009 14:44:17]

    function whoareyou() { var youfield = document.getElementById ? document.getElementById('you') : null; var you = youfield ? youfield.value : ''; while (you == '') { if ((you=prompt('Who are you really?', '')) == null) return ''; if (youfield) youfield.value = you; } return you;}

    function formsubmit() { return whoareyou() != '';}

    var thumbs = new Array;

    function thumbimages(idquip, rating) { var classup = (rating == +1 ? 'thumb-pick' : 'thumb'); var classdn = (rating == -1 ? 'thumb-pick' : 'thumb'); document.write(""); document.write(""); thumbs[idquip] = new Array; thumbs[idquip][+1] = document.images[document.images.length-2]; thumbs[idquip][-1] = document.images[document.images.length-1];}

    var ajax, ajaximg, ajaxOldClass, ajaxNewClass;

    function thumbclick(img, idquip, rating) { if (window.XMLHttpRequest != null && (ajax = new XMLHttpRequest()) != null || window.ActiveXObject != null && (ajax = new ActiveXObject("MSXML2.XMLHTTP.3.0")) != null || window.ActiveXObject != null && (ajax = new ActiveXObject("Microsoft.XMLHTTP")) != null) { thumbs[idquip][-rating].className = 'thumb'; // flatten the *other* thumb button if ((ajaxOldClass = img.className) == 'thumb') { ajaxNewClass = 'thumb-pick'; } else { ajaxNewClass = 'thumb'; // toggle to neutral rating = 0; } img.className = 'thumb-click'; if ((you = whoareyou()) == '') { img.className = 'thumb'; return false; } ajaximg = img; // IE won't let you glom ad hoc properties onto ajax object ajax.onreadystatechange = ajaxstatechange; ajax.open('POST', BASEURL, true); ajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); ajax.send('idquip=' + encodeURIComponent(idquip)

  • http://www.unslumping.org/example.js--source-code.php[02/09/2009 14:44:17]

    + '&rating=' + encodeURIComponent(rating) + '&you=' + encodeURIComponent(you)); } return false;}

    function ajaxstatechange() { if (ajax.readyState == 4) { if (ajax.status == 200 && /QED/.test(ajax.responseText)) { ajaximg.className = ajaxNewClass; } else { ajaximg.className = ajaxOldClass; alert(ajax.responseText); } }}

  • http://www.unslumping.org/example.css--source-code.php[02/09/2009 14:44:37]

    body { background: #F4F0F4 url(topleft.jpg) no-repeat top left; padding-right: 20px; padding-bottom: 50px; font: 0.8em Verdana, sans-serif; }h1 { position: absolute; top: 0px; left: 250px; font: bold italic 2.5em 'Comic Sans MS', sans-serif; line-height: 1.8em; color: #56555B; display: none; }html, body, h1, p.clues, p#table-more { margin: 0; padding: 0; }img { border: 0; }

    div#navbar { width: 95px; height: 420px; position: absolute; top: 277px; left: 10px; padding: 0px; margin: 0px; }div#content { position: absolute; top: 70px; left: 128px; }

    div.navitem { color: white; text-align: right; font-weight: bold; }

    div#submitfield,div#quipupload,div#quiprating { margin-top: 20px; }div#footer { font-size: 12px; margin-top: 60px; }div#footer img { width: 88px;

  • http://www.unslumping.org/example.css--source-code.php[02/09/2009 14:44:37]

    height: 31px; vertical-align: middle; }

    .thumb { cursor: pointer; border: #F4F0F4 7px solid; margin: 0px 0px 0px 0px; }.thumb-click { border: #00FFFF 7px groove; margin: 1px -1px -1px 1px; }.thumb-pick { cursor: pointer; border: #00FFFF 7px inset; margin: 3px -3px -3px 3px; }

    .field label { font: bold italic 1.3em 'Times Roman', Times, serif; }.who { font: 1.0em Verdana, sans-serif; }.quip { font: 1.4em Verdana, sans-serif; }.field .clues { font: italic 1.4em 'Times Roman', Times, serif; }.field .clues code { font: 0.8em Verdana, sans-serif; background-color: #FFF1FF; border: 1px solid #CFA1CF; }textarea#quip { vertical-align: top; width: 22em; height: 7em; }

    .rating { text-align: center; }

    td.quip { border: 1px silver outset; padding: 6px; background: white url(pretentiousgradientbackground.jpg) no-repeat bottom right; }

  • http://www.unslumping.org/example.php--source-code.php[02/09/2009 14:44:49]

  • http://www.unslumping.org/example.php--source-code.php[02/09/2009 14:44:49]

    UnSlumping.org

    Three Popular Quips ... to help you UnSlumpRatingSubmitted by More... Who are you? Three Random Quips document.write('Please Rate\x3Cbr />') (enable JavaScript to rate them)

  • http://www.unslumping.org/example.sql--source-code.php[02/09/2009 14:45:01]

    # CREATE DATABASE _DATABASE_# GRANT ALL ON _DATABASE_.* TO _USER_@_HOST_ IDENTIFIED BY '_PASS_'

    DROP TABLE IF EXISTS Quips;DROP TABLE IF EXISTS Ratings;SET @WHOMAX := 40; # $WHOMAXCREATE TABLE Quips (idquip INT AUTO_INCREMENT PRIMARY KEY, who VARCHAR(@WHOMAX), quip LONGTEXT, timestamp TIMESTAMP);CREATE TABLE Ratings (idquip INT, who VARCHAR(@WHOMAX), rating INT, timestamp TIMESTAMP, PRIMARY KEY (who,idquip), UNIQUE KEY (idquip,who));

    Examples of_ HTML, CSS, JavaScript, PHP, MySQL, and Ajax - by VisiBoneunslumping.orgExamples of: HTML, CSS, JavaScript, PHP, MySQL, and Ajax - by VisiBone

    1unslumping.orghttp://www.unslumping.org/example.html--source-code.php

    2unslumping.orghttp://www.unslumping.org/example.js--source-code.php

    3unslumping.orghttp://www.unslumping.org/example.css--source-code.php

    4unslumping.orghttp://www.unslumping.org/example.php--source-code.php

    5unslumping.orghttp://www.unslumping.org/example.sql--source-code.php

    1waW5nLm9yZy9leGFtcGxlLnBocAA=: form1: you: quip: input0: