[GET] article spinner in HTML (support nesting)!

dztimes

Regular Member
Joined
Jan 12, 2010
Messages
203
Reaction score
134
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Article Spinner</title>
</head>
<body>
<div style="min-height:500px;">
<table cellpadding="5" cellspacing="5" border="0" align="center" width="800px">
    <tr>
        <td>
            Spyntax content:<br />
            <textarea id="textSpin" rows="10" style="width:100%;"></textarea>
            <input id="chkNewLine" type="checkbox" />Convert newline to &ltbr /&gt
        </td>
    </tr>
    <tr>
        <td>
            <input id="inpSpin" type="button" value="Next Spun" onclick="Spin();" /> <input id="inpHtml" type="button" value="Html Code" onclick="Html(this);" style="display:none;" />               
        </td>
    </tr>
    <tr>
        <td>            
            <textarea id="textHtml" rows="10" style="width:100%;display:none;"></textarea>
            <label id="lblSpin"></label>
        </td>
    </tr>    
</table> 
</div>
<div style="text-align:center;">Provided by <a href="http://www.weontech.com">www.WeOnTech.com</a> -  Auto Blog Network - Blog Post SEO - LinkWheel SEO</div>      
<script type="text/javascript">
    function Html(obj) {
        if (obj.value == 'Html Code') {
            document.getElementById("textHtml").value = document.getElementById("lblSpin").innerHTML;
            document.getElementById("textHtml").style.display = "block";
            document.getElementById("lblSpin").style.display = "none";
            document.getElementById("inpHtml").value = "Preview";
        }
        else {
            document.getElementById("textHtml").style.display = "none";
            document.getElementById("lblSpin").style.display = "block";
            document.getElementById("inpHtml").value = "Html Code";
        }
    }
    function Spin() {
        var content = document.getElementById("textSpin").value.trim();
        if (content == "") {
            alert("Please input spyntax content!");
        }
        else if (content.split("{").length != content.split("}").length) {
            alert("Incorrect spyntax in content! Please re-check it!");
        }
        else {
            if (document.getElementById("chkNewLine").checked) {
                var regX = /\n/gi;
                content = content.replace(regX, "<br />");
            }
            document.getElementById("lblSpin").innerHTML = GetSpinContent(content);
            document.getElementById("inpHtml").style.display = "";
            if (document.getElementById("inpHtml").value == "Preview")
                document.getElementById("textHtml").value = document.getElementById("lblSpin").innerHTML;
        }
    }        
    function GetSpinContent(text) {
        var result = text;
        var reg = new RegExp(/{([^{}]*)\}/i);
        while (matches = reg.exec(result)) {
            var array = new Array();
            array = matches[1].split('|');
            result = result.replace(matches[0], array[Math.floor(Math.random() * array.length)]);
        }

        reg = new RegExp(/\{\{([\s\S]*?)\}\}/i);
        while (match = reg.exec(result)) {
            var array = new Array();
            array = match[1].split('||');
            result = result.replace(match[0], array[Math.floor(Math.random() * array.length)]);
        }
        return result;
    } 
</script>
</body>
</html>
Pass spyntax content and it will generate spun content.

Supports nested spinning to infinite levels.

I wrote this myself and happy share it for BHW. Use it however you want.

Let me know if you have any questions.

P/S: I can't attach html file, so just replace ".doc" -> ".html" if you download from attachment
 

Attachments

i'll definitely put this to good use
i'm going to be starting a site that will be an online seo tool repository as part of a campaign for affiliate sales of seo tools
this will be a good start for content for that site
 
Any sample site in which I can see it live? Thanks.
 
just copy, paste into a .txt file and rename to .html, it works flawlessly
 
Sorry for being a newbie at coding.. is this meant offline? or to put in your site to have an online spintax supported feature?
 
Sorry for being a newbie at coding.. is this meant offline? or to put in your site to have an online spintax supported feature?

Since it is in html you should be able to run it straight off your computer just by copy/pasting into a file with .html extension and loading it up in a browser. Pretty nice, usually people post spinners that are coded in php, good work OP
 
sorry,it does not work for me. i download the file and rename the .doc to .html,then upload the html file to my host,open the url in browers,click the next spun botton, the content never change.
 
sorry,it does not work for me. i download the file and rename the .doc to .html,then upload the html file to my host,open the url in browers,click the next spun botton, the content never change.

PM your url
 
Hi,thanks for the spinner.I have the spinner on a html page.When i spin the content
there is no change in the article.Please give any advice.
 
Hi,proxyblaze thank you for the help.I have the code on a html page.I have tried pasting
the article and just writing a new article.I know on most spinners the content does not
change but the spinner still makes the article unique content.
 
Hi,thanks for the spinner.I have the spinner on a html page.When i spin the content
there is no change in the article.Please give any advice.

I think you didn't put any spintax in the body. You must put it in proper spinning format before it will create spin outputs.
 
just a quick pointer...
NEVER change the extension of a .doc file to a .html
copy the text into a notepad .txt file, then save that as a html
.doc contains all sorts of retarded html markup that can and does break things
 
Excellent, I wonder if the idiots on Warrior Forum would pay $97 for this? :D
 
I LOVE THIS TOOL!
i cannot say this enough,
it spins content sure...great, awesome
that's only half what it does for me
it formats carriage returns into html
it strips carriage returns
it allows me to paste in anything and use seoquake to check keyword density
and it just sits on my desktop as a html file, and in firefox i created a bookmark to it, no bandwidth used
oh, forgot to mention, it validates my spintax too so i know if i got a missing bracket, dude....you rock!
 
Back
Top