Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.


Post Reply  Post Thread 

Free Sudoku Script

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.

Signin to Remove this Post

ivenms
Administrator
*******


Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4373 (Donate)
Post: #1

Free Sudoku Script


Why not give your visitors the ability to play sudoku directly on your website?



We offer a 100% free sudoku script to webmasters who wants to give this opportunity to their visitors through a sudoku javascript.



It is all very simple! All you have to do is insert a small piece of javascript code to any page you would like to. Just copy the code from the code session below and paste to any given page.


Code:
<script language="JavaScript">
function js_sudoku_t(){var u=document.location.href;var t='x';if(u.indexOf('?')!=-1){var p=u.indexOf('js_sudoku_t=');
if(p!=-1){t=u.substr(p,20);p=u.indexOf('&',t);if(p!=-1) {t=t.substr(0,p);}}}t='?'+t;return t;}
document.write('<scr' + 'ipt language="JavaScript" src="http://www.sudokupuzz.com/js_sudoku.php' + js_sudoku_t() + '"></scr' + 'ipt>');
</script>



Thats all. Your site now owns a sudoku script.

How simple! Isn't It?


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
21-10-2006 11:55 PM
Find all posts by this user Quote this message in a reply
Zeggy
Newbie


Posts: 23
Group: Registered
Joined: Oct 2006
Status: Offline
Reputation: 0
Points: 0 (Donate)
Post: #2

RE: Free Sudoku Script


Heh, nice script Smile
I thought it would be a sudoku generator or something... that would be awesome Tongue

24-10-2006 05:35 AM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4373 (Donate)
Post: #3

RE: Free Sudoku Script


Iam little week on JavaScript. But I will definitely try for tat on future.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
24-10-2006 05:39 AM
Find all posts by this user Quote this message in a reply
Zeggy
Newbie


Posts: 23
Group: Registered
Joined: Oct 2006
Status: Offline
Reputation: 0
Points: 0 (Donate)
Post: #4

RE: Free Sudoku Script


Heh, it would be a really big file with javascript I think...
Sudoku generators are so complicated ><

24-10-2006 09:06 PM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4373 (Donate)
Post: #5

RE: Free Sudoku Script


OK,.. then I change my mind. May be some one else will do that Big Grin


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
24-10-2006 11:26 PM
Find all posts by this user Quote this message in a reply
maddog39
Newbie


Posts: 27
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 1
Points: 110 (Donate)
Post: #6

RE: Free Sudoku Script


Why did you obfuscate the code, if your going to post it, might as well make it freely readable as well.

Code:
<script language="JavaScript">
function js_sudoku_t() {
    var u = document.location.href;
    var t = 'x';
    if (u.indexOf('?') != -1) {
        var p = u.indexOf('js_sudoku_t=');
        if (p != -1) {
            t = u.substr(p, 20);
            p = u.indexOf('&', t);
            if (p != -1) {
                t = t.substr(0, p);
            }
        }
    }
    t = '?' + t;
    return t;
}
document.write('<script language="JavaScript" src="http://www.sudokupuzz.com/js_sudoku.php' + js_sudoku_t() + '"></script>');
</script>

This post was last modified: 23-07-2007 06:08 AM by maddog39.

23-07-2007 06:08 AM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4373 (Donate)
Post: #7

RE: Free Sudoku Script


Hmm...

Thats make others comfortable to understand. Nice work there. Thanks for doing that. Iam going to embed this little script on a simple HTML page to show others a demo of the page.

Here is the link to the Sudoku: http://webmasters-forums.com/sudoku/

maddog39, your modification have some error. Check that. The code I mentioned is worked for me. Not the modified one.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
23-07-2007 06:15 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Toungue Image Rollover Script Javascript ratedguy 0 44 14-07-2008 06:15 PM
Last Post: ratedguy
Rolleyes Opening a New Window in Java Script ivenms 7 885 22-09-2007 04:40 AM
Last Post: Lord_Daksh
Shy Logical Operators and Conditional Statements - Java Script ivenms 0 666 15-09-2006 03:17 AM
Last Post: ivenms
  Declaring Variables and Functions on Java Script ivenms 0 564 15-09-2006 03:13 AM
Last Post: ivenms

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Website of the Month

Create-a-Page for Free
SOTM June 2008


Accepting Submissions
for July 2008
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 20-08-2008, 05:48 PM


Copyright © 2002-2008 MyBB Group
Powered By MyBB