Exemple #1
0
?>

</style>

</head>
<body>

<?php 
echo spritemeHeader("testurls");
?>


<div id=contents class=contents>

<?php 
echo spritemeNav("testurls");
?>

<br>

<div style="margin-bottom: 20px;">
<input type=button value="Start Test" onclick="startTest()">
<input type=button value="Stop Test" onclick="stopTest()" style="margin-left: 12px;">
<input type=button value="Continue" onclick="continueTest()" style="margin-left: 12px;">
<p>
test name: <input type=text size=32 id=testname name=testname value=""> (if you use this, run from spriteme.org)
<p>
delay interval: <input type=text size=5 id=delay value=15000> milliseconds
</div>

<div style="float: right; width: 400px; margin: 20px; border: 1px solid #AAA; padding: 8px; background: #EEE;">
Exemple #2
0
?>

</style>

</head>
<body>

<?php 
echo spritemeHeader("savings");
?>


<div id=contents class=contents>

<?php 
echo spritemeNav("sav");
?>

<br>

<p style="margin-top: 40px;">
<?php 
echo array_key_exists('top', $_GET) ? "Here are the results for the Alexa U.S. Top 100. " : "Here are some recent results from SpriteMe users. ";
?>
You can record your results by clicking the "share your results" link after running SpriteMe.
See the <a href="faq.php#share">FAQ</a> for more information.
</p>

<?php 
if (array_key_exists('diff', $_GET)) {
    //echo getSavingsDiff(true, 0, 101, 102, 9999);
Exemple #3
0
.fn { color: #530209; font-family: arial; }
</style>

</head>
<body>

<?php 
echo spritemeHeader("demo");
?>


<div id=contents class=contents>

<?php 
echo spritemeNav("demo");
?>

<br>
<br>
<br>
<br>

<div class="btn_box_demo"><div class="btn_top"><div></div></div><div class="btn_content_demo">
<table cellpadding=0 cellspacing=0 border=0 width=100% height=100%>
<tr>
<td id=demotalk style="font-size: 1.5em; vertical-align: middle; text-align: center;"></td>
</tr>
</table>
</div><div class="btn_bottom"><div></div></div></div>
Exemple #4
0
</style>

</head>
<body>

<?php 
echo spritemeHeader();
?>



<div id=contents class=contents>

<?php 
echo spritemeNav("home");
?>

<h2 style="margin-top: 0;">Spriting made easy</h2>

<div style="margin-left: 20px; margin-top: 4px; width: 600px;">
Background images make pages look good, but also make them slower.
Each background image is an extra HTTP request.
There's a fix: combine background images into a <a href="faq.php#def">CSS sprite</a>.
But creating sprites is hard, requiring arcane knowledge and lots of trial and error.
SpriteMe removes the hassles with the click of a button.

<p>
Try it on this page:

<input type=button value="Run SpriteMe" onclick="(function(){spritemejs=document.createElement('SCRIPT');spritemejs.type='text/javascript';spritemejs.src='spriteme.js';document.getElementsByTagName('head')[0].appendChild(spritemejs);})();">
Exemple #5
0
</style>

</head>
<body>

<?php 
echo spritemeHeader("faq");
?>


<div id=contents class=contents>

<div>
<?php 
echo spritemeNav("faq");
?>
</div>

<br>

<p style="margin-top: 2em;">
Find out more about SpriteMe by reading <a href="http://www.stevesouders.com/blog/2009/09/14/spriteme/">these</a> 
<a href="http://www.stevesouders.com/blog/2009/09/18/spriteme-part-2/">blog</a>
<a href="http://www.stevesouders.com/blog/2009/09/21/spriteme-part-3/">posts</a> and watching this <a href="http://www.youtube.com/watch?v=pNfRL-TwzZY#t=27m21s">video</a>.
</p>

<style>
#results { display: none; }
.category { font-size: 1.2em; font-weight: bold; }
.questions LI { font-size: 1.1em; }