[Visit] Telescopic Text.
Click [[any of] the [first [three]]] words.
(My formatting will make sense when you start using it)
[Visit] Telescopic Text.
Click [[any of] the [first [three]]] words.
(My formatting will make sense when you start using it)
Adobe Fireworks is a pretty brilliant program for rapidly developing web layouts in a kind of best-of-both-worlds way that enjoys the benefits of both vector and bitmap design, without all the frustrations that come along with smart objects. Its text handling is also superb, offering a whole lot of customisable settings that are very useful for mocking up web designs, not readily available in either Photoshop or Illustrator.
However, it is not without its faults. On Vista, when typing text in Fireworks things can occasionally go very, very wrong. The solution at least initially is to turn off the “Auto Kern” option in the Properties dialog — but this removes one of the big benefits of using Fireworks in the first place!
There are other options. The problem will go away (sometimes) when the file is closed and Fireworks is restarted — this is hit and miss. More permanently, disabling Vista’s fancy-pants Aero theme (the thing that makes all window borders transparent, gives that snazzy Start + Tab effect, etc.) will ensure you have a glitch-free Fireworks font experience.
The real solution? Sneak into Adobe HQ and write a patch to fix the stupid thing!
…mainly because Ben has taken too long to write his own (I don’t think he was trying, but meh… no more excuses!)
18 lines of comments, and 5 lines of code. If this is too hard to use, you shouldn’t be using PHP (or any programming language, for that matter!)
<?php
#-----Simple Random Quote script-------#
# Place this file somewhere servable, #
# and stick a file "quotes.txt" in the #
# same directory as it. Alternatively, #
# change the $quotesfile variable to #
# something desirable. #
# #
# IMPORTANT: Quotes file must be #
# server readable. Obvious, but often #
# overlooked. #
# #
# quotes.txt format is: #
# Quotation::Author #
# Use one entry per line only. #
# #
# Output from the regex replacement is:#
# <p>Quotation<br /><em>Author</em></p>#
#--------------------------------------#
$quotefile = "quotes.txt";
if ($quotes = file($quotefile)) {
echo eregi_replace("([^[]*)::([^[]*)","<p>1<br /><em>2</em></p>", $quotes[array_rand($quotes)]);
} else{
echo 'An error has occurred, no quotes are available at this time.';
} ?>
I hope WordPress doesn’t mess that up…
Recent Comments