Home Page | Illustration | Photography | Writing -Content Creation | Buy Art, Shirts, Gifts, Posters
Paintings | Affiliate Program | Free Stuff | Brandi's BlogNewsletters | Contact Brandi
 


Jasmine's Web


Tips for Writers

Self-Syndication Tips for Writers

New: HTML2JS Converting Tool - Easily convert your HTML Pages into JavaScript, no manual coding needed!

Weekly Column (Manual Rotation)

Not everyone wants to rotate their content every day. In fact, weekly columns and articles are the most common kinds of self-syndicated content writers make available. You'll need a different kind of script, one that essentially turns your HTML web page into a JavaScript.

Geek Moment: This tutorial assumes you will understand basic HTML, or can cobble the code from your editor (usually FrontPage or DreamWeaver) If you are utterly unfamiliar with basic HTML this might be a bit of a challenge - if it seems impossible to you, you'll need to learn HTML first. There are lots of good books on the subject, and many online tutorials. If you're really lazy, contact me at: and for $20.00 per article I will create the files for you. I recommend you give the script a shot first though!

1) First, let's take an imaginary column that looks like this:

2) Here is the code for that script. Right-click here and select (Save Target As) to download a clean text-only copy of the script. Open it in a text-only editor. DO NOT USE "WORD" or other fancy word processors. Only use Notepad or another simple text editor. Save the file as a text file named "article.js" (you can use any filename followed by .js for your own scripts).

<!--

document.writeln('<p>\<img border="0" src="http://www.brandijasmine.com/web/images/index.3.jpg" width="252" height="84">\</p>');

document.writeln('<p align="center"><em><strong><font face="Verdana" size="3">This is the title of my story</font></strong></em><hr></p>');

document.writeln('<p><font face="Verdana" size="2">I am telling this amazing story about one writer and her search for content syndication tools.</p>');

document.writeln('<p>I\'m throwing in something <a href="http://www.brandijasmine.com">tricky</a> in this paragraph! Can you spot it?</p></font>');

//-->

3) There are a few things you'll notice here. 

3a) The script always starts with <!-- 
      and ends with
//-->

3b) Each line is essentially the same:  
document.writeln('your content goes here');
Take as many lines as you need - make sure that it starts with document.writeln(' and ends with ');

3c) There are some tricky bits though! JavaScript does not like apostrophes and some special characters. You may get JavaScript errors or a blank page if you use them in your script. How do you avoid them? Simple! If you have text that JavaScript is objecting to, put a backslash \ in front of the objectionable text. Can you see them in the final line? "I'm" is rendered as I\'m (Thanks to Darren Varndell of Chat-Forum for writing to help me to clear this point up).

3d) Remember that each paragraph or line in the document must be a single line - whatever you use for an editor must allow line-wrapping so that all of your text for each comment in the code stays on a single line. 

3e) All URLs and image tags must be full URLs - "http://www.brandijasmine.com/web/images/index.3.jpg", not "../web/images/index.3.jpg"

4) Now all that is left is to give the following code to your client or partner sites:

<script language="JavaScript" src="http//www.brandijasmine.com/web/writers/article.js">
</script>

That's it! 

 
 

 
  

 
 


Looking for something in the Gallery?
Try this Google Search panel:

 
Web www.brandijasmine.com
Brandi Jasmine's Blog

 


Other sites by Brandi Jasmine:

Living With Your Psychic Gifts - Astrology.ca Horoscopes
Staci's Place: Stop Bullies - Jasmine's Carousel - JasmineCats.com

© 2007 Brandi Jasmine, All Rights Reserved
Privacy Policy - Abuse Policy