100 Top Tips: Microsoft Excel
Power up your Microsoft Excel skills with this powerful pocket-sized book of tips that will save you time and help you learn more from your spreadsheets.
Content is visitor bait. If you post something sufficiently entertaining, useful or informative on your website, you'll attract visitors. But there is an alternative to just uploading your work and waiting for people to sniff it out. You can send your content out hunting by putting it on other websites. Capture the reader's interest and they'll click through to your site. Even if they don't visit you, you build your reputation each time your work and your name are seen.
This page provides some scripts you can adapt to start syndicating your content to other sites. Put your cursor in the form field with the script, select all, copy and then paste it into your webpage.
If you're syndicating image files, the easiest thing is to just get people to link to a picture on your site directly. Here's some example code that will take the image cartoon.gif from your site (www.example.com) and embed it in the host page.
When you want to change the cartoon, just upload a new version of cartoon.gif. This link works on any browser that has images switched on, but it does mean that you'll have to upload a new file each day if you want to publish a daily comic strip.
Using that script means you only need to update your cartoons once a month, and you can do it any time in the month too.
Here's how it works:
The beauty of it is that you can change the syndicate.js code at any time and the next time someone views any webpage calling it, that webpage too will change. So if you link lots of webpages (perhaps many of which you don't own) to the same syndicate.js file, you have a way to update all of these separate pages all over the internet by changing just one file that you control (syndicate.js).
It's much more flexible than our previous daily cartoon example. If you need to alter the path or size of your images, just update your syndicate.js file. You host sites won't even notice the difference, let alone have to update their code.
<strong>Don't let apostrophes confuse</strong>
document.write('<strong>Don\'t let apostrophes confuse</strong>');
Just add new quotes in turn, increasing the number in square brackets.
This mutant hybrid of our two scripts will show a daily quote:
© Sean McManus. All rights reserved.
Visit www.sean.co.uk for free chapters from Sean's coding books (including Mission Python, Scratch Programming in Easy Steps and Coder Academy) and more!
This book, now fully updated for Scratch 3, will take you from the basics of the Scratch language into the depths of its more advanced features. A great way to start programming.
Code a space adventure game in this Python programming book published by No Starch Press.
Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!
Set up your Raspberry Pi, then learn how to use the Linux command line, Scratch, Python, Sonic Pi, Minecraft and electronics projects with it.
In this entertaining techno-thriller, Sean McManus takes a slice through the music industry: from the boardroom to the stage; from the studio to the record fair.
Tips, tutorials and free book chapters for Scratch, a coding language widely used in schools.